Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This server-side class is necessary for using the version control system (VCS).
isLocalPackHasReferences(localPackId)
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:
Code Block | ||||
---|---|---|---|---|
| ||||
let vcsLocalPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isLocalPackHasReferences(vcsLocalPackId)) { ss.addInfoMessage('Local Pack has current VCS records'); } |
isRetrievedPackHasReferences(retrievedPackId)
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:
Code Block | ||||
---|---|---|---|---|
| ||||
let vcsRetrievedPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isRetrievedPackHasReferences(vcsRetrievedPackId)) { ss.addInfoMessage('Retrieved Pack has current VCS records'); } |
isRetrievedPackHasAttache(vcsRetrievedPackId)
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:
Code Block | ||||
---|---|---|---|---|
| ||||
let vcsRetrievedPackId = 156144163704236641; let vcs = new SimpleVcsApi(); if (vcs.isRetrievedPackHasAttache(vcsRetrievedPackId)) { ss.addInfoMessage('Retrieved Pack has attached file'); } |
Table of Contents | ||||
---|---|---|---|---|
|