This server-side class is necessary for using the version control system (VCS).
This method checks the record from the sys_vcs_local_pack table if it has referenced current* records from the sys_vcs_record table.
*the current records have the isCurrent attribute is TRUE.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
localPackId | Integer | Y | N |
Return:
Type | Description |
---|---|
Boolean | The method returns TRUE if it finds current records; otherwise, it returns FALSE. |
Example:
let vcsLocalPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isLocalPackHasReferences(vcsLocalPackId)) { ss.addInfoMessage('Local Pack has current VCS records'); } |
This method checks the record from the sys_vcs_retrieved_pack table if it has referenced records from the sys_vcs_record table.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
retrievedPackId | Integer | Y | N |
Return:
Type | Description |
---|---|
Boolean | This method returns TRUE if there are any referenced records; otherwise, it returns FALSE. |
Example:
let vcsRetrievedPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isRetrievedPackHasReferences(vcsRetrievedPackId)) { ss.addInfoMessage('Retrieved Pack has current VCS records'); } |
This method checks the record from the sys_vcs_retrieved_pack table if it has an attached file.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
vcsRetrievedPackId | Integer | Y | N |
Return:
Type | Description |
---|---|
Boolean | This method returns TRUE if there are any attached files; otherwise, it returns FALSE. |
Example:
let vcsRetrievedPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isRetrievedPackHasAttache(vcsRetrievedPackId)) { ss.addInfoMessage('Retrieved Pack has attached file'); } |