* Especially fix a bug in fieldlookup.js.

When using description-field-name in a layered lookup called from another layered lookup (recursively or not) the description-field-name parameter (target2) in the call from the 2d lookup button was not modified, therefore the link was not working.

Miscellaneous:
* Format and fix some typos in fieldlookup.js
* Removes now useless commented out functions set_value and set_values in lookup.ftl
* Improves comments in FormWidgetExampleForms.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2010-05-23 10:08:21 +00:00
parent c152093e71
commit 14adf43d86
3 changed files with 24 additions and 53 deletions
@@ -282,12 +282,12 @@ under the License.
<!-- Lookup Layer Example -->
<form name="ExampleLookupFields" type="single" title="">
<!-- Lookup (in a popup windows, old style) -->
<!-- Using separated labels is not recommended (it's better using sentences than words for translation) but here we use only Common labels to avoid dependencies from application to framework -->
<!-- Old style lookup (in a popup window) -->
<!-- Using separated labels is not recommended (it's better using sentences than words for translation) -->
<field name="partyIdFrom" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}"><!-- we use partyIdFrom here only to differentiate from the other partyId field we use below, ie partyIdTo-->
<lookup target-form-name="LookupPartyExample" presentation="window"/>
</field>
<!-- Standard Lookup in a layer (new style)-->
<!-- Standard lookup (in a layer)-->
<!-- passes the name in one and the id in another field -->
<field name="partyName" title="${uiLabelMap.CommonName}">
<lookup target-form-name="LookupPartyExampleByName" description-field-name="partyIdTo"/>