Changes between Version 3 and Version 4 of functions
- Timestamp:
- Mar 6, 2007, 10:45:48 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
functions
v3 v4 1 = === Functions defined in the ZSQLExtend Product ====1 = Functions defined in the ZSQLExtend Product = 2 2 3 3 4 == = Functions intended for the use in Page Templates ===4 == Functions intended for the use in Page Templates == 5 5 6 == Access to the database==6 === Access to the database === 7 7 8 8 * **ZSQLInlineSearch(_table = '...' ,fieldname = here.filename, _op_fieldname = '...')**\\ Searches in the given table (''_table'') in the given fieldname (replace ''fieldname'' with the name of the field, that contains the data that identifies the record) for the id of your object (''here.filename'') using the operator specified by ''_op_fieldname'' (again, replace ''fieldname''; possible operators are for example ''eq'' (equals), ''ct'' (contains)). Returns an array with the results.\\ Function … … 16 16 * **ZSQLOptionsFromCRList(self,fieldname,listField, multiple=<nowiki>''</nowiki>,start=None,startValue=None,size=None,selected=None)**\\ generate select oprions form a cr seperated list\\ fieldname: name of the field, that is the value of the value-attribute of the option-tag\\ listField: a string of the following form: ''listitem1\nlistitem2\nlistitem3'' 17 17 18 == Helpers for Navigation==18 === Helpers for Navigation === 19 19 20 20 * **nextLink(self,html,storename="foundCount")**\\ generates the link to the next ''max'' results\\ ''max'' is defined by the parameter ''-max''.\\ E.g. in the search-formular (''<nowiki><input type="hidden" name="-max" value="50"></nowiki>''\\ or in the ZSQLFind-call (''tal:define="founds python:here.ZSQLFind(_max=50)"''). 21 21 22 == Addtional helpers==22 === Additonal helpers === 23 23 24 24 25 25 26 == Functions internally used==26 === Functions internally used ===