Methods
-
<static> hasField( table, field ) → {boolean}
-
Description
Check if table has a specific field
Parameters
Name Type Description tablestring fieldstring Returns
-
<static> getCompanyConfiguration() → {CompanyConfiguration}
-
Description
Get the settings for the users company
Returns
-
<static> getAttachments( sysId ) → {Array.<Attachment>}
-
Description
Get all attachments for a table/document id
Parameters
Name Type Description sysIdsys_id Returns
-
<static> getUIMessages( language ) → {Object}
-
Description
Get UI messages starting with 'KPN_SSP_ as an object
Parameters
Name Type Description languageLanguageType Returns
-
<static> getUIMessage( key, language ) → {Object}
-
Description
Get UI messages starting with 'KPN_SSP_ as an object
Parameters
Name Type Description keystring languageLanguageType Returns
-
<static> getDocumentTypeFromClass( classname ) → {ListItemType}
-
Description
Map a sys_classname to a list item type
Parameters
Name Type Description classnamestring Returns
-
<static> getListItemTypeFromClass( classname ) → {ListItemType}
-
Description
Map a sys_classname to a list item type
Parameters
Name Type Description classnamestring Returns
-
<static> getUserImageUrl( tablename, fieldname, documentSysId ) → {string}
-
Description
Gets a user_image URL from the attachment table, only the path part is returned (eg '/sys_attachment....')
Parameters
Name Type Description tablenamestring fieldnamestring documentSysIdsys_id Returns
-
<static> addComment( table, comment ) → {boolean}
-
Description
Add a comment to a ticket
Parameters
Name Type Description tablestring commentDocumentComment Returns
-
<static> addGenericUserComment( table, comment ) → {boolean}
-
Description
Add a comment to a ticket as the generic user for commenting
Parameters
Name Type Description tablestring commentDocumentComment Returns