Class net.nextdb.html.InsertForm
Object
|
+--net.nextdb.html.Form
|
+--net.nextdb.html.InsertForm
- class
net.nextdb.html.InsertForm
- extends net.nextdb.html.Form
Defined in api.docs.js
|
Method Summary |
Object
|
captchaColors(style)
set the captcha colors to blend the image into the page correctly, this is the format {bg:"#FFFFFF",fg:"#333333"}
|
void
|
insertAndLink(<int> rowId, <String> relationshipName)
set the rowId and relationship name to automatically link this inserted row to another
row in a different table according to the named relationship.
|
Object
|
insertCallback(<Function> callback)
optional insert callback, the callBack signature is callack(rowId,error) the rowId is the encrypted id for the new
row inserted, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
|
void
|
render(<HTMLElement> div)
renders the form into the div
|
| Methods inherited from class net.nextdb.html.Form |
interceptor, cancelCallback, afterRenderCallback, layout, expandFields, omitFields, orderFields, confirmFields, setMessageId, message, obscureFields, options, defaultValues, validation, destroy
|
net.nextdb.html.InsertForm
net.nextdb.html.InsertForm(conn,tableName)
captchaColors
Object captchaColors(style)
set the captcha colors to blend the image into the page correctly, this is the format {bg:"#FFFFFF",fg:"#333333"}
Parameters:
format - {bg:"#FFFFFF",fg:"#333333"}
insertAndLink
void insertAndLink(<int> rowId, <String> relationshipName)
set the rowId and relationship name to automatically link this inserted row to another
row in a different table according to the named relationship.
Parameters:
rowId - links the two columns together, you must use the key that you retrieved from a query since these keys are only valid for each user session.
relationshipName - is the name of the predefined relationship between the two tables, you must use the admin tool to establish the relationships between tables.
insertCallback
Object insertCallback(<Function> callback)
optional insert callback, the callBack signature is callack(rowId,error) the rowId is the encrypted id for the new
row inserted, error is either an instance of net.nextdb.Error in the case of an error or undefined if everything succeeded.
Parameters:
callback - takes two parameters, rows and error.
render
void render(<HTMLElement> div)
renders the form into the div
Documentation generated by
JSDoc on Mon Mar 29 20:15:50 2010