Thank you for your patience!
I must admit that I have some difficulty to express this question.
Actually David's answers are totally different from yours.

-----Original Message-----
From: BJ Freeman [mailto:[email protected]] 
Sent: 2009年2月20日 13:28
To: [email protected]
Subject: Re: Tricky! About fields in the form

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

this was your first post.
this is what I have been trying to answer
it seems ever-time I answer you change directions and or requirements.
this does not show you understood ofbiz.
at this point I bow out.


Jack Liu sent the following on 2/16/2009 5:29 PM:
> Hi, All
> In my project, there are many protocols to set up.
> For every protocol, it has many attributes. 
> All these protocols have been divided into several types according to
> their usage.
> 
> For example
> A type has attributes: ChlUrl, SupportedCharsets, ServerID
> B type has attributes: InClientPull
> C type has attributes: ChlUrl, SMRCustomerType, GMDChargingCurrency,
> SupportedCharsets, ServerID
> 
>       <form name="A" type="single"
> target="createProtocolAttribute?protocolid=${id}">
>               <field name="ChlUrl"><text/></field>
>               <field name="SupportedCharsets"><text/></field>
>               <field name="ServerID"><text/></field>
>               <field name="submitButton" title="Add Protocol">
>                       <submit button-type="button"/>
>               </field>
>       </form>
>       <form name="B" type="single"
> target="createProtocolAttribute?protocolid=${id}">
>               <field name="InClientPull"><text/></field>
>               <field name="submitButton" title="Add Protocol">
>                       <submit button-type="button"/>
>               </field>
>       </form>
>       <form name="C" type="single"
> target="createProtocolAttribute?protocolid=${id}">
>               <field name="ChlUrl"><text/></field>
>               <field name="SMRCustomerType"><text/></field>
>               <field name="GMDChargingCurrency"><text/></field>
>               <field name="SupportedCharsets"><text/></field>
>               <field name="ServerID"><text/></field>
>               <field name="submitButton" title="Add Protocol">
>                       <submit button-type="button"/>
>               </field>
>       </form>
> 
> When setting up a protocol in a web page, first choose a type from
> drop-down list, the web page show attributes relating to its type.
> After filling in the attributes' value, submit the form and save all
> these attribute-value pairs in the table protocolAttribute below.
> 
> services.xml
>       <service name=" createProtocolAttribute " engine="java"
> location="com.xian.cmb.CmbServices" invoke="createProtocolAttribute">
>               <attribute name="ChlUrl" mode="IN" type="String"
> optional="true" />
>               <attribute name="SupportedCharsets" mode="IN"
> type="String" optional="true" />
>               <attribute name="ServerID" mode="IN" type="String"
> optional="true" />
>               <attribute name="InClientPull" mode="IN" type="String"
> optional="true" />
>               <attribute name="SMRCustomerType" mode="IN"
> type="String" optional="true" />
>               <attribute name="GMDChargingCurrency" mode="IN"
> type="String" optional="true" />
>     </service>
>     
> 
> Tables:
> protocol: protocolid, protocolName.
> protocolAttribute: id, protocolid, attribute, value.
> 
> 
> With the progress of technology, the number of every protocol's
> attributes is increasing.
> So we need to modify the forms in the screens to add new fields and
> services.xml file to add mode IN attributes, and java code to save newly
> added attribute-value pairs. 
> Can OFBiz have solutions to deal with the CHANGE and When adding an
> attribute, we needn't modify the form, services.xml and java source
> code?
> 
> 
> 
> 
> Best Regards,
> 
> Jack Liu 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJnj9DrP3NbaWWqE4RAr4FAKDDyVBSeyPZBilW5jLkd/UZ6BlzigCgg8ok
w0oqq2j55zS4Fc8ftciYRB8=
=no5+
-----END PGP SIGNATURE-----

Reply via email to