Inserting Data through forms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Inserting Data through forms

Divya Nair
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




Reply | Threaded
Open this post in threaded view
|

Re: Inserting Data through forms

Vikas Mayur-3
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
Reply | Threaded
Open this post in threaded view
|

Re: Inserting Data through forms

Sumit Pandit-3
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.

Reply | Threaded
Open this post in threaded view
|

Re: Inserting Data through forms

Nalin Chandra
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.

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



Reply | Threaded
Open this post in threaded view
|

Re: Inserting Data through forms

Awdesh Singh Parihar
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.