c_SSPPortalData

Description

Functions specific for Portal

Methods


<static> hasField( table, field ) → {boolean}

Description

Check if table has a specific field

Parameters
Name Type Description
table string
field string
Returns

<static> getCompanyConfiguration() → {CompanyConfiguration}

Description

Get the settings for the users company


<static> getAttachments( sysId ) → {Array.<Attachment>}

Description

Get all attachments for a table/document id

Parameters
Name Type Description
sysId sys_id
Returns

<static> getUIMessages( language ) → {Object}

Description

Get UI messages starting with 'KPN_SSP_ as an object

Parameters
Name Type Description
language LanguageType
Returns

<static> getUIMessage( key, language ) → {Object}

Description

Get UI messages starting with 'KPN_SSP_ as an object

Parameters
Name Type Description
key string
language LanguageType
Returns

<static> getDocumentTypeFromClass( classname ) → {ListItemType}

Description

Map a sys_classname to a list item type

Parameters
Name Type Description
classname string
Returns

<static> getListItemTypeFromClass( classname ) → {ListItemType}

Description

Map a sys_classname to a list item type

Parameters
Name Type Description
classname string
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
tablename string
fieldname string
documentSysId sys_id
Returns

<static> addComment( table, comment ) → {boolean}

Description

Add a comment to a ticket

Parameters
Name Type Description
table string
comment DocumentComment
Returns

Success or fail as a boolean


<static> addGenericUserComment( table, comment ) → {boolean}

Description

Add a comment to a ticket as the generic user for commenting

Parameters
Name Type Description
table string
comment DocumentComment
Returns

Success or fail as a boolean