You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 TRUE.

Проверяет, есть ли у записи из sys_vcs_local_pack ссылающиеся current записи(у которых атрибут isCurrent истинный) из sys_vcs_record, принимает int localPackId, возвращает true если есть current(текущие, актуальные) записи, иначе false.


Parameter(s):

NameTypeMandatoryDefault Value
localPackIdIntegerYN


Return:

TypeDescription
BooleanThe method returns TRUE if it finds current records; otherwise, returns FALSE.


Example:

isLocalPackHasReferences
let vcsLocalPackId = 156144163704236641;
let vcs = new SimpleVcsApi();
if (vcs.isLocalPackHasReferences(vcsLocalPackId)) {
  ss.addInfoMessage('Local Pack has current VCS records');
}

isLocalPackHasReferences(localPackId)

Method description


Parameter(s):

NameTypeMandatoryDefault Value





Return:

TypeDescription



Example:


isLocalPackHasReferences(localPackId)

Method description


Parameter(s):

NameTypeMandatoryDefault Value





Return:

TypeDescription



Example:


  • No labels