| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd"> |
| |
| <form name="FindExampleFeatures" type="single" target="FindExampleFeature" default-entity-name="ExampleFeature"> |
| <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> |
| <field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><text-find/></field> |
| <field name="description" title="${uiLabelMap.CommonDescription}"><text-find/></field> |
| <field name="searchButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| |
| <grid name="ListExampleFeatures" list-name="listIt" paginate-target="FindExampleFeature" default-entity-name="ExampleFeature" |
| separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> |
| <actions> |
| <service service-name="performFind" result-map="result" result-map-list="listIt"> |
| <field-map field-name="inputFields" from-field="exampleFeatureCtx"/> |
| <field-map field-name="entityName" value="ExampleFeature"/> |
| <field-map field-name="viewIndex" from-field="viewIndex"/> |
| <field-map field-name="viewSize" from-field="viewSize"/> |
| </service> |
| </actions> |
| <field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" widget-style="buttontext"> |
| <hyperlink description="${exampleFeatureId}" target="EditExampleFeature" also-hidden="false"> |
| <parameter param-name="exampleFeatureId"/> |
| </hyperlink> |
| </field> |
| <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field> |
| </grid> |
| |
| <form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature"> |
| <actions> |
| <entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false"> |
| <field-map field-name="statusId" from-field="example.statusId"/> |
| </entity-one> |
| </actions> |
| <alt-target use-when="exampleFeature==null" target="createExampleFeature"/> |
| <auto-fields-service service-name="updateExampleFeature"/> |
| <field use-when="exampleFeature!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><display/></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}" required-field="true"/> |
| <field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}"> |
| <drop-down allow-empty="false"> |
| <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]"> |
| <entity-constraint name="enumTypeId" value="EXMPL_FEAT_SOURCE"/> |
| <entity-order-by field-name="sequenceId"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="submitButton" use-when="exampleFeature==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> |
| <field name="submitButton" use-when="exampleFeature!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field> |
| </form> |
| |
| <!-- ExampleFeatureAppl --> |
| <grid name="ListExampleFeatureAppls" list-name="exampleFeatureAppls" target="feature_updateExampleFeatureAppl"> |
| <actions> |
| <entity-condition entity-name="ExampleFeatureAppl"> |
| <order-by field-name="exampleId"/> |
| <order-by field-name="sequenceNum"/> |
| </entity-condition> |
| </actions> |
| <auto-fields-service service-name="updateExampleFeatureAppl"/> |
| <field name="exampleId" title="${uiLabelMap.ExampleExample}"> |
| <display-entity entity-name="Example" description="${exampleName}"> |
| <sub-hyperlink target="EditExampleLayer" description="${exampleId}" link-style="buttontext" link-type="layered-modal"> |
| <parameter param-name="exampleId"/> |
| </sub-hyperlink> |
| </display-entity> |
| </field> |
| <field name="exampleFeatureId"><hidden/></field> |
| <field name="fromDate"><display/></field> |
| <field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}"> |
| <drop-down allow-empty="true"> |
| <entity-options entity-name="ExampleFeatureApplType"> |
| <entity-order-by field-name="description"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field> |
| <field name="deleteLink" title="" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonDelete}" target="feature_deleteExampleFeatureAppl" also-hidden="false"> |
| <parameter param-name="exampleId"/> |
| <parameter param-name="exampleFeatureId"/> |
| <parameter param-name="fromDate"/> |
| </hyperlink> |
| </field> |
| </grid> |
| |
| |
| <form name="AddExampleFeatureAppl" type="single" target="feature_createExampleFeatureAppl" title=""> |
| <auto-fields-service service-name="createExampleFeatureAppl"/> |
| <field name="exampleId" title="${uiLabelMap.ExampleExample}"> |
| <drop-down allow-empty="false"> |
| <entity-options entity-name="Example" description="${exampleName} [${exampleId}]"> |
| <entity-order-by field-name="exampleName"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="exampleFeatureId"> |
| <drop-down allow-empty="false"> |
| <entity-options entity-name="ExampleFeature" description="${description} [${exampleFeatureId}]"> |
| <entity-order-by field-name="description"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}"> |
| <drop-down allow-empty="true"> |
| <entity-options entity-name="ExampleFeatureApplType"> |
| <entity-order-by field-name="description"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="LookupFindExampleFeature" target="LookupExampleFeature" title="" type="single"> |
| <auto-fields-entity entity-name="ExampleFeature" default-field-type="find"/> |
| <field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"/> <!-- <text-find/> --> |
| <field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}"> |
| <drop-down allow-empty="true"> |
| <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]"> |
| <entity-constraint name="enumTypeId" value="EXMPL_FEAT_SOURCE"/> |
| <entity-order-by field-name="sequenceId"/> |
| </entity-options> |
| </drop-down> |
| </field> |
| <field name="description" title="${uiLabelMap.CommonDescription}"/> |
| <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> |
| <field name="submitButton" title="${uiLabelMap.CommonFind}"><submit button-type="button"/></field> |
| </form> |
| |
| <grid name="LookupListExampleFeature" list-name="listIt" title="" |
| paginate-target="LookupExampleFeature"> |
| <actions> |
| <service service-name="performFind" result-map="result" result-map-list="listIt"> |
| <field-map field-name="inputFields" from-field="parameters"/> |
| <field-map field-name="orderBy" value="description"/> |
| <field-map field-name="entityName" value="ExampleFeature"/> |
| <field-map field-name="viewIndex" from-field="viewIndex"/> |
| <field-map field-name="viewSize" from-field="viewSize"/> |
| </service> |
| </actions> |
| <!--<auto-fields-entity entity-name="ExampleFeature" default-field-type="display"/>--> |
| <field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" widget-style="buttontext"> |
| <hyperlink description="${exampleFeatureId}" target="javascript:set_value('${exampleFeatureId}')" also-hidden="false" target-type="plain"/> |
| </field> |
| <field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}"> |
| <display-entity entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]" also-hidden="false"/> |
| </field> |
| <field name="description" title="${uiLabelMap.CommonDescription}"><display also-hidden="false"/></field> |
| </grid> |
| |
| </forms> |