You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Patrick <pa...@gmail.com> on 2010/01/21 21:53:50 UTC

auto-fields-service question related to tutorial

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

Re: auto-fields-service question related to tutorial

Posted by Scott Gray <sc...@hotwaxmedia.com>.
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
> mridul.pathak@hotwaxmedia.com
> -------------------------------------------------
> direct: +91 - 942.592.6892
> 
> 
> On Thu, Jan 21, 2010 at 1:53 PM, Patrick <pa...@gmail.com>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
>> 


Re: auto-fields-service question related to tutorial

Posted by Mridul Pathak <mr...@hotwaxmedia.com>.
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
mridul.pathak@hotwaxmedia.com
-------------------------------------------------
direct: +91 - 942.592.6892


On Thu, Jan 21, 2010 at 1:53 PM, Patrick <pa...@gmail.com>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
>