Minor changes in the Example component.

Also changes from CommonPartyID to CommonPartyId (following our rules)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996476 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2010-09-13 09:59:08 +00:00
parent 63e4c236d0
commit 71b5c1f8d3
4 changed files with 51 additions and 20 deletions
@@ -299,24 +299,24 @@ under the License.
<!-- Lookup Examples -->
<form name="ExampleLookupFields" type="single" title="">
<!-- Old style lookup (in a popup window) -->
<field name="partyIdTo"><!-- we use partyIdTo here only to differentiate from the other partyId field we use below-->
<field name="partyId" title="${uiLabelMap.CommonPartyId}">
<lookup target-form-name="LookupPartyName" presentation="window"/>
</field>
<!-- Standard lookup (in a layer)-->
<!-- passes the name in one field and the id in another -->
<field name="partyName" title="${uiLabelMap.CommonName}">
<lookup target-form-name="LookupPartyGroupByName" description-field-name="partyId"/>
<!-- passes the name in one field and the id in another, this does not work yet with autcompletion, WIP... -->
<field name="partyName" title="${uiLabelMap.CommonPartyGroupName}">
<lookup target-form-name="LookupPartyGroupByName" description-field-name="partyGroupId"/>
</field>
<!-- This field may be hidden and the name rendered in partyName using default-value if partyId is known when loading the form-->
<field name="partyId" title="${uiLabelMap.CommonPartyID}"><text/></field><!-- the text field is only used for rendering. In the "real life" you would use the hidden fiels commented below to pass the data to the request -->
<!--field name="partyId"><hidden/></field-->
<!-- This field may be hidden and the name rendered in partyName using default-value if partyGroupId is known when loading the form-->
<field name="partyGroupId" title="${uiLabelMap.CommonPartyId}"><text/></field><!-- the text field is only used for rendering. In the "real life" you would use the hidden field commented below to pass the data to the request -->
<!--field name="partyGroupId"><hidden/></field-->
<sort-order>
<field-group>
<sort-field name="partyIdTo"/>
<sort-field name="partyId"/>
</field-group>
<field-group>
<sort-field name="partyName"/>
<sort-field name="partyId"/>
<sort-field name="partyGroupId"/>
</field-group>
</sort-order>
</form>