new upShapedTable(guid)
Provides access to a shaped-table.
Parameters:
Name | Type | Description |
---|---|---|
guid |
String |
Example
getElement("[TABLE-GUID]").oUp.getRecords()
Members
-
oPager :upTablePager
-
Table pager
Type:
- See:
Methods
-
getControl(oHtml) → {upShapedTableControl|null}
-
Returns the wrapping object representing the table column (respectively control) for an specific table record.
Parameters:
Name Type Description oHtml
Object Reference to a html control within the table record.
- See:
Returns:
- Type
- upShapedTableControl | null
-
getControlGroup(guid) → {upShapedTableControlGroup|null}
-
Returns a specific column for given control guid.
Parameters:
Name Type Description guid
String Returns:
- Type
- upShapedTableControlGroup | null
-
getControlGroups() → {Array.Object.<String, upShapedTableControlGroup>}
-
Returns a jQuery list with all columns
.
Returns:
- Type
- Array.Object.<String, upShapedTableControlGroup>
-
getHtml(htmlNode) → {Object}
-
Returns a reference to the table node as jQuery-object or the html-node.
Parameters:
Name Type Argument Default Description htmlNode
boolean <optional>
false Returns:
- Type
- Object
-
getRecord(identifier) → {upShapedTableRecord|null}
-
Returns specific record for given record indentifier.
Parameters:
Name Type Description identifier
String | Object Record-identifier or element-reference within the table record.
- See:
Returns:
- Type
- upShapedTableRecord | null
Examples
oTable.getRecord(this);
$(this).getTableRecord();
-
getRecordByRecId(recId) → {upShapedTableRecord|null}
-
Returns specific record for given record id.
Parameters:
Name Type Description recId
String - See:
Returns:
- Type
- upShapedTableRecord | null
-
getRecords() → {Array.<upShapedTableRecord>}
-
Returns a jQuery list with all records of the current table page.
- See:
Returns:
- Type
- Array.<upShapedTableRecord>
-
reload(settings)
-
Reloads the table via AJAX.
Parameters:
Name Type Argument Description settings
Object <optional>
Examples
oTable.reload({ bAsync: true, bAddHistory: true, bWaitAnimation: false, oRequestMap: { rq_Test: '1', rq_Test: '2' } });
$.when(oTable.reload()) .then(function() { alert("done"); }) .fail(function() { alert("failed :("); });