Re: Accessing Data entered in Screen to Coding
Hi Vinayak, The nice thing about OFBiz is, that it is open source, so there are thousands of examples in the source of the system itself. Please have a look how it is done in other functions. The best one to look at is the 'example' webapp in the framework component. Then another one you could study is in the document at: http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide +Using+Practice+Application There are also many other documents a http://docs.ofbiz.org If you then have the basic knowledge it is then easier to answer the question you may have then. Regards, Hans On Thu, 2008-10-23 at 11:24 +0530, Vinayak Yadav wrote: > I have designed one employee screen > which contains two fields EmpId, and EMPName > I can enter empid and empname in screen > now i want to know that how to get this empID and EmpName in coding. > I don't want to autogenerate the ID > I will enter the ID in screen and it should be saved in database. > how to acces this ID in coding which is entered in sacreen > > waiting for reply > > Thanks -- Antwebsystems.com: Quality OFBiz services for competitive prices
Error (possible bugs?) deploying to JBoss
I need help about this error I got while deploying to JBoss. I tried to deploy OFBiz into JBoss 4.2.2 based on the technical documentation. My OFBiz is from rev 705859. After compiling OFBiz, I ran: java -jar ofbiz.jar -setup jboss422 However I got the following errors, and in the setup directory I have run.conf and *empty* build.xml. ... messages about loading components 2008-10-23 13:19:07,831 (main) [ContainerLoader.java:96 :INFO ] [Startup] Starting containers... 2008-10-23 13:19:07,956 (main) [ GenerateContainer.java:456:INFO ] Parsing template : /data-01/home/ian/Documents/AppData/ofbiz-trunk/framework/appserver/templates/jboss422/run.conf 2008-10-23 13:19:08,594 (main) [ GenerateContainer.java:456:INFO ] Parsing template : /data-01/home/ian/Documents/AppData/ofbiz-trunk/framework/appserver/templates/jboss422/build.xml org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.appservers.GenerateContainer (String index out of range: -3) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) org.ofbiz.base.container.ContainerException: String index out of range: -3 at org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:477) at org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368) at org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substring(String.java:1938) at java.lang.String.substring(String.java:1905) at freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:210) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.ParentheticalExpression._getAsTemplateModel(ParentheticalExpression.java:75) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:201) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:163) at org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:475) at org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368) at org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) org.ofbiz.base.container.ContainerException: String index out of range: -3 at org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:477) at org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368) at org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at java.lang.String.substrin
Re: Preventing from auto generate ID
Vinayak, As you are a Java programmer. so to see definition of any function you can take the help of java doc. And for doc please search it on google (a good search engine) :) -- Thanks and Regards Sumit Pandit. HotWaxMedia, Inc http://www.hotwaxmedia.com On Oct 23, 2008, at 10:27 AM, Vinayak Yadav wrote: Thanks Sumit can i get the function defination for following function delegator.getNextSeqId("HelloStud"); Thanks again. On Wed, Oct 22, 2008 at 6:49 PM, Sumit Pandit <[EMAIL PROTECTED]> wrote: If you are provide error message also then it will be helpful. Also please try to provide much information with the problem. -- Thanks and Regards Sumit Pandit. HotWaxMedia, Inc http://www.hotwaxmedia.com On Oct 22, 2008, at 2:40 PM, Vinayak Yadav wrote: I tried following code but it is not working. It is giving error while compiling. Please Help Us. Thanks try { // String helloStudId = delegator.getNextSeqId("HelloStud"); // gets next available key for HelloPerson //Debug.logInfo("helloStudId = " + helloStudId, module); // prints to the console or console.log GenericValue helloStud = delegator.makeValue("HelloStud", UtilMisc.toMap("helloStudId", helloStudId)); // create a GenericValue from ID we just got helloTest.setPKFields(context); // move primary key fields from input parameters to GenericValue // here make sure that context must contain a key with same name as primary key of the Entity. helloTest.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloStud); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloStudId", helloStudId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage()); }
Accessing Data entered in Screen to Coding
I have designed one employee screen which contains two fields EmpId, and EMPName I can enter empid and empname in screen now i want to know that how to get this empID and EmpName in coding. I don't want to autogenerate the ID I will enter the ID in screen and it should be saved in database. how to acces this ID in coding which is entered in sacreen waiting for reply Thanks
Re: Preventing from auto generate ID
Hello Vinayak, Just check it in the GenericDelegator.java Regards Chirag Manocha HotWax Media http://www.hotwaxmedia.com Email :- [EMAIL PROTECTED] Contact :- +91-982-631-9099
Re: Preventing from auto generate ID
Thanks Sumit can i get the function defination for following function delegator.getNextSeqId("HelloStud"); Thanks again. On Wed, Oct 22, 2008 at 6:49 PM, Sumit Pandit <[EMAIL PROTECTED]> wrote: > If you are provide error message also then it will be helpful. > Also please try to provide much information with the problem. > > > -- > Thanks and Regards > Sumit Pandit. > HotWaxMedia, Inc > http://www.hotwaxmedia.com > > On Oct 22, 2008, at 2:40 PM, Vinayak Yadav wrote: > >> I tried following code but it is not working. It is giving error while >> compiling. >> Please Help Us. >> >> Thanks >> >> >> try { >> // String helloStudId = delegator.getNextSeqId("HelloStud"); >> // gets next available key for HelloPerson >> //Debug.logInfo("helloStudId = " + helloStudId, module); // >> prints to the console or console.log >> GenericValue helloStud = delegator.makeValue("HelloStud", >> UtilMisc.toMap("helloStudId", helloStudId)); // >> create a GenericValue from ID we just got >> helloTest.setPKFields(context); // move primary key fields >> from input parameters to GenericValue >> >> // here make sure that context must contain a key with same name as >> primary key of the Entity. >> >> helloTest.setNonPKFields(context); // move non-primary key >> fields from input parameters to GenericValue >> delegator.create(helloStud); // store the generic value, ie >> persists it >> >> Map result = ServiceUtil.returnSuccess(); // gets standard >> Map for successful service operations >> result.put("helloStudId", helloStudId); // puts output >> parameter into Map to return >> return result; // return Map >> } catch (GenericEntityException ex) { // required if you use >> delegator in Java >> return ServiceUtil.returnError(ex.getMessage()); >> >> } > >
Re: recompile java file
Adithi, Try to do this from console. With this you should have your server shutdown. The changes will reflect when you use the ant command and start your server. With this I would also like you to read the link : http://ant.apache.org Regards Chirag Manocha HotWax Media http://www.hotwaxmedia.com Email :- [EMAIL PROTECTED] Contact :- +91-982-631-9099
Re: recompile java file
Hi!! adithi Just have a look over ofbiz/build.xml.If you are not able to see changes then in my opinion you can just use "ant refresh" from terminal which is being given as target in ofbiz/build.xml --- target="clean-all"/> target="build"/> May be it can help you. Thanks and Regards ONIMA KASLIWAL www.hotwaxmedia.com adithi agarwal wrote: HI Pradeep thanks for your reply.I tried it but I cant see the changes i have made to my java fileFrom eclipse I have done ant clean and run-install Thankyou
Re: recompile java file
Hi Adithi , After running ant commands you must refresh your directory or component in Eclipse. This might help you to get the changes you have made. And you can get other targets of ant from build.xml (root directory). adithi agarwal wrote: HI Pradeep thanks for your reply.I tried it but I cant see the changes i have made to my java fileFrom eclipse I have done ant clean and run-install Thankyou -- Regards Divesh Dutta HotWax Media Pvt. Ltd. Indore (M.P), India http://www.hotwaxmedia.com http://en.wikipedia.org/wiki/Indore Office :- +917314093684 Direct :- +919301810453
SUPPLIER_AGENT role?
Hi, Is there any documentation on SUPPLIER_AGENT role and how it should be used? Currently for dropship items, PO is automatically created, but when I go to view the PO, it fails with the following error org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/OrderViewScreens.xml#OrderHeaderView]: groovy.lang.MissingPropertyException: No such property: partyId for class: OrderView (No such property: partyId for class: OrderView) After tracing thru, it seems like the OrderRole should have SUPPLIER_AGENT entry for the supplier. Also will appreciate for any pointers on order processing describing order flow/order lifecycle -- View this message in context: http://www.nabble.com/SUPPLIER_AGENT-role--tp20119750p20119750.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
Ritesh Trivedi wrote: Appreciate the responses, keeping in mind its open source, ppl respond but they dont have to etc... but not sure what gave the impression that 1. I had modified the ofbiz sources and 2. even if I did, I didnt have any good reason. From one of your replies: "When I run ant run-install-seed, I get bunch of warning which actually also has exceptions, I think those are related to olap - which I have disabled - no olap data group-map entries. I havent looked much into olap and related settings. Is this safe thing to do? do I need olap enabled for ofbiz to run properly?" -Adrian
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
I know see the tables created. I ran ant run-install-seed couple of times. Not sure what the issue was. Appreciate the responses, keeping in mind its open source, ppl respond but they dont have to etc... but not sure what gave the impression that 1. I had modified the ofbiz sources and 2. even if I did, I didnt have any good reason. I think its fair to assume that ofbiz-users would atleast know the implications of modifying sources and fact that if they modify the source, it will be very difficult to get support as well as maintain unless the changes were submitted back to trunk as patches - atleast in most cases. Adrian Crum wrote: > > No, entity-group elements are no longer required. All entites default to > the org.ofbiz group. > > As I said before, the online demo works. If you're having problems, then > it's specific to your local copy. A good strategy to follow is to avoid > making changes to OFBiz unless you have a very good reason to do so. You > should especially avoid changing things you know little about. > > -Adrian > > > Ritesh Trivedi wrote: >> I do not see any entity-group entries for Visual* and a few other tables. >> Isnt it required? >> >> >> Ritesh Trivedi wrote: >>> I do have VisualTheme* entities defined under >>> common/entitydef/entitymodel.xml and I do have VT_* entries in the >>> Enumeration table as well. Also I noticed there is no entity-group.xml >>> files for a lot of the ofbiz entitymodel.xml is this normal? >>> >>> When I run ant run-install-seed, I get bunch of warning which actually >>> also has exceptions, I think those are related to olap - which I have >>> disabled - no olap data group-map entries. I havent looked much into >>> olap >>> and related settings. Is this safe thing to do? do I need olap enabled >>> for >>> ofbiz to run properly? >>> >>> >>> Adrian Crum wrote: Check the Enumeration entity for values that have an enumId starting with VT_. If they don't exist, then your data wasn't loaded. Try running ant run-install again. -Adrian Ritesh Trivedi wrote: > I did do clean build with ant clean-all and ant. > > Dug little further and I dont see VisualTheme* tables in the db and I > have > check-on-start="true" > add-missing-on-start="true" > Any clue why? > > > > > Adrian Crum wrote: >> A good practice to follow is to check the online demo - which is >> built >> every night: https://demo.hotwaxmedia.com/catalog/control/main >> >> If the problem doesn't exist in the online demo, then there is a >> chance >> there is something wrong with your local copy. >> >> Try doing a fresh SVN checkout, or on an existing copy run ant >> clean-all >> and ant run-install. >> >> Also, this type of message should be posted on the user mailing list. >> >> -Adrian >> >> >> Ritesh Trivedi wrote: >>> Here is the exception stacktrace >>> >>> Exception: java.lang.Exception >>> Message: Error in simple-method [Get visual theme resources >>> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >>> ; [Visual Theme resources not found.] >>> stack trace >>> --- >>> java.lang.Exception: Error in simple-method [Get visual theme >>> resources >>> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >>> ; [Visual Theme resources not found.] >>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) >>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) >>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) >>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) >>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) >>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) >>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) >>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) >>> org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) >>> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) >>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) >>> >>> >> > > -- View this message in context: http://www.nabble.com/Re%3A-Trunk-catalog-main-screen-getting-NPE---Visual-theme-resource-not-found-tp20115756p20117999.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
this things have been discussed in the dev ml. if your subscribe go back a month or two. Ritesh Trivedi sent the following on 10/22/2008 11:14 AM: > I do have VisualTheme* entities defined under > common/entitydef/entitymodel.xml and I do have VT_* entries in the > Enumeration table as well. Also I noticed there is no entity-group.xml files > for a lot of the ofbiz entitymodel.xml is this normal? > > When I run ant run-install-seed, I get bunch of warning which actually also > has exceptions, I think those are related to olap - which I have disabled - > no olap data group-map entries. I havent looked much into olap and related > settings. Is this safe thing to do? do I need olap enabled for ofbiz to run > properly? > > > Adrian Crum wrote: >> Check the Enumeration entity for values that have an enumId starting >> with VT_. If they don't exist, then your data wasn't loaded. Try running >> ant run-install again. >> >> -Adrian >> >> Ritesh Trivedi wrote: >>> I did do clean build with ant clean-all and ant. >>> >>> Dug little further and I dont see VisualTheme* tables in the db and I >>> have >>> check-on-start="true" >>> add-missing-on-start="true" >>> Any clue why? >>> >>> >>> >>> >>> Adrian Crum wrote: A good practice to follow is to check the online demo - which is built every night: https://demo.hotwaxmedia.com/catalog/control/main If the problem doesn't exist in the online demo, then there is a chance there is something wrong with your local copy. Try doing a fresh SVN checkout, or on an existing copy run ant clean-all and ant run-install. Also, this type of message should be posted on the user mailing list. -Adrian Ritesh Trivedi wrote: > Here is the exception stacktrace > > Exception: java.lang.Exception > Message: Error in simple-method [Get visual theme resources > [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: > ; [Visual Theme resources not found.] > stack trace > --- > java.lang.Exception: Error in simple-method [Get visual theme resources > [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: > ; [Visual Theme resources not found.] > org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) > org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) > org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) > org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) > org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) > org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) > org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) > >> >
Re: do we really required dojo in ofbiz
someone thought i might be useful that had commit rights. they introduced it. other also have been introduced. They are there if someone wants to implement them. I see no harm in them being there. for my two cents I stick with the widgets and ftls. Abhishake Agarwal sent the following on 10/22/2008 10:59 AM: > Hi, > > I have seen dojo has been implemented in anonymous checkout and instead of > making things simple it makes things more complicated. > > I think there are more simple and powerful library like JQuey which can be > used in ofbiz. > > Regards, > Abhishake >
Re: do we really required dojo in ofbiz
someone thought i might be useful that had commit rights. they introduced it. other also have been introduced. They are there if somone wants to implement them. I see no harm in them being there. for my two cents I stick with the widgets and ftls. Abhishake Agarwal sent the following on 10/22/2008 10:59 AM: > Hi, > > I have seen dojo has been implemented in anonymous checkout and instead of > making things simple it makes things more complicated. > > I think there are more simple and powerful library like JQuey which can be > used in ofbiz. > > Regards, > Abhishake >
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
No, entity-group elements are no longer required. All entites default to the org.ofbiz group. As I said before, the online demo works. If you're having problems, then it's specific to your local copy. A good strategy to follow is to avoid making changes to OFBiz unless you have a very good reason to do so. You should especially avoid changing things you know little about. -Adrian Ritesh Trivedi wrote: I do not see any entity-group entries for Visual* and a few other tables. Isnt it required? Ritesh Trivedi wrote: I do have VisualTheme* entities defined under common/entitydef/entitymodel.xml and I do have VT_* entries in the Enumeration table as well. Also I noticed there is no entity-group.xml files for a lot of the ofbiz entitymodel.xml is this normal? When I run ant run-install-seed, I get bunch of warning which actually also has exceptions, I think those are related to olap - which I have disabled - no olap data group-map entries. I havent looked much into olap and related settings. Is this safe thing to do? do I need olap enabled for ofbiz to run properly? Adrian Crum wrote: Check the Enumeration entity for values that have an enumId starting with VT_. If they don't exist, then your data wasn't loaded. Try running ant run-install again. -Adrian Ritesh Trivedi wrote: I did do clean build with ant clean-all and ant. Dug little further and I dont see VisualTheme* tables in the db and I have check-on-start="true" add-missing-on-start="true" Any clue why? Adrian Crum wrote: A good practice to follow is to check the online demo - which is built every night: https://demo.hotwaxmedia.com/catalog/control/main If the problem doesn't exist in the online demo, then there is a chance there is something wrong with your local copy. Try doing a fresh SVN checkout, or on an existing copy run ant clean-all and ant run-install. Also, this type of message should be posted on the user mailing list. -Adrian Ritesh Trivedi wrote: Here is the exception stacktrace Exception: java.lang.Exception Message: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] stack trace --- java.lang.Exception: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217)
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
I do not see any entity-group entries for Visual* and a few other tables. Isnt it required? Ritesh Trivedi wrote: > > I do have VisualTheme* entities defined under > common/entitydef/entitymodel.xml and I do have VT_* entries in the > Enumeration table as well. Also I noticed there is no entity-group.xml > files for a lot of the ofbiz entitymodel.xml is this normal? > > When I run ant run-install-seed, I get bunch of warning which actually > also has exceptions, I think those are related to olap - which I have > disabled - no olap data group-map entries. I havent looked much into olap > and related settings. Is this safe thing to do? do I need olap enabled for > ofbiz to run properly? > > > Adrian Crum wrote: >> >> Check the Enumeration entity for values that have an enumId starting >> with VT_. If they don't exist, then your data wasn't loaded. Try running >> ant run-install again. >> >> -Adrian >> >> Ritesh Trivedi wrote: >>> I did do clean build with ant clean-all and ant. >>> >>> Dug little further and I dont see VisualTheme* tables in the db and I >>> have >>> check-on-start="true" >>> add-missing-on-start="true" >>> Any clue why? >>> >>> >>> >>> >>> Adrian Crum wrote: A good practice to follow is to check the online demo - which is built every night: https://demo.hotwaxmedia.com/catalog/control/main If the problem doesn't exist in the online demo, then there is a chance there is something wrong with your local copy. Try doing a fresh SVN checkout, or on an existing copy run ant clean-all and ant run-install. Also, this type of message should be posted on the user mailing list. -Adrian Ritesh Trivedi wrote: > Here is the exception stacktrace > > Exception: java.lang.Exception > Message: Error in simple-method [Get visual theme resources > [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: > ; [Visual Theme resources not found.] > stack trace > --- > java.lang.Exception: Error in simple-method [Get visual theme > resources > [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: > ; [Visual Theme resources not found.] > org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) > org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) > org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) > org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) > org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) > org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) > org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) > >>> >> >> > > -- View this message in context: http://www.nabble.com/Re%3A-Trunk-catalog-main-screen-getting-NPE---Visual-theme-resource-not-found-tp20115756p20116765.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
I do have VisualTheme* entities defined under common/entitydef/entitymodel.xml and I do have VT_* entries in the Enumeration table as well. Also I noticed there is no entity-group.xml files for a lot of the ofbiz entitymodel.xml is this normal? When I run ant run-install-seed, I get bunch of warning which actually also has exceptions, I think those are related to olap - which I have disabled - no olap data group-map entries. I havent looked much into olap and related settings. Is this safe thing to do? do I need olap enabled for ofbiz to run properly? Adrian Crum wrote: > > Check the Enumeration entity for values that have an enumId starting > with VT_. If they don't exist, then your data wasn't loaded. Try running > ant run-install again. > > -Adrian > > Ritesh Trivedi wrote: >> I did do clean build with ant clean-all and ant. >> >> Dug little further and I dont see VisualTheme* tables in the db and I >> have >> check-on-start="true" >> add-missing-on-start="true" >> Any clue why? >> >> >> >> >> Adrian Crum wrote: >>> A good practice to follow is to check the online demo - which is built >>> every night: https://demo.hotwaxmedia.com/catalog/control/main >>> >>> If the problem doesn't exist in the online demo, then there is a chance >>> there is something wrong with your local copy. >>> >>> Try doing a fresh SVN checkout, or on an existing copy run ant clean-all >>> and ant run-install. >>> >>> Also, this type of message should be posted on the user mailing list. >>> >>> -Adrian >>> >>> >>> Ritesh Trivedi wrote: Here is the exception stacktrace Exception: java.lang.Exception Message: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] stack trace --- java.lang.Exception: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) >>> >> > > -- View this message in context: http://www.nabble.com/Re%3A-Trunk-catalog-main-screen-getting-NPE---Visual-theme-resource-not-found-tp20115756p20116681.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
Check the Enumeration entity for values that have an enumId starting with VT_. If they don't exist, then your data wasn't loaded. Try running ant run-install again. -Adrian Ritesh Trivedi wrote: I did do clean build with ant clean-all and ant. Dug little further and I dont see VisualTheme* tables in the db and I have check-on-start="true" add-missing-on-start="true" Any clue why? Adrian Crum wrote: A good practice to follow is to check the online demo - which is built every night: https://demo.hotwaxmedia.com/catalog/control/main If the problem doesn't exist in the online demo, then there is a chance there is something wrong with your local copy. Try doing a fresh SVN checkout, or on an existing copy run ant clean-all and ant run-install. Also, this type of message should be posted on the user mailing list. -Adrian Ritesh Trivedi wrote: Here is the exception stacktrace Exception: java.lang.Exception Message: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] stack trace --- java.lang.Exception: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217)
do we really required dojo in ofbiz
Hi, I have seen dojo has been implemented in anonymous checkout and instead of making things simple it makes things more complicated. I think there are more simple and powerful library like JQuey which can be used in ofbiz. Regards, Abhishake
Re: recompile java file
HI Pradeep thanks for your reply.I tried it but I cant see the changes i have made to my java fileFrom eclipse I have done ant clean and run-install Thankyou
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
look to see if the entity for visualthemes is there. Ritesh Trivedi sent the following on 10/22/2008 10:46 AM: > I did do clean build with ant clean-all and ant. > > Dug little further and I dont see VisualTheme* tables in the db and I have > check-on-start="true" > add-missing-on-start="true" > Any clue why? > > > > > Adrian Crum wrote: >> A good practice to follow is to check the online demo - which is built >> every night: https://demo.hotwaxmedia.com/catalog/control/main >> >> If the problem doesn't exist in the online demo, then there is a chance >> there is something wrong with your local copy. >> >> Try doing a fresh SVN checkout, or on an existing copy run ant clean-all >> and ant run-install. >> >> Also, this type of message should be posted on the user mailing list. >> >> -Adrian >> >> >> Ritesh Trivedi wrote: >>> Here is the exception stacktrace >>> >>> Exception: java.lang.Exception >>> Message: Error in simple-method [Get visual theme resources >>> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >>> ; [Visual Theme resources not found.] >>> stack trace >>> --- >>> java.lang.Exception: Error in simple-method [Get visual theme resources >>> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >>> ; [Visual Theme resources not found.] >>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) >>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) >>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) >>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) >>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) >>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) >>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) >>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) >>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) >>> org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) >>> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) >>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) >>> >> >
Re: recompile java file
only use ant clean-all ant run-install if your doing it after a update, since it deletes the derby database, then rebuilds a new database with demo data. use ant clean ant build for just recompiling a file you have just change the code in. in most cases you can just do a ant build and it will rebuild the change files and put them in the jar. Pradeep Kumar sent the following on 10/22/2008 10:44 AM: > Hi, > > Use these commands. > for comilation : ant > for clean and compile : ant clean-all > ant > > On Wed, Oct 22, 2008 at 11:10 PM, adithi agarwal <[EMAIL PROTECTED]>wrote: > >> Hi >> Can someone please tell me how to compile and recompile a java file... >> >> Thankyou >> >> >> >> > > > >
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
I did do clean build with ant clean-all and ant. Dug little further and I dont see VisualTheme* tables in the db and I have check-on-start="true" add-missing-on-start="true" Any clue why? Adrian Crum wrote: > > A good practice to follow is to check the online demo - which is built > every night: https://demo.hotwaxmedia.com/catalog/control/main > > If the problem doesn't exist in the online demo, then there is a chance > there is something wrong with your local copy. > > Try doing a fresh SVN checkout, or on an existing copy run ant clean-all > and ant run-install. > > Also, this type of message should be posted on the user mailing list. > > -Adrian > > > Ritesh Trivedi wrote: >> Here is the exception stacktrace >> >> Exception: java.lang.Exception >> Message: Error in simple-method [Get visual theme resources >> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >> ; [Visual Theme resources not found.] >> stack trace >> --- >> java.lang.Exception: Error in simple-method [Get visual theme resources >> [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: >> ; [Visual Theme resources not found.] >> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) >> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) >> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) >> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) >> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) >> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) >> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) >> org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) >> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) >> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217) >> > > -- View this message in context: http://www.nabble.com/Re%3A-Trunk-catalog-main-screen-getting-NPE---Visual-theme-resource-not-found-tp20115756p20116102.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: recompile java file
Hi, Use these commands. for comilation : ant for clean and compile : ant clean-all ant On Wed, Oct 22, 2008 at 11:10 PM, adithi agarwal <[EMAIL PROTECTED]>wrote: > Hi > Can someone please tell me how to compile and recompile a java file... > > Thankyou > > > > -- With regards, S K Pradeep kumar
recompile java file
Hi Can someone pleaseĀ tell me how to compile and recompile a java file... Thankyou
Re: Trunk catalog main screen getting NPE - Visual theme resource not found
A good practice to follow is to check the online demo - which is built every night: https://demo.hotwaxmedia.com/catalog/control/main If the problem doesn't exist in the online demo, then there is a chance there is something wrong with your local copy. Try doing a fresh SVN checkout, or on an existing copy run ant clean-all and ant run-install. Also, this type of message should be posted on the user mailing list. -Adrian Ritesh Trivedi wrote: Here is the exception stacktrace Exception: java.lang.Exception Message: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] stack trace --- java.lang.Exception: Error in simple-method [Get visual theme resources [file:/root/ofbiz/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258) org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:880) org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149) org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131) org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76) org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) org.ofbiz.widget.screen.ModelScreenAction$Service.runAction(ModelScreenAction.java:473) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:122) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:217)
Re: Preventing from auto generate ID
If you are provide error message also then it will be helpful. Also please try to provide much information with the problem. -- Thanks and Regards Sumit Pandit. HotWaxMedia, Inc http://www.hotwaxmedia.com On Oct 22, 2008, at 2:40 PM, Vinayak Yadav wrote: I tried following code but it is not working. It is giving error while compiling. Please Help Us. Thanks try { // String helloStudId = delegator.getNextSeqId("HelloStud"); // gets next available key for HelloPerson //Debug.logInfo("helloStudId = " + helloStudId, module); // prints to the console or console.log GenericValue helloStud = delegator.makeValue("HelloStud", UtilMisc.toMap("helloStudId", helloStudId)); // create a GenericValue from ID we just got helloTest.setPKFields(context); // move primary key fields from input parameters to GenericValue // here make sure that context must contain a key with same name as primary key of the Entity. helloTest.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloStud); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloStudId", helloStudId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage()); }
Re: Preventing from auto generate ID
Vinayak, Please copy the error from your console and post here, which will be better to helping you out. Regards Chirag Manocha HotWax Media http://www.hotwaxmedia.com Email :- [EMAIL PROTECTED] Contact :- +91-982-631-9099
Re: Preventing from auto generate ID
I tried following code but it is not working. It is giving error while compiling. Please Help Us. Thanks try { // String helloStudId = delegator.getNextSeqId("HelloStud"); // gets next available key for HelloPerson //Debug.logInfo("helloStudId = " + helloStudId, module); // prints to the console or console.log GenericValue helloStud = delegator.makeValue("HelloStud", UtilMisc.toMap("helloStudId", helloStudId)); // create a GenericValue from ID we just got helloTest.setPKFields(context); // move primary key fields from input parameters to GenericValue // here make sure that context must contain a key with same name as primary key of the Entity. helloTest.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloStud); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloStudId", helloStudId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage()); }
Re: inventory item status
which rev are you using have you changed anything else that might effect the information based on last rev look at InventoryServices.checkInventoryAvailability about line 401. this will tell you the criteria used. yasin lyyas sent the following on 10/22/2008 1:26 AM: > Hi, > > thanks for the reply. The Inventory is a non-serialized inventory. Also, > we edit something in service to process returned item so that the > InventoryItem StatusId will be set to null. I know this should not be > done this way, but it has been done now and its in production server. I > just need a clarify that, a blank InventoryItem status id will not give > us problem with a reservation made to this InventoryItem. > > > On Wed, 2008-10-22 at 03:09 -0500, BJ Freeman wrote: >> there is a >> INV_NON_SER_STTS group as well >> as well >> and if a new InventoryItem is created is should have _NA_ till either >> one of then INV_NON_SER_STTS or INV_SERIALIZED_STTS are assigned. >> this is so views that include Status will show. >> >> Mridul Pathak sent the following on 10/22/2008 12:32 AM: >>> AFAIK, Inventory Item Status are used only in case of serialized inventory, >>> and not for non-serialized ones. So in case of non-serialized inventory >>> items you may find blank inventory item status. > > yasin lyyas sent the following on 10/20/2008 2:24 AM: >> Hi all, >> >> I have a question here regarding the inventory item status id. If the >> status id is blank (null), what will happen if there is a reservation >> made to this inventory item? In our case, we have a returned inventory >> item. Status ID for this inventory item has been removed ( becomes >> blank), and it has 10 qoh and atp. When a reservation made to this >> inventory item, the order becomes a backorder. atp/qoh is 9/10, but in >> reservation table, it shows the qty not available = 1. >> >> Can we not leave the inventory item status blank? >> >> Thanks >> >> Lyyas >> Yasin >> >> >> > > >
Re: inventory item status
Hi, thanks for the reply. The Inventory is a non-serialized inventory. Also, we edit something in service to process returned item so that the InventoryItem StatusId will be set to null. I know this should not be done this way, but it has been done now and its in production server. I just need a clarify that, a blank InventoryItem status id will not give us problem with a reservation made to this InventoryItem. On Wed, 2008-10-22 at 03:09 -0500, BJ Freeman wrote: > there is a > INV_NON_SER_STTS group as well > as well > and if a new InventoryItem is created is should have _NA_ till either > one of then INV_NON_SER_STTS or INV_SERIALIZED_STTS are assigned. > this is so views that include Status will show. > > Mridul Pathak sent the following on 10/22/2008 12:32 AM: > > AFAIK, Inventory Item Status are used only in case of serialized inventory, > > and not for non-serialized ones. So in case of non-serialized inventory > > items you may find blank inventory item status. yasin lyyas sent the following on 10/20/2008 2:24 AM: > Hi all, > > I have a question here regarding the inventory item status id. If the > status id is blank (null), what will happen if there is a reservation > made to this inventory item? In our case, we have a returned inventory > item. Status ID for this inventory item has been removed ( becomes > blank), and it has 10 qoh and atp. When a reservation made to this > inventory item, the order becomes a backorder. atp/qoh is 9/10, but in > reservation table, it shows the qty not available = 1. > > Can we not leave the inventory item status blank? > > Thanks > > Lyyas > Yasin > > >
Re: inventory item status
there is a INV_NON_SER_STTS group as well as well and if a new InventoryItem is created is should have _NA_ till either one of then INV_NON_SER_STTS or INV_SERIALIZED_STTS are assigned. this is so views that include Status will show. Mridul Pathak sent the following on 10/22/2008 12:32 AM: > AFAIK, Inventory Item Status are used only in case of serialized inventory, > and not for non-serialized ones. So in case of non-serialized inventory > items you may find blank inventory item status.
Re: Preventing from auto generate ID
try { // String helloStudId = delegator.getNextSeqId("HelloStud"); // gets next available key for HelloPerson //Debug.logInfo("helloStudId = " + helloStudId, module); // prints to the console or console.log GenericValue helloStud = delegator.makeValue("HelloStud", UtilMisc.toMap("helloStudId", helloStudId)); // create a GenericValue from ID we just got helloTest.setPKFields(context); // move primary key fields from input parameters to GenericValue // here make sure that context must contain a key with same name as primary key of the Entity. helloTest.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloStud); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloStudId", helloStudId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage()); } -- Thanks and Regards Sumit Pandit. HotWaxMedia, Inc http://www.hotwaxmedia.com On Oct 22, 2008, at 11:12 AM, Vinayak Yadav wrote: How to check the value of the ID field before storing the information. Thanks On Wed, Oct 22, 2008 at 2:33 AM, BJ Freeman <[EMAIL PROTECTED]> wrote: you would use delegator.getNextSeqId("yourIDname"); to auto create. other wise you need to check the value of the ID field before you store the information. Vinayak Yadav sent the following on 10/21/2008 4:17 AM: Hi, i an new in ofbiz I have created one page for student information It has two fields ID and Description I don't want to auto generate ID When we run the application it shows two text boxes to enter the student id and description but when we click on submit it gives an error attached the hello3 example Please help me Thanks Vinayak
Re: inventory item status
AFAIK, Inventory Item Status are used only in case of serialized inventory, and not for non-serialized ones. So in case of non-serialized inventory items you may find blank inventory item status. -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] On Mon, Oct 20, 2008 at 2:54 PM, yasin lyyas <[EMAIL PROTECTED] > wrote: > Hi all, > > I have a question here regarding the inventory item status id. If the > status id is blank (null), what will happen if there is a reservation > made to this inventory item? In our case, we have a returned inventory > item. Status ID for this inventory item has been removed ( becomes > blank), and it has 10 qoh and atp. When a reservation made to this > inventory item, the order becomes a backorder. atp/qoh is 9/10, but in > reservation table, it shows the qty not available = 1. > > Can we not leave the inventory item status blank? > > Thanks > > Lyyas > Yasin > >