PHP2Go Javascript Framework

Class FormDataBind

Object
   |
   +--FormDataBind

class 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

absoluteUri

Object absoluteUri

action

Object action

cachePosition

Object cachePosition

cacheValues

Object cacheValues

db

Object db

form

Object form

formName

Object formName

jsrsSubmit

Object jsrsSubmit

pkName

Object pkName

readOnly

Object readOnly

rs

Object rs

tableName

Object tableName

Constructor Detail

FormDataBind

FormDataBind(<String> db, <String> frm, <String> tbl, <String> pk, <Boolean> readOnly, <Boolean> jsrsSubmit, <String> uri)

Method Detail

addRecord

void addRecord()

applyFilter

void applyFilter()

applySort

void applySort(<Boolean> ascending)

cancelAction

void cancelAction()

clickHandler

void clickHandler(<Event> e)

deleteRecord

void deleteRecord()

disableActions

void disableActions(<Boolean> act)

disableForm

void disableForm(<Boolean> act)

disableNavigation

void disableNavigation(<Boolean> act)

editRecord

void editRecord()

executeAction

void executeAction(elem)

fixTabIndexes

void fixTabIndexes()

moveToRecord

void moveToRecord(<Number> recordNum)

navigate

void navigate(<Object> elm)

saveRecord

void saveRecord()

setup

void setup()

showRecCount

void showRecCount(<Number> current, <Number> count)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007