Class upShapedTable
Defined in: <datarange.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
upShapedTable(guid)
Table Object
Provides access to a table through javascript.
|
Field Attributes | Field Name and Description |
---|---|
Table pager
|
Method Attributes | Method Name and Description |
---|---|
getControl(p_oHtml)
|
|
getControlGroup(p_strGuid)
|
|
getHtml(p_bHtmlNode)
|
|
getRecord(p_Identifier)
|
|
getRecordByRecId(p_strRecId)
|
|
reload(p_oSettings)
Reloads the table via ajax
|
Class Detail
upShapedTable(guid)
Table Object
Provides access to a table through javascript.
getElement("[TABLE-GUID]").oUp.getRecords()
- Parameters:
- guid
Field Detail
{upTablePager}
oPager
Table pager
- See:
- upTablePager
Method Detail
{upShapedTableControl}
getControl(p_oHtml)
- Parameters:
- {object} p_oHtml
- Reference to a html control within the table record
- Returns:
- {upShapedTableControl} Returns the wrapping object representing the table column (respectively control) for an specific table record, return value can be NULL
- See:
- upShapedTableControl
{upShapedTableControlGroup}
getControlGroup(p_strGuid)
- Parameters:
- {string} p_strGuid
- control guid
- Returns:
- {upShapedTableControlGroup} Returns a specific column for given control guid, can be NULL
{Array}
getControlGroups()
- Returns:
- {Array} Returns a jQuery list with all columns, [{
: }]
{object}
getHtml(p_bHtmlNode)
- Parameters:
- {boolean} p_bHtmlNode
- if true, methode returns the html node
- Returns:
- {object} Returns a reference to the table node as jQuery-object (default) or the html node
{upShapedTableRecord}
getRecord(p_Identifier)
// button onclick-event inside table record oTable.getRecord(this) same as: $(this).getTableRecord()
- Parameters:
- p_Identifier
- record identifier (string) or element reference within the table record
- Returns:
- {upShapedTableRecord} Returns specific record for given record indentifier, can be NULL
- See:
- upShapedTableRecord
{upShapedTableRecord}
getRecordByRecId(p_strRecId)
- Parameters:
- {string} p_strRecId
- Record ID
- Returns:
- {upShapedTableRecord} Returns specific record for given record id, can be NULL
- See:
- upShapedTableRecord
{Array}
getRecords()
- Returns:
- {Array} Returns a jQuery list with all records.
- See:
- upShapedTableRecord
reload(p_oSettings)
Reloads the table via ajax
// Example 1 oTable.reload( { bAsync: true, bAddHistory: true, bWaitAnimation: false, oRequestMap: { rq_Test: '1', rq_Test: '2' } } // Example 2 $.when(oTable.reload()) .then(function() { alert("done") }) .fail(function() { alert("failed :(") });
- Parameters:
- {object} p_oSettings
- Reload settings.