Hi All,
I have created one new form in ofbiz and when I tried to insert data through this form, it's accepting all values and it's not showing any errors... I have created one table for this form in entitymodel.xml also.... But when I searched the data through Entity Data Maintenance, it's not showing there.... Do we need to add any JAVA beans for inserting????? Thanks in advance... Regards, Divya |
Writing CrUD in OFBiz is fairly simple. Please see how this is
implemented in example component or read this http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application Vikas On Dec 4, 2008, at 5:45 PM, Divya Nair wrote: > > Hi All, > > I have created one new form in ofbiz and when I tried to insert data > through > this form, it's accepting all values and it's not showing any > errors... > > I have created one table for this form in entitymodel.xml also.... > > But when I searched the data through Entity Data Maintenance, it's > not > showing there.... > Do we need to add any JAVA beans for inserting????? > > Thanks in advance... > > Regards, > Divya > > > > > > -- > View this message in context: http://www.nabble.com/Inserting-Data-through-forms-tp20832247p20832247.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > smime.p7s (3K) Download Attachment |
In reply to this post by Divya Nair
It is now showing error, that's good, but please provide supportive code, so that we can able to understand where the problem is .
----- Original Message ----- From: "Divya Nair" <[hidden email]> To: [hidden email] Sent: Thursday, December 4, 2008 5:45:17 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi Subject: Inserting Data through forms Hi All, I have created one new form in ofbiz and when I tried to insert data through this form, it's accepting all values and it's not showing any errors... I have created one table for this form in entitymodel.xml also.... But when I searched the data through Entity Data Maintenance, it's not showing there.... Do we need to add any JAVA beans for inserting????? Thanks in advance... Regards, Divya -- View this message in context: http://www.nabble.com/Inserting-Data-through-forms-tp20832247p20832247.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by Divya Nair
Hi Divya
if there is data stored in data base then its display in Entity Data Maintenance, so first you sure about this, check the database manually, I don't confirm about your process to create the table, may be you miss the Package-name="org.ofbiz.emartcatalog.produst" <entity entity-name="ProductVisit" package-name="org.ofbiz.emartcatalog.produst" title="Product Visit Entity"> <field name="visitId" type="id"></field> <field name="productId" type="id"></field> <field name="categoryId" type="id"></field> <field name="productOrdered" type="indicator"></field> <prim-key field="visitId"/> <prim-key field="productId"/> </entity> if you did the same then please send the log for that request, then i will try to solve your issue.
|
In reply to this post by Divya Nair
Hello Divya
Just check folowing thing in your application : - 1) Have you made entry of entity model in ofbiz-component.xml file . 2) Check all value of variable is coming at the time of services implementation . 3) What ever CRUD operation you written for your application is correct . If this help you then good , otherwise provide more detail about your application . Thanks and Regards --Awdesh Parihar ----- Original Message ----- From: "Divya Nair" <[hidden email]> To: [hidden email] Sent: Thursday, December 4, 2008 5:45:17 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi Subject: Inserting Data through forms Hi All, I have created one new form in ofbiz and when I tried to insert data through this form, it's accepting all values and it's not showing any errors... I have created one table for this form in entitymodel.xml also.... But when I searched the data through Entity Data Maintenance, it's not showing there.... Do we need to add any JAVA beans for inserting????? Thanks in advance... Regards, Divya -- View this message in context: http://www.nabble.com/Inserting-Data-through-forms-tp20832247p20832247.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Free forum by Nabble | Edit this page |