You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/02/08 18:41:05 UTC
svn commit: r1068490 - in /ofbiz/trunk:
applications/commonext/widget/ofbizsetup/
applications/party/widget/partymgr/ framework/example/widget/example/
Author: jleroux
Date: Tue Feb 8 17:41:04 2011
New Revision: 1068490
URL: http://svn.apache.org/viewvc?rev=1068490&view=rev
Log:
Replaces obsolete comment by a better information on what is really possible to do with getDependentDropdownValues.js
Also removed tabs in SetupScreens.xml and formatted correctly
Modified:
ofbiz/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
ofbiz/trunk/applications/commonext/widget/ofbizsetup/SetupScreens.xml
ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleScreens.xml
Modified: ofbiz/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml?rev=1068490&r1=1068489&r2=1068490&view=diff
==============================================================================
--- ofbiz/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml (original)
+++ ofbiz/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml Tue Feb 8 17:41:04 2011
@@ -50,7 +50,7 @@
<if-empty field="parties"/>
</condition>
<actions>
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
<set field="dependentForm" value="NewCustomer"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="USER_COUNTRY"/>
@@ -84,9 +84,9 @@
<screen name="viewprofile">
<section>
- <actions>
- <set field="parameters.partyId" from-field="partyId"/>
- </actions>
+ <actions>
+ <set field="parameters.partyId" from-field="partyId"/>
+ </actions>
<widgets>
<include-screen name="Party" location="applications/party/widget/partymgr/ProfileScreens.xml"/>
<include-screen name="Contact" location="applications/party/widget/partymgr/ProfileScreens.xml"/>
Modified: ofbiz/trunk/applications/commonext/widget/ofbizsetup/SetupScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/commonext/widget/ofbizsetup/SetupScreens.xml?rev=1068490&r1=1068489&r2=1068490&view=diff
==============================================================================
--- ofbiz/trunk/applications/commonext/widget/ofbizsetup/SetupScreens.xml (original)
+++ ofbiz/trunk/applications/commonext/widget/ofbizsetup/SetupScreens.xml Tue Feb 8 17:41:04 2011
@@ -43,29 +43,29 @@
<if-empty field="parties"/>
</condition>
<widgets>
- <section>
- <actions>
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
- <set field="dependentForm" value="NewOrganization"/>
- <set field="paramKey" value="countryGeoId"/>
- <set field="mainId" value="USER_COUNTRY"/>
- <set field="dependentId" value="USER_STATE"/>
- <set field="requestName" value="getAssociatedStateList"/>
- <set field="responseName" value="stateList"/>
- <set field="dependentKeyName" value="geoId"/>
- <set field="descName" value="geoName"/>
- <set field="selectedDependentOption" value="_none_"/>
- </actions>
- <widgets>
+ <section>
+ <actions>
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
+ <set field="dependentForm" value="NewOrganization"/>
+ <set field="paramKey" value="countryGeoId"/>
+ <set field="mainId" value="USER_COUNTRY"/>
+ <set field="dependentId" value="USER_STATE"/>
+ <set field="requestName" value="getAssociatedStateList"/>
+ <set field="responseName" value="stateList"/>
+ <set field="dependentKeyName" value="geoId"/>
+ <set field="descName" value="geoName"/>
+ <set field="selectedDependentOption" value="_none_"/>
+ </actions>
+ <widgets>
<platform-specific><html><html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/></html></platform-specific>
<screenlet title="${uiLabelMap.SetupCreateNewOrganization}">
<include-form name="NewOrganization" location="component://commonext/widget/ofbizsetup/SetupForms.xml"/>
</screenlet>
- </widgets>
- </section>
+ </widgets>
+ </section>
</widgets>
<fail-widgets>
- <include-screen name="viewprofile" location="component://commonext/widget/ofbizsetup/ProfileScreens.xml"/>
+ <include-screen name="viewprofile" location="component://commonext/widget/ofbizsetup/ProfileScreens.xml"/>
</fail-widgets>
</section>
</decorator-section>
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=1068490&r1=1068489&r2=1068490&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Tue Feb 8 17:41:04 2011
@@ -693,7 +693,7 @@ under the License.
<if-has-permission permission="PARTYMGR" action="_CREATE"/>
</condition>
<actions>
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
<set field="dependentForm" value="NewUser"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="USER_COUNTRY"/>
@@ -738,7 +738,7 @@ under the License.
<if-has-permission permission="PARTYMGR" action="_CREATE"/>
</condition>
<actions>
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
<set field="dependentForm" value="NewUser"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="USER_COUNTRY"/>
@@ -783,7 +783,7 @@ under the License.
<if-has-permission permission="PARTYMGR" action="_CREATE"/>
</condition>
<actions>
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
<set field="dependentForm" value="NewUser"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="USER_COUNTRY"/>
Modified: ofbiz/trunk/framework/example/widget/example/FormWidgetExampleScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleScreens.xml?rev=1068490&r1=1068489&r2=1068490&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/FormWidgetExampleScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleScreens.xml Tue Feb 8 17:41:04 2011
@@ -54,7 +54,7 @@ under the License.
<section>
<actions>
<!-- setCountryStatesEventJs.ftl, it's not used here but could be. It's a good example of a reusable template-script with harcoded values which make sense -->
- <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? -->
+ <!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization, if you need an example with more than one dropdown in a form have a look at EditProductPriceRules screen -->
<set field="dependentForm" value="DropDownFieldsExampleForm"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="countryGeoId"/>