Author: buscob
Date: Fri Nov 19 23:19:10 2010 New Revision: 1037078 URL: http://svn.apache.org/viewvc?rev=1037078&view=rev Log: Enabled column sorting in Survey list, WebSite list and DataResource list forms Modified: ofbiz/trunk/applications/content/webapp/content/survey/SurveyForms.xml ofbiz/trunk/applications/content/webapp/content/website/WebSiteForms.xml ofbiz/trunk/applications/content/widget/WebSiteScreens.xml ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Modified: ofbiz/trunk/applications/content/webapp/content/survey/SurveyForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/survey/SurveyForms.xml?rev=1037078&r1=1037077&r2=1037078&view=diff ============================================================================== --- ofbiz/trunk/applications/content/webapp/content/survey/SurveyForms.xml (original) +++ ofbiz/trunk/applications/content/webapp/content/survey/SurveyForms.xml Fri Nov 19 23:19:10 2010 @@ -41,12 +41,13 @@ under the License. <service result-map-list="listIt" result-map="result" service-name="performFind"> <field-map field-name="inputFields" from-field="parameters"/> <field-map field-name="entityName" value="Survey"/> + <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> <auto-fields-entity entity-name="Survey" default-field-type="display"/> - <field name="surveyId" title="${uiLabelMap.ContentSurveySurveyId}" widget-style="buttontext"> + <field name="surveyId" title="${uiLabelMap.ContentSurveySurveyId}" widget-style="buttontext" sort-field="true"> <hyperlink description="${surveyId}" target="EditSurvey" also-hidden="false"> <parameter param-name="surveyId"/> </hyperlink> Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteForms.xml?rev=1037078&r1=1037077&r2=1037078&view=diff ============================================================================== --- ofbiz/trunk/applications/content/webapp/content/website/WebSiteForms.xml (original) +++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteForms.xml Fri Nov 19 23:19:10 2010 @@ -58,14 +58,20 @@ under the License. <field name="submitButton" title="${uiLabelMap.CommonSubmit}"><submit button-type="button"/></field> </form> <form name="ListWebSites" target="" title="" type="list" list-name="webSites" paginate-target="FindWebSite" paginate="true" - odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> - <field name="webSiteId" title="${uiLabelMap.CommonId}" widget-style="buttontext"> + odd-row-style="alternate-row" default-table-style="basic-table hover-bar" header-row-style="header-row-2"> + <actions> + <set field="parameters.sortField" from-field="parameters.sortField" default-value="-webSiteId"/> + <entity-condition entity-name="WebSite" list="webSites"> + <order-by field-name="${parameters.sortField}"/> + </entity-condition> + </actions> + <field name="webSiteId" title="${uiLabelMap.CommonId}" widget-style="buttontext" sort-field="true"> <hyperlink description="${webSiteId}" target="EditWebSite" also-hidden="false"> <parameter param-name="webSiteId"/> </hyperlink> </field> - <field name="siteName" title="${uiLabelMap.CommonName}"><display/></field> - <field name="httpHost"><display/></field> + <field name="siteName" title="${uiLabelMap.CommonName}" sort-field="true"><display/></field> + <field name="httpHost" sort-field="true"><display/></field> </form> <form name="WebSitePathAlias" target="" title="" type="list" list-name="aliases" paginate-target="WebSiteAliases" paginate="true" Modified: ofbiz/trunk/applications/content/widget/WebSiteScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/WebSiteScreens.xml?rev=1037078&r1=1037077&r2=1037078&view=diff ============================================================================== --- ofbiz/trunk/applications/content/widget/WebSiteScreens.xml (original) +++ ofbiz/trunk/applications/content/widget/WebSiteScreens.xml Fri Nov 19 23:19:10 2010 @@ -26,10 +26,6 @@ under the License. <set field="titleProperty" value="PageTitleFindWebSite"/> <set field="headerItem" value="websites"/> <set field="labelTitleProperty" value="PageTitleFindWebSite"/> - - <entity-condition entity-name="WebSite" list="webSites"> - <order-by field-name="webSiteId"/> - </entity-condition> </actions> <widgets> <decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml"> Modified: ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml?rev=1037078&r1=1037077&r2=1037078&view=diff ============================================================================== --- ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml (original) +++ ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Fri Nov 19 23:19:10 2010 @@ -69,28 +69,28 @@ under the License. <form name="ListDataResource" target="" title="" list-name="listIt" type="list" paginate-target="findDataResource" 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="parameters"/> - <field-map field-name="entityName" value="DataResource"/> - <field-map field-name="orderBy" value="dataResourceId"/> - <field-map field-name="viewIndex" from-field="viewIndex"/> - <field-map field-name="viewSize" from-field="viewSize"/> - </service> + <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="DataResource"/> + <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> <field name="dataResourceId"><hidden/></field> - <field name="dataResourceName" widget-style="tabletext"> + <field name="dataResourceName" widget-style="tabletext" sort-field="true"> <display-entity entity-name="DataResource" description="${dataResourceName}" key-field-name="dataResourceId"> <sub-hyperlink target="EditDataResource" description="[${dataResourceId}]" link-style="buttontext"> <parameter param-name="dataResourceId"/> </sub-hyperlink> </display-entity> </field> - <field name="dataResourceTypeId"><display-entity entity-name="DataResourceType" description="${description}"></display-entity></field> - <field name="mimeTypeId"><display-entity entity-name="MimeType" description="${description}"></display-entity></field> - <field name="statusId"><display-entity entity-name="StatusItem" description="${description}"></display-entity></field> - <field name="localeString"><display-entity entity-name="CountryCode" description="${countryName}[${countryCode}]" key-field-name="countryCode"></display-entity></field> - <field name="createdByUserLogin"><display-entity also-hidden="false" entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${firstName} ${lastName}"/></field> - <field name="dataCategoryId"><display-entity entity-name="DataCategory" description="${categoryName}[${dataCategoryId}]"></display-entity></field> + <field name="dataResourceTypeId" sort-field="true"><display-entity entity-name="DataResourceType" description="${description}"></display-entity></field> + <field name="mimeTypeId" sort-field="true"><display-entity entity-name="MimeType" description="${description}"></display-entity></field> + <field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" description="${description}"></display-entity></field> + <field name="localeString" sort-field="true"><display-entity entity-name="CountryCode" description="${countryName}[${countryCode}]" key-field-name="countryCode"></display-entity></field> + <field name="createdByUserLogin" sort-field="true"><display-entity also-hidden="false" entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${firstName} ${lastName}"/></field> + <field name="dataCategoryId" sort-field="true"><display-entity entity-name="DataCategory" description="${categoryName}[${dataCategoryId}]"></display-entity></field> <on-event-update-area event-type="paginate" area-id="search-results" area-target="findDataResourceSearchResults"/> </form> |
Free forum by Nabble | Edit this page |