Changes between Version 15 and Version 16 of S3/S3ResourceFilter
- Timestamp:
- 02/03/12 14:25:31 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3ResourceFilter
v15 v16 47 47 48 48 {{{ 49 alias.{f oreignkey$}field49 alias.{fkey$}field 50 50 }}} 51 51 52 52 - '''alias''' is the alias of the component without prefix, e.g. "contact" for the pr_contact component (note that components may use aliases different from their table name). For the primary table of a resource (master table), "alias" is just the tablename without prefix. 53 - '''f oreignkey''' is the name of a foreign key field in the table specified by ''alias'', both together addressing the table referenced by this foreign key. It is possible to chain foreign key selectors to address tables which are more than one reference level away. Note that only real foreign key fields can be used (i.e. neither integer fields nor virtual fields).53 - '''fkey''' is the name of a foreign key field in the table specified by ''alias'', both together addressing the table referenced by this foreign key. It is possible to chain foreign key selectors to address tables which are more than one reference level away. Note that only real foreign key fields can be used (i.e. neither integer fields nor virtual fields). 54 54 - '''field''' is the name of the field or a virtual field in the table addressed by ''alias'' (plus ''foreign key'' where present). 55 55 56 With this syntax, it is possible to address fields in the primary table, in component tables and in directly referenced tables. 56 To access fields in a table which is linked via a link table, replace the fkey by the link table name and add left and right key if needed: 57 {{{ 58 alias.{{lkey:}linktable{:rkey}$}field 59 }}} 57 60 58 It is not yet possible to address fields in tables linked by link tables - this is though subject to change in the near future.59 61 62 - '''lkey''' is the name of the left foreign key in the linktable (can be omitted if not ambiguous, i.e. only one fk in the linktable pointing to this resource/component) 63 - '''linktable''' is the name of the linktable 64 - '''rkey''' is the name of the right foreign key in the linktable (can be omitted if not ambiguous, i.e. only one other fk in the linktable) 60 65 == URL queries == 61 66