Author: hansbak
Date: Mon Aug 17 09:54:19 2009 New Revision: 804913 URL: http://svn.apache.org/viewvc?rev=804913&view=rev Log: added order directives to dropdowns Modified: ofbiz/trunk/applications/content/widget/content/ContentForms.xml ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Modified: ofbiz/trunk/applications/content/widget/content/ContentForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/ContentForms.xml?rev=804913&r1=804912&r2=804913&view=diff ============================================================================== --- ofbiz/trunk/applications/content/widget/content/ContentForms.xml (original) +++ ofbiz/trunk/applications/content/widget/content/ContentForms.xml Mon Aug 17 09:54:19 2009 @@ -30,12 +30,16 @@ <field name="description"><text-find default-option="contains" ignore-case="true"/></field> <field name="contentTypeId" position="1"> <drop-down allow-empty="true"> - <entity-options description="${description}" entity-name="ContentType" key-field-name="contentTypeId"/> + <entity-options description="${description}" entity-name="ContentType" key-field-name="contentTypeId"> + <entity-order-by field-name="description"/> + </entity-options> </drop-down> </field> <field name="mimeTypeId" position="2"> <drop-down allow-empty="true"> - <entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"/> + <entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"> + <entity-order-by field-name="description"/> + </entity-options> </drop-down> </field> <field name="dataResourceId" position="1"> @@ -48,13 +52,16 @@ <drop-down allow-empty="true"> <entity-options description="${description}" entity-name="StatusItem"> <entity-constraint name="statusTypeId" operator="equals" value="CONTENT_STATUS"/> + <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="createdByUserLogin" position="2"><lookup target-form-name="LookupPerson"/></field> <field name="localeString"> <drop-down allow-empty="true"> - <entity-options entity-name="CountryCode" description="${countryName} [${countryCode}]" key-field-name="countryCode"/> + <entity-options entity-name="CountryCode" description="${countryName} [${countryCode}]" key-field-name="countryCode"> + <entity-order-by field-name="countryName"/> + </entity-options> </drop-down> </field> <field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field> Modified: ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml?rev=804913&r1=804912&r2=804913&view=diff ============================================================================== --- ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml (original) +++ ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Mon Aug 17 09:54:19 2009 @@ -28,30 +28,39 @@ <field name="dataResourceName"><text-find default-option="contains" ignore-case="true"/></field> <field name="dataResourceTypeId"> <drop-down allow-empty="true"> - <entity-options description="${description}" entity-name="DataResourceType" key-field-name="dataResourceTypeId"/> + <entity-options description="${description}" entity-name="DataResourceType" key-field-name="dataResourceTypeId"> + <entity-order-by field-name="description"/> + </entity-options> </drop-down> </field> <field name="mimeTypeId" position="2"> <drop-down allow-empty="true"> - <entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"/> + <entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"> + <entity-order-by field-name="description"/> + </entity-options> </drop-down> </field> <field name="statusId"> <drop-down allow-empty="true"> <entity-options description="${description}" entity-name="StatusItem"> <entity-constraint name="statusTypeId" operator="equals" value="CONTENT_STATUS"/> + <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="localeString" position="2"> <drop-down allow-empty="true"> - <entity-options entity-name="CountryCode" description="${countryName} [${countryCode}]" key-field-name="countryCode"/> + <entity-options entity-name="CountryCode" description="${countryName} [${countryCode}]" key-field-name="countryCode"> + <entity-order-by field-name="countryName"/> + </entity-options> </drop-down> </field> <field name="createdByUserLogin" position="1"><lookup target-form-name="LookupPerson"/></field> <field name="dataCategoryId" position="2"> <drop-down allow-empty="true"> - <entity-options description="${categoryName}" entity-name="DataCategory"/> + <entity-options description="${categoryName}" entity-name="DataCategory"> + <entity-order-by field-name="categoryName"/> + </entity-options> </drop-down> </field> <field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field> |
Free forum by Nabble | Edit this page |