I'm on step 2 of this tutorial.
http://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide . I'm expecting to see the image, http://cwiki.apache.org/confluence/download/attachments/6553969/Personform1.png, with a list of 3 person related fields and an update and delete button, specifically [First Name] [Middle Name] [Last Name] [Update] [Delete] My code is retrieving every field, eg. [Birth Date] [Member ID] etc. I would like to restrict the retrieved fields to just First, Middle and Last Name and ignore all the other fields. I think the line that's doing it is this. <auto-fields-service service-name="updatePracticePerson" default-field-type="edit" map-name="person"/> How can I limit the number of fields that <auto-fields-service is pulling? Thanks Patrick |
Hi Patrick,
There are two ways of doing this: 1) Don't use <auto-field-service> tag and explicitly specify the fields you want to include in your form. 2) Limit the input attributes in "updatePracticePerson" service. -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [hidden email] ------------------------------------------------- direct: +91 - 942.592.6892 On Thu, Jan 21, 2010 at 1:53 PM, Patrick <[hidden email]>wrote: > I'm on step 2 of this tutorial. > > http://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide > . I'm expecting to see the image, > > http://cwiki.apache.org/confluence/download/attachments/6553969/Personform1.png > , > with a list of 3 person related fields and an update and delete > button, specifically [First Name] [Middle Name] [Last Name] [Update] > [Delete] > > My code is retrieving every field, eg. [Birth Date] [Member ID] etc. > I would like to restrict the retrieved fields to just First, Middle > and Last Name and ignore all the other fields. I think the line > that's doing it is this. > > <auto-fields-service service-name="updatePracticePerson" > default-field-type="edit" map-name="person"/> > > How can I limit the number of fields that <auto-fields-service is > pulling? Thanks > Patrick > |
You can also use the
<field name="birthDate"><ignored/></field> format to remove auto fields from the form. Regards Scott HotWax Media http://www.hotwaxmedia.com On 21/01/2010, at 3:59 PM, Mridul Pathak wrote: > Hi Patrick, > > There are two ways of doing this: > 1) Don't use <auto-field-service> tag and explicitly specify the fields you > want to include in your form. > 2) Limit the input attributes in "updatePracticePerson" service. > > -- > Thanks & Regards > Mridul Pathak > Hotwax Media > http://www.hotwaxmedia.com > [hidden email] > ------------------------------------------------- > direct: +91 - 942.592.6892 > > > On Thu, Jan 21, 2010 at 1:53 PM, Patrick <[hidden email]>wrote: > >> I'm on step 2 of this tutorial. >> >> http://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide >> . I'm expecting to see the image, >> >> http://cwiki.apache.org/confluence/download/attachments/6553969/Personform1.png >> , >> with a list of 3 person related fields and an update and delete >> button, specifically [First Name] [Middle Name] [Last Name] [Update] >> [Delete] >> >> My code is retrieving every field, eg. [Birth Date] [Member ID] etc. >> I would like to restrict the retrieved fields to just First, Middle >> and Last Name and ignore all the other fields. I think the line >> that's doing it is this. >> >> <auto-fields-service service-name="updatePracticePerson" >> default-field-type="edit" map-name="person"/> >> >> How can I limit the number of fields that <auto-fields-service is >> pulling? Thanks >> Patrick >> smime.p7s (3K) Download Attachment |
Free forum by Nabble | Edit this page |