Changes between Version 14 and Version 15 of S3/S3SQLForm


Ignore:
Timestamp:
06/13/14 12:18:41 (10 years ago)
Author:
MattS
Comment:

syntax highlighting

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3SQLForm

    v14 v15  
    99
    1010Example:
    11 {{{
     11{{{#!python
    1212def inline():
    1313
     
    5656Regular fields in the main table can be specified simply by their field name.
    5757
    58 {{{
     58{{{#!python
    5959    crud_form = S3SQLCustomForm(
    6060                    "first_name",
     
    7171Fields in components which are set to multiple=False (single-record components = sub-tables) can also be specified as field selector strings using the "."-notation:
    7272
    73 {{{
     73{{{#!python
    7474    crud_form = S3SQLCustomForm(
    7575                    "identification.status"
     
    8787Components with multiple=True (multi-record components) can be specified as instances of S3SQLInlineComponent:
    8888
    89 {{{
     89{{{#!python
    9090    crud_form = S3SQLCustomForm(
    9191                    S3SQLInlineComponent(
     
    117117To filter an inline component by e.g. type, you can a {{{filterby}}} option like in:
    118118
    119 {{{
     119{{{#!python
    120120    S3SQLInlineComponent(
    121121        "contact",
     
    143143
    144144It is possible to sort the inline-items by specifying an {{{orderby}}} option with a field selector relative to the component table:
    145 {{{
     145{{{#!python
    146146    s3forms.S3SQLInlineComponent(
    147147        "location",
     
    153153
    154154To specify a different sort order, the {{{orderby}}}-option also accepts a tuple like:
    155 {{{
     155{{{#!python
    156156    s3forms.S3SQLInlineComponent(
    157157        "location",