framework/webtools/widget/tempExprForms.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<!-- Temporal Expression forms -->
<form name="FindTemporalExpression" target="findTemporalExpression" type="single">
<actions>
<set field="expressionTypeList" value="${groovy:org.ofbiz.service.calendar.ExpressionUiHelper.getExpressionTypeList(uiLabelMap);}" type="List"/>
</actions>
<field name="tempExprId" title="${uiLabelMap.TemporalExpressionId}"><text-find/></field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text-find/></field>
<!-- <field name="tempExprTypeId" title="${uiLabelMap.TemporalExpressionType}">
<drop-down allow-empty="true">
<list-options list-name="expressionTypeList" key-name="value" description="description"/>
</drop-down>
</field> -->
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
</form>
<form name="BasicExpressionList" type="list"
odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="tempExprId" title="${uiLabelMap.TemporalExpressionId}" sort-field="true" widget-style="${styles.link_nav_info_id} ${styles.action_view}">
<hyperlink also-hidden="false" target-type="plain" description="${tempExprId}" target="editTemporalExpression">
<parameter param-name="tempExprId"/>
</hyperlink>
</field>
<field name="tempExprTypeId" title="${uiLabelMap.TemporalExpressionType}" sort-field="true"><display/></field>
<field name="description" sort-field="true"><display/></field>
<field name="date1" sort-field="true"><display/></field>
<field name="date2" sort-field="true"><display/></field>
<field name="integer1" sort-field="true"><display/></field>
<field name="integer2" sort-field="true"><display/></field>
<field name="string1" sort-field="true"><display/></field>
<field name="string2" sort-field="true"><display/></field>
</form>
<form name="ListTemporalExpressions" extends="BasicExpressionList" list-name="listIt" paginate="true">
<actions>
<set field="parameters.sortField" from-field="parameters.sortField" default-value="tempExprId"/>
<service service-name="performFind" result-map="result" result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="TemporalExpression"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
</form>
<form name="ListChildExpressions" extends="BasicExpressionList" list-name="childExpressionList" paginate-target="editTemporalExpression?tempExprId=${tempExprId}">
<field name="exprAssocType"><display/></field>
<field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteTemporalExpressionAssoc">
<parameter param-name="tempExprId" from-field="parameters.tempExprId"/>
<parameter param-name="fromTempExprId"/>
<parameter param-name="toTempExprId" from-field="tempExprId"/>
</hyperlink>
</field>
</form>
</forms>