|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--FormDataBind
Defined in form/formdatabind.js
| Field Summary | |
Object |
absoluteUri
|
Object |
action
|
Object |
cachePosition
|
Object |
cacheValues
|
Object |
db
|
Object |
form
|
Object |
formName
|
Object |
jsrsSubmit
|
Object |
pkName
|
Object |
readOnly
|
Object |
rs
|
Object |
tableName
|
| Constructor Summary | |
FormDataBind
(<String> db, <String> frm, <String> tbl, <String> pk, <Boolean> readOnly, <Boolean> jsrsSubmit, <String> uri)
The FormDataBind class implements data binding on a form. |
|
| Method Summary | |
void
|
addRecord()
Adds a new record in the dataset and blanks all fields in the form in order to be filled |
void
|
applyFilter()
Applies the filter configured in the databind toolbar |
void
|
applySort(<Boolean> ascending)
Sorts the dataset according with the choosen sort option and sort type (ascending or descending) |
void
|
cancelAction()
Cancel the current action. |
void
|
clickHandler(<Event> e)
Method used to capture button clicks |
void
|
deleteRecord()
Sends the current record to be removed, using JSRS or POST |
void
|
disableActions(<Boolean> act)
Enable or disable all databind action buttons |
void
|
disableForm(<Boolean> act)
Enable or disable all form fields which are not databind actions |
void
|
disableNavigation(<Boolean> act)
Enable or disable the navigation buttons |
void
|
editRecord()
Enables the current record for editing. |
void
|
executeAction(elem)
Execute a data action (new, edit, delete, save, cancel) |
void
|
fixTabIndexes()
Fix save/cancel button tab indexes based on the highest tab index among the form fields |
void
|
moveToRecord(<Number> recordNum)
Moves to a given record, or to the record number typed in the "gotoField", if any of them is present |
void
|
navigate(<Object> elm)
Execute a navigation action (first, previous, next or last) |
void
|
saveRecord()
Submits the record for saving. |
void
|
setup()
Performs all initialization tasks |
void
|
showRecCount(<Number> current, <Number> count)
Updates the container that displays the current record number and the current record count |
| Field Detail |
Object absoluteUri
Object action
Object cachePosition
Object cacheValues
Object db
Object form
Object formName
Object jsrsSubmit
Object pkName
Object readOnly
Object rs
Object tableName
| Constructor Detail |
FormDataBind(<String> db, <String> frm, <String> tbl, <String> pk, <Boolean> readOnly, <Boolean> jsrsSubmit, <String> uri)
db - Data bind object name
frm - Form name
tbl - Table name
pk - Table primary key
readOnly - Is the form in readonly state?
jsrsSubmit - Must we save records using a JSRS request?
uri - URI to be used to save records
| Method Detail |
void addRecord()
void applyFilter()
void applySort(<Boolean> ascending)
ascending - Ascending or descending order
void cancelAction()
void clickHandler(<Event> e)
e - Event instance
void deleteRecord()
void disableActions(<Boolean> act)
act - Disable (true) or enable (false)
void disableForm(<Boolean> act)
act - Disable (true) or enable (false)
void disableNavigation(<Boolean> act)
act - Disable (true) or enable (false)
void editRecord()
void executeAction(elem)
elm - Sender button
void fixTabIndexes()
void moveToRecord(<Number> recordNum)
recordNum - Record number
void navigate(<Object> elm)
elm - Sender button
void saveRecord()
void setup()
void showRecCount(<Number> current, <Number> count)
current - Current record
count - Current record count
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||