| Context Index | ||||
|---|---|---|---|---|
| fms Functions: ==> | ||||
| OVERVIEW | init | render | set-value | set-values |
| Overview Of: fms | Top | Context Index | Next Function |
|
General: Uses the mu object from fmflds.r to handle multiple forms in a dialect-like manner. author: Tim Johnson tim@akwebsoft.com description: the exc function is exported as fms-handler, which in turn is aliased as something like run or go example: fms[cmd-function arg1 arg2 ....] NOTE: In this documentation fms is used in sytax examples. Public: Functions at this implementation are init, set-value, set-values, render. |
| Function: fms/init | Top | Context Index | Previous Function | Next Function |
|
syntax: fms[init <module> <action> <mode> <fnums> <record>] arg: module = file holding template code. arg: action = Action of generated form arg: mode = one of web - load from CGI. Use mu/load/nolabels/web sql - load from mysql record. Use mu/load/nolabels/mysql raw - load nothing. Use mu/load/nolabels mode is optional. raw is default arg: fnums -optional- If used, int or block of ints. Form number. Default is 1. arg: rec optional block of data to load into form. For multiple forms, a nested block is expected. |
| Function: fms/render | Top | Context Index | Previous Function | Next Function |
|
syntax: fms[render arg] Return the content. arg: - If unset, default to 1. else integer or block of integers referencing form or forms |
| Function: fms/set-value | Top | Context Index | Previous Function | Next Function |
|
syntax: fms[set-value <int-formnumber> <str-wrd-name> <str-wrd-val>] description: Set value in formnumber by name and val |
| Function: fms/set-values | Top | Context Index | Previous Function |
|
syntax: fms[set-values <args-block>] Set a series of values. Note: If initialization is single form, args must be in alternating keys and values. If using multiple forms args must be in alternating form-number, key, value form - that is - aligned by 2 or by 3. |