Use entity-one element in simple method to find a single generic value object
In ContactListServices.xml ->sendContactListPartyVerifyEmail method, the following sentence returns NULL, . I log ContactListParty primary key, they are in the parameters map.Why it didn`t return a single generic value? There is data in the database。 -- View this message in context: http://ofbiz.135035.n4.nabble.com/Use-entity-one-element-in-simple-method-to-find-a-single-generic-value-object-tp4651536.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: entity-one
Yes I do that on many projects Nicolas Le 14/11/2012 13:17, geogeo_cutcut a écrit : Hi Nicolas, Can you just confirm that we can use a view-entity with "entity-one" ? -- View this message in context: http://ofbiz.135035.n4.nabble.com/entity-one-tp4637484p4637586.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ --- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/
Re: entity-one
Hi Nicolas, Can you just confirm that we can use a view-entity with "entity-one" ? -- View this message in context: http://ofbiz.135035.n4.nabble.com/entity-one-tp4637484p4637586.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: entity-one
Geoffrey, Are you sure that you have on your context all pk present on the view ? The view ApplicationUser contains userLoginId, partyId and roletTypeId. It's necessary to exclude like this : up -- View this message in context: http://ofbiz.135035.n4.nabble.com/entity-one-tp4637484p4637515.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ --- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/
Re: entity-one
Hello Adithi , To know more about data preparation logic and data presentation logic you can visit following link : http://docs.ofbiz.org/display/OFBADMIN/Best+Practices+Guide -- Thanks and Regards Surya Kusumakar HotwaxMedia Pvt Ltd. www.hotwaxmedia.com awdesh parihar wrote: Hello Adithi , Now in ofbiz we are using groovy instead of bsh , we use groovy when there is need to prepare more complex data(like mathematical operation ) . We can perform CRUD operation without groovy file unless there is no need of complex data preparation .
Re: entity-one
Hello Adithi , Now in ofbiz we are using groovy instead of bsh , we use groovy when there is need to prepare more complex data(like mathematical operation ) . We can perform CRUD operation without groovy file unless there is no need of complex data preparation . -- -- Thanks and Regards Awdesh Singh Parihar HotwaxMedia Pvt Ltd. www.hotwaxmedia.com
Re: entity-one
Hello Adithi, Ofbiz best practice for performing CRUD operations is to write services and yes we can use Groovy for creating, updating ,retrieving and deleting data i.e for data preparation.Using Groovy we can get data from the database on the fly. --- Thanks and Regards Surya Kusumakar HotwaxMedia Pvt Ltd. www.hotwaxmedia.com Divesh Dutta wrote: engine="entity-auto" invoke="create" auth="true"> Create a Example main-action="CREATE"/> 1)This is service definition.you dont need override tag here.if you implement any interface just like when we implement any class in java,then you need override tag. 2)engine="entity-auto":: reason for using this tag is given below in this link: http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html 3)engine="entity-auto" invoke="create" play the role for creating the records for the default-entity "Example." 4) This tag automatically includes primary key and non primary key of default-entity-name="Example" Additional tags can be added by: 5)6)Please refer to practice application.I have already given you the link.most of the answer of your question are given over there. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd.
Re: entity-one
Hi Divesh, Aditi For #1 I would just like to add that its not necessary to use override tags with interfaces only. You can obviously use them when you use tag in you service definition. So the use of tag in this service definition is completely fine and as this service definition comes from OFBiz itself, it can't be wrong :). The use of tag is to override the behavior of a field that comes from an interface or tag or some other implemented service, in our service definition. On Mon, Sep 29, 2008 at 8:27 PM, Divesh Dutta <[EMAIL PROTECTED]>wrote: > engine="entity-auto" invoke="create" auth="true"> > Create a Example >main-action="CREATE"/> > > > > > > > > 1)This is service definition.you dont need override tag here.if you > implement any interface just like when we implement any class in java,then > you need override tag. > > 2)engine="entity-auto":: reason for using this tag is given below in this > link: > > http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html > > 3)engine="entity-auto" invoke="create" play the role for creating the > records for the default-entity "Example." > > 4) > > This tag automatically includes primary key and non primary key of > default-entity-name="Example" > Additional tags can be added by: > > 5) > 6)Please refer to practice application.I have already given you the > link.most of the answer of your question are given over there. > > > > Thanks And Regards > > Divesh Dutta > > Hotwax Media Pvt Ltd. > > > > > > > > > > > > > > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED]
Re: entity-one
Hi In practice application its written that we use groovy files or bsh files...So do these files help in saving and displaying data from database.Is Beanshell or Groovy a suggestable one...For a simple application to create,display,update and delete data,is groovy or Beanshell files required...(or Are widgets are sufficient) Thanks - Original Message From: Pranay Pandey <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Monday, September 29, 2008 8:12:37 AM Subject: Re: entity-one Hello Aditi, This will really help you, If you will learn working in OFBiz with steps not in one shot. Please refer this document for helping yourself : http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application This will really help you a lot. Thanks & Regards -- Pranay Pandey HotWax Media Pvt. Ltd. [EMAIL PROTECTED] www.hotwaxmedia.com Office : +917314093684 Direct : +919826035576 On Sep 29, 2008, at 8:32 PM, adithi agarwal wrote: > Hi Divesh.. > > Thankyou for your patience. > I think the explanation you have given is for updating the existing > data. > I am not yet clear with the storing of data(creation).. > Can you please say something about that.( I dint understand the > service fro create) > > Thankyou very much.. > > > > - Original Message > From: Divesh Dutta <[EMAIL PROTECTED]> > To: user@ofbiz.apache.org > Sent: Monday, September 29, 2008 7:31:49 AM > Subject: Re: entity-one > > hi adithi, > well you have asked lots of question.i am trying to answer them > one > by one. > > > this tag fetches generic value object for entity Example from > database and put it in a value-name"example".This tag is used when > we make service implementation for updating or deleting.we get > single generic value object of entity to be deleted or updated. > > for example look at this : > description="update a Party"> > > name="lookedUpValue"/> > > > > > here single generic value object of Party entity is fetched from > database and placed in "lookedupvalue".then all non primary key we > give from forms are stored in "lookedupvalue".that means > "lookedupvalue" contains field which we wanted to update and other > fields which are updated on.And then tag store this > fields in database. > > Thanks And Regards > Divesh Dutta > Hotwax Media Pvt Ltd. > > > > > adithi agarwal wrote: >> Hi all, >> Iam trying to create a user(ie store the data of a user). I have >> questions regarding thisplease I would be obliged if someone >> clears my doubts >> I have an entity in entitymodel.xml. >> That entity has four fields in it.(There is no primary key in it >> for now) >> In data dir I guess there should be a xml file starting with entity- >> engine-xml--What exactly is the use of this file and what data do >> we write in it and what is seed data(is it the data we see in our >> dropdown lists?) >> Is entitygroup.xml mantatory or optional. >> Iam refering the "example" application for this.. >> What does entity-one tag means ... >> >> What does: >> use-when="example==null" mean? >> when example is null it targets to"createExample" in controller.xml >> and createExample in controller points to service >> name=createExample in services.xml which is: >> >> > engine="entity-auto" invoke="create" auth="true"> >>Create a Example >>> main-action="CREATE"/> >> >> >> >> >> >> >> >> Iam not clear with this service can someone explain this in detail >> please >> >> Thankyou very much.. >> >> >> >> > > >
Re: entity-one
Thankyou so much Divesh..it is very helpful and yes I ll go through the practice application - Original Message From: Divesh Dutta <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Monday, September 29, 2008 7:57:59 AM Subject: Re: entity-one Create a Example 1)This is service definition.you dont need override tag here.if you implement any interface just like when we implement any class in java,then you need override tag. 2)engine="entity-auto":: reason for using this tag is given below in this link: http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html 3)engine="entity-auto" invoke="create" play the role for creating the records for the default-entity "Example." 4) This tag automatically includes primary key and non primary key of default-entity-name="Example" Additional tags can be added by: 5)
Re: entity-one
Hello Aditi, This will really help you, If you will learn working in OFBiz with steps not in one shot. Please refer this document for helping yourself : http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application This will really help you a lot. Thanks & Regards -- Pranay Pandey HotWax Media Pvt. Ltd. [EMAIL PROTECTED] www.hotwaxmedia.com Office : +917314093684 Direct : +919826035576 On Sep 29, 2008, at 8:32 PM, adithi agarwal wrote: Hi Divesh.. Thankyou for your patience. I think the explanation you have given is for updating the existing data. I am not yet clear with the storing of data(creation).. Can you please say something about that.( I dint understand the service fro create) Thankyou very much.. - Original Message From: Divesh Dutta <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Monday, September 29, 2008 7:31:49 AM Subject: Re: entity-one hi adithi, well you have asked lots of question.i am trying to answer them one by one. this tag fetches generic value object for entity Example from database and put it in a value-name"example".This tag is used when we make service implementation for updating or deleting.we get single generic value object of entity to be deleted or updated. for example look at this : description="update a Party"> name="lookedUpValue"/> here single generic value object of Party entity is fetched from database and placed in "lookedupvalue".then all non primary key we give from forms are stored in "lookedupvalue".that means "lookedupvalue" contains field which we wanted to update and other fields which are updated on.And then tag store this fields in database. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd. adithi agarwal wrote: Hi all, Iam trying to create a user(ie store the data of a user). I have questions regarding thisplease I would be obliged if someone clears my doubts I have an entity in entitymodel.xml. That entity has four fields in it.(There is no primary key in it for now) In data dir I guess there should be a xml file starting with entity- engine-xml--What exactly is the use of this file and what data do we write in it and what is seed data(is it the data we see in our dropdown lists?) Is entitygroup.xml mantatory or optional. Iam refering the "example" application for this.. What does entity-one tag means ... What does: use-when="example==null" mean? when example is null it targets to"createExample" in controller.xml and createExample in controller points to service name=createExample in services.xml which is: engine="entity-auto" invoke="create" auth="true"> Create a Example main-action="CREATE"/> Iam not clear with this service can someone explain this in detail please Thankyou very much..
Re: entity-one
Hi Divesh.. Thankyou for your patience. I think the explanation you have given is for updating the existing data. I am not yet clear with the storing of data(creation).. Can you please say something about that.( I dint understand the service fro create) Thankyou very much.. - Original Message From: Divesh Dutta <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Monday, September 29, 2008 7:31:49 AM Subject: Re: entity-one hi adithi, well you have asked lots of question.i am trying to answer them one by one. this tag fetches generic value object for entity Example from database and put it in a value-name"example".This tag is used when we make service implementation for updating or deleting.we get single generic value object of entity to be deleted or updated. for example look at this : here single generic value object of Party entity is fetched from database and placed in "lookedupvalue".then all non primary key we give from forms are stored in "lookedupvalue".that means "lookedupvalue" contains field which we wanted to update and other fields which are updated on.And then tag store this fields in database. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd. adithi agarwal wrote: > Hi all, > Iam trying to create a user(ie store the data of a user). I have questions > regarding thisplease I would be obliged if someone clears my doubts > I have an entity in entitymodel.xml. > That entity has four fields in it.(There is no primary key in it for now) > In data dir I guess there should be a xml file starting with > entity-engine-xml--What exactly is the use of this file and what data do we > write in it and what is seed data(is it the data we see in our dropdown > lists?) > Is entitygroup.xml mantatory or optional. > Iam refering the "example" application for this.. > What does entity-one tag means ... > > What does: > use-when="example==null" mean? > when example is null it targets to"createExample" in controller.xml > and createExample in controller points to service name=createExample in > services.xml which is: > > engine="entity-auto" invoke="create" auth="true"> > Create a Example > main-action="CREATE"/> > > > > > > > > Iam not clear with this service can someone explain this in detail please > > Thankyou very much.. > > > >
Re: entity-one
engine="entity-auto" invoke="create" auth="true"> Create a Example main-action="CREATE"/> 1)This is service definition.you dont need override tag here.if you implement any interface just like when we implement any class in java,then you need override tag. 2)engine="entity-auto":: reason for using this tag is given below in this link: http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html 3)engine="entity-auto" invoke="create" play the role for creating the records for the default-entity "Example." 4) This tag automatically includes primary key and non primary key of default-entity-name="Example" Additional tags can be added by: 5)6)Please refer to practice application.I have already given you the link.most of the answer of your question are given over there. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd.
Re: entity-one
hi adithi, you may also visit this link : http://ofbiz.apache.org/dtds/simple-methods.xsd this contains function of entity one.this may help you. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd. adithi agarwal wrote: Hi all, Iam trying to create a user(ie store the data of a user). I have questions regarding thisplease I would be obliged if someone clears my doubts I have an entity in entitymodel.xml. That entity has four fields in it.(There is no primary key in it for now) In data dir I guess there should be a xml file starting with entity-engine-xml--What exactly is the use of this file and what data do we write in it and what is seed data(is it the data we see in our dropdown lists?) Is entitygroup.xml mantatory or optional. Iam refering the "example" application for this.. What does entity-one tag means ... What does: use-when="example==null" mean? when example is null it targets to"createExample" in controller.xml and createExample in controller points to service name=createExample in services.xml which is: Create a Example Iam not clear with this service can someone explain this in detail please Thankyou very much..
Re: entity-one
hi adithi, well you have asked lots of question.i am trying to answer them one by one. this tag fetches generic value object for entity Example from database and put it in a value-name"example".This tag is used when we make service implementation for updating or deleting.we get single generic value object of entity to be deleted or updated. for example look at this : here single generic value object of Party entity is fetched from database and placed in "lookedupvalue".then all non primary key we give from forms are stored in "lookedupvalue".that means "lookedupvalue" contains field which we wanted to update and other fields which are updated on.And then tag store this fields in database. Thanks And Regards Divesh Dutta Hotwax Media Pvt Ltd. adithi agarwal wrote: Hi all, Iam trying to create a user(ie store the data of a user). I have questions regarding thisplease I would be obliged if someone clears my doubts I have an entity in entitymodel.xml. That entity has four fields in it.(There is no primary key in it for now) In data dir I guess there should be a xml file starting with entity-engine-xml--What exactly is the use of this file and what data do we write in it and what is seed data(is it the data we see in our dropdown lists?) Is entitygroup.xml mantatory or optional. Iam refering the "example" application for this.. What does entity-one tag means ... What does: use-when="example==null" mean? when example is null it targets to"createExample" in controller.xml and createExample in controller points to service name=createExample in services.xml which is: Create a Example Iam not clear with this service can someone explain this in detail please Thankyou very much..
Re: entity-one
Hi Adithi, First you can read OFBiz framework file that is simple-methods.xsd, this file give more knowledge about simple method tag. On Mon, Sep 29, 2008 at 7:43 PM, adithi agarwal <[EMAIL PROTECTED]>wrote: > Hi all, > Iam trying to create a user(ie store the data of a user). I have questions > regarding thisplease I would be obliged if someone clears my doubts > I have an entity in entitymodel.xml. > That entity has four fields in it.(There is no primary key in it for > now) > In data dir I guess there should be a xml file starting with > entity-engine-xml--What exactly is the use of this file and what data do we > write in it and what is seed data(is it the data we see in our dropdown > lists?) > Is entitygroup.xml mantatory or optional. > Iam refering the "example" application for this.. > What does entity-one tag means ... > > What does: > use-when="example==null" mean? > when example is null it targets to"createExample" in controller.xml > and createExample in controller points to service name=createExample in > services.xml which is: > > engine="entity-auto" invoke="create" auth="true"> >Create a Example > main-action="CREATE"/> > > > > > > > > Iam not clear with this service can someone explain this in detail please > > Thankyou very much.. > > >
entity-one
Hi all, Iam trying to create a user(ie store the data of a user). I have questions regarding thisplease I would be obliged if someone clears my doubts I have an entity in entitymodel.xml. That entity has four fields in it.(There is no primary key in it for now) In data dir I guess there should be a xml file starting with entity-engine-xml--What exactly is the use of this file and what data do we write in it and what is seed data(is it the data we see in our dropdown lists?) Is entitygroup.xml mantatory or optional. Iam refering the "example" application for this.. What does entity-one tag means ... What does: use-when="example==null" mean? when example is null it targets to"createExample" in controller.xml and createExample in controller points to service name=createExample in services.xml which is: Create a Example Iam not clear with this service can someone explain this in detail please Thankyou very much..
entity one
If have the following entities: I thought the relation type "one" would only allow me to have a value for EntityOne.entityTwoId of either null or a value that exists in EntityTwo.entityTwoId. However: bsh % e2 = delegator.findAll("EntityTwo"); bsh % print(e2); [] bsh % e1 = delegator.create("EntityOne", UtilMisc.toMap("entityOneId", "1", "entityTwoId", "THIS_KEY_DOESNT_EXIST")); // this should err?? bsh % print(e1); [GenericEntity:EntityOne][entityOneId,1(java.lang.String)] ... [THIS_KEY_DOESNT_EXIST(java.lang.String)] ... Where am I going wrong? Many thanks ...