> The as_json() and as_dict() methods looks useful, but still generates the
HTML component for the various inputs which I would then
> have to pull the relevant information out of
Not exactly. the form serialization returns the widgets as HTML, but also
serialized form data such as the current vars, tablename, fieldnames,
labels, comments and almost everything used for processing the form, such
as the record id or the form key and other attributes. For handling the
form representation itself including, but not limited to field options, you
need to (as plugin-clientapi does) retrieve separately the related table's
serialized definition with:
# for one time app-wide table information:
...
return db.as_json()
or
# for a given table
# xml and yaml is also supported.
...
return db.mytable.as_json()
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.