OFBIZ-6761 The action of EditExampleBackgroundSubmit form is not correct when creating a example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1719024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -90,7 +90,7 @@ under the License.
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
<entity-one entity-name="Example" value-field="ajaxExample"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-form name="EditExampleBackgroundSubmit" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
|
||||
@@ -165,6 +165,7 @@ under the License.
|
||||
<entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false">
|
||||
<field-map field-name="statusId" from-field="example.statusId"/>
|
||||
</entity-one>
|
||||
<set field="anotherText" from-field="example.anotherText"/>
|
||||
</actions>
|
||||
<alt-target use-when="example==null" target="createExample"/>
|
||||
<auto-fields-service service-name="updateExample"/>
|
||||
@@ -202,7 +203,7 @@ under the License.
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="displayAnotherText" use-when="example!=null @and example.get("anotherText")!=null">
|
||||
<field name="displayAnotherText" use-when="anotherText!=null">
|
||||
<display description="${example.anotherText}"/>
|
||||
</field>
|
||||
<field name="submitButton" use-when="example==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
||||
@@ -212,8 +213,8 @@ under the License.
|
||||
<!-- Typically, this extended form wouldn't be necessary. The parent form (EditExample) would
|
||||
have these settings. -->
|
||||
<form name="EditExampleBackgroundSubmit" type="single" extends="EditExample" target="updateExampleAjax">
|
||||
<alt-target use-when="example==null" target="createExampleAjax"/>
|
||||
<field name="statusId" use-when="example==null" title="${uiLabelMap.CommonStatus}" id-name="statusId">
|
||||
<alt-target use-when="ajaxExample==null" target="createExampleAjax"/>
|
||||
<field name="statusId" use-when="ajaxExample==null" title="${uiLabelMap.CommonStatus}" id-name="statusId">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleStatusItem"/>
|
||||
</drop-down>
|
||||
|
||||
Reference in New Issue
Block a user