Changes between Version 57 and Version 58 of S3/FilterForms


Ignore:
Timestamp:
06/01/17 07:21:26 (8 years ago)
Author:
Fran Boon
Comment:

Notes on use of FilterForm in custom pages

Legend:

Unmodified
Added
Removed
Modified
  • S3/FilterForms

    v57 v58  
    289289=== Using Filter Forms in Custom Controllers ===
    290290
    291   * ''tbw''
     291When the Filter Form is used to control a dataList:
     292
     2931. Ensure that Filter options update when entries are added/modified:
     294{{{
     295filter_form = S3FilterForm(...
     296                           _id = "%s-filter-form" % list_id,
     297                           )
     298}}}
     299
     3002. Ensure that when individual datalist entries are ajax reloaded they are not filtered out due to not having the correct list_id:
     301{{{
     302ajax_vars = {"list_id": list_id,
     303            }
     304filter_form = S3FilterForm(...
     305                           url = URL(c=module, f=resource, args="datalist",
     306                                     vars=ajax_vars, extension="dl"),
     307                           )
     308}}}
    292309
    293310----