A solution for "State field is missing - Not in List or N/A" reported by Sam Hamilton at https://issues.apache.org/jira/browse/OFBIZ-3247 - OFBIZ-3247
I finally decided to use the new Dependent Dropdowns mechanim. I have also refined how it's used in Example to avoid confusion, so changed setDependentDropdownValuesJs.ftl to pass paramKey when it's different from mainId git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -56,7 +56,8 @@ under the License.
|
||||
<!-- setCountryStatesEventJs.ftl, it's not used here but is 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? -->
|
||||
<set field="dependentForm" value="DropDownFieldsExampleForm"/>
|
||||
<set field="mainId" value="countryGeoId"/><!-- here mainId and its key are same -->
|
||||
<set field="paramKey" value="countryGeoId"/>
|
||||
<set field="mainId" value="countryGeoId"/>
|
||||
<set field="dependentId" value="stateProvinceGeoId"/>
|
||||
<set field="requestName" value="getAssociatedStateList"/>
|
||||
<set field="responseName" value="stateList"/>
|
||||
|
||||
Reference in New Issue
Block a user