Changes between Version 8 and Version 9 of S3/S3SQLForm
- Timestamp:
- 02/21/13 09:28:21 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3SQLForm
v8 v9 142 142 === Sorting of Inline-Components === 143 143 144 It is possible to sort the inline-items by specifying an {{{orderby}}} option :144 It is possible to sort the inline-items by specifying an {{{orderby}}} option with a field selector relative to the component table: 145 145 146 146 {{{ … … 153 153 }}} 154 154 155 To specify the sort order, the {{{orderby}}}-option also accepts a tuple like: {{{("location_id$name", "desc")}}}.155 To specify a different sort order, the {{{orderby}}}-option also accepts a tuple like: {{{("location_id$name", "desc")}}} (default is "asc"). 156 156 157 157 '''Note:''' the field selector used in orderby must give exactly one value per row (i.e. use only forward-links, not component fields or list:types), otherwise the same component item would appear multiple times in the form (due to the left join involved).