svn commit: r940401 - in /ofbiz/trunk/framework: example/widget/example/FormWidgetExampleLookupForms.xml images/webapp/images/fieldlookup.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r940401 - in /ofbiz/trunk/framework: example/widget/example/FormWidgetExampleLookupForms.xml images/webapp/images/fieldlookup.js

jleroux@apache.org
Author: jleroux
Date: Mon May  3 09:10:49 2010
New Revision: 940401

URL: http://svn.apache.org/viewvc?rev=940401&view=rev
Log:
A patch from Ankit Jain "Allow to open a layer lookup from a layer lookup" https://issues.apache.org/jira/browse/OFBIZ-3446 - OFBIZ-3446

Uncomment the line to return the name in the calling screen

I have also added groupName in the name returned (when looking for  partyGroup)

Modified:
    ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
    ofbiz/trunk/framework/images/webapp/images/fieldlookup.js

Modified: ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml?rev=940401&r1=940400&r2=940401&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml Mon May  3 09:10:49 2010
@@ -85,7 +85,7 @@ under the License.
         </actions>
         <!--<auto-fields-entity entity-name="PartyNameView" default-field-type="display"/>-->
         <field name="partyId" title="${uiLabelMap.PartyPartyId}"  widget-style="smallSubmit">
-            <hyperlink also-hidden="false" target-type="plain" description="${partyId}" target="javascript:set_values('${firstName} ${lastName}','${partyId}')"/>
+            <hyperlink also-hidden="false" target-type="plain" description="${partyId}" target="javascript:set_values('${firstName} ${lastName} ${groupName}','${partyId}')"/>
         </field>
         <field name="partyTypeId" title="${uiLabelMap.PartyTypeId}">
             <display-entity also-hidden="false" entity-name="PartyType" description="${description}"/>

Modified: ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js?rev=940401&r1=940400&r2=940401&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Mon May  3 09:10:49 2010
@@ -739,7 +739,7 @@ function set_value (value) {
 }
 // function passing selected value to calling window
 function set_values (value, value2) {
-    /*obj_caller.target = $(GLOBAL_LOOKUP_REF.getReference(ACTIVATED_LOOKUP).parentTarget.id);*/
+    obj_caller.target = $(GLOBAL_LOOKUP_REF.getReference(ACTIVATED_LOOKUP).parentTarget.id);
     var target = obj_caller.target;
     var target2 = obj_caller.target2;
     write_value(value, target);