Example component updated to use operator substitution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -54,8 +54,8 @@ under the License.
|
||||
<alt-target use-when="exampleFeature==null" target="createExampleFeature"/>
|
||||
<auto-fields-service service-name="updateExampleFeature"/>
|
||||
<field use-when="exampleFeature!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
||||
<field use-when="exampleFeature==null&&exampleFeatureId==null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><ignored/></field>
|
||||
<field use-when="exampleFeature==null&&exampleFeatureId!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleFeatureId}]" also-hidden="false"/></field>
|
||||
<field use-when="exampleFeature==null @and exampleFeatureId==null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><ignored/></field>
|
||||
<field use-when="exampleFeature==null @and exampleFeatureId!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleFeatureId}]" also-hidden="false"/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<drop-down allow-empty="false">
|
||||
|
||||
@@ -52,8 +52,8 @@ under the License.
|
||||
<field-map field-name="orderBy" from-field="parameters.sortField"/>
|
||||
</service>
|
||||
</actions>
|
||||
<alt-row-style use-when=""EXST_APPROVED".equals(statusId)" style="Validate"/>
|
||||
<alt-row-style use-when=""EXST_CANCELLED".equals(statusId)" style="Warn"/>
|
||||
<alt-row-style use-when="'EXST_APPROVED'.equals(statusId)" style="Validate"/>
|
||||
<alt-row-style use-when="'EXST_CANCELLED'.equals(statusId)" style="Warn"/>
|
||||
<field name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${exampleId}" target="EditExample">
|
||||
<parameter param-name="exampleId"/>
|
||||
@@ -103,8 +103,8 @@ under the License.
|
||||
<alt-target use-when="example==null" target="createExample"/>
|
||||
<auto-fields-service service-name="updateExample"/>
|
||||
<field use-when="example!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
||||
<field use-when="example==null&&exampleId==null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><ignored/></field>
|
||||
<field use-when="example==null&&exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
|
||||
<field use-when="example==null @and exampleId==null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><ignored/></field>
|
||||
<field use-when="example==null @and exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}" id-name="exampleTypeId">
|
||||
<drop-down allow-empty="false">
|
||||
<!-- this is a neat feature, but not good for the type because the user would have to know the possible types in order to enter at least the first letter, so leaving it out by default; just uncomment to enable: <auto-complete/> -->
|
||||
@@ -139,7 +139,7 @@ under the License.
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="displayAnotherText" use-when="example!=null&&example.get("anotherText")!=null">
|
||||
<field name="displayAnotherText" use-when="example!=null @and example.get('anotherText')!=null">
|
||||
<display description="${example.anotherText}"/>
|
||||
</field>
|
||||
<field name="submitButton" use-when="example==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
||||
|
||||
@@ -105,7 +105,7 @@ under the License.
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField7Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField7Tooltip}">
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MM/dd/yyyy");}"/>
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, 'MM/dd/yyyy');}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field8 *** -->
|
||||
@@ -114,7 +114,7 @@ under the License.
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField8Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField8Tooltip}">
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MMMM,dd,yyyy");}"/>
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, 'MMMM,dd,yyyy');}"/>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user