Home
TableScript
getClientsTable()
Loads data for Clients Table. Doesn't permit access for assistant.
Return Values:
Type |
Description |
Object |
dataTable object or empty object |
getEventsTable()
Loads data for Events Table. Doesn't permit access for assistant.
Return Values:
Type |
Description |
Object |
dataTable object or empty object |
getDeleteButtonHtml(Object params, Object width, Object height)
Gets html of delete button which opens new window and calls our Delete script project.
Arguments:
Name |
Type |
Description |
params |
Object |
params to pass into the Delete script |
width |
Object |
width of new window |
height |
Object |
height of new window |
Return Values:
Type |
Description |
string |
html of delete button |
getEditButtonHtml(Object params, Object width, Object height)
Gets html of edit button which opens in new window and calls our Update script project.
Arguments:
Name |
Type |
Description |
params |
Object |
params to pass into the update script |
width |
Object |
width of new window |
height |
Object |
height of new window |
Return Values:
Type |
Description |
string |
html of edit button |
popupCenter(Object url, Object title, Object w, Object h)
source : http://www.xtf.dk/2011/08/center-new-popup-window-even-on.html Creates and centers a new popup window.
Arguments:
Name |
Type |
Description |
url |
Object |
url |
title |
Object |
title |
w |
Object |
width of new window |
h |
Object |
height of new window |
Return Values:
Type |
Description |
string |
html of edit button |
doGet(Object e)
Processes data for Awesome Table Gadget. This function is expected to be called from this gadget, if called from different sources then shows authorization
confirmation.
Arguments:
Name |
Type |
Description |
e |
Object |
passed parameters from Awesome Table Gadget, or no parameter for showing authorization confirmation |
Return Values:
Type |
Description |
Object |
object with data for Awesome Table Gadget or shows auth message |
constructUrlParameters(Object obj)
Maps obj properties to string as url parameters.
Arguments:
Name |
Type |
Description |
obj |
Object |
object to convert |
Return Values:
Type |
Description |
string |
parameter part of html |
getTariffsTable()
Loads data for Tariffs Table. Doesn't permit access for assistant.
Return Values:
Type |
Description |
Object |
dataTable object or empty object |
rfc3986EncodeURIComponent(Object str)
Encodes URI component.
Arguments:
Name |
Type |
Description |
str |
Object |
string to encode |
Return Values:
Type |
Description |
string |
rfc3986 URI component |
getEmployeesTable()
Loads data for Employess Table.
Return Values:
Type |
Description |
Object |
dataTable object |
getGroupsTable()
Loads data for Groups Table. Doesn't permit access for assistant.
Return Values:
Type |
Description |
Object |
dataTable object or empty object |