Bookshelf Home | Contents | Index | PDF |
Configuring Siebel eBusiness Applications > Specialized Behavior Supported by Web Templates > Adding Sorting Capabilities to you ApplicationTo add sorting capabilities to your applications, you use the template file for the Sort Dialog by specifying the Application property Sort Web Page. You can use the Sort Dialog to show one or more instances of a list of fields to sort on, and the sorting order to use. You can invoke the Sort Dialog using a Control that invokes the SortOrder method. This control should be used only in base templates of List Applets. You use the tag <swe:sort-field sequence="1"/> This tag will render two HTML select lists. The first select list will show the list of fields that can be sorted and have been mapped to To create the link or button that would execute the sort, create a Web Page Item that invokes the ExecuteSort method. You do not have to specify the parameters View and Applet for this method; these will default to the currently active view and applet. ExampleBelow is a fragment from a sample Sort Web Page. <table width=100% bgcolor="#EEEEEE" border=0 cellspacing=0 cellpadding=3> <td><swe:pageitem id="1" property="DisplayName"/></td> <td><swe:sort-field sequence="1"/></td> <!-- First column to sort on --> <td><swe:pageitem id="2" property="DisplayName"/></td> <td><swe:sort-field sequence="2" /></td> <!-- Second column to sort on --> <td><swe:pageitem id="2" property="DisplayName"/> </td> <td><swe:sort-field sequence="3"/></td> <!-- Third column to sort on --></tr> |
Configuring Siebel eBusiness Applications |