Difference between revisions of "ConversionMethods"
Line 41: | Line 41: | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid;" | [[sendBulkMail|sendBulkMail(bulkMailId, maxToSend)]] | + | | style="border: 1px solid;" | [[sendBulkMail|sendBulkMail(bulkMailId)]] |
− | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.Send()]]< | + | <source lang="javascript"> |
+ | number bulkMailId = 21063; | ||
+ | sendBulkMail(bulkMailId); | ||
+ | </source> | ||
+ | [[sendBulkMail|sendBulkMail(bulkMailId, maxToSend)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | number maxToSend = 100; | ||
+ | sendBulkMail(bulkMailId, maxToSend); | ||
+ | </source> | ||
+ | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.Send()]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.Send();// return Cattask Instance Id | ||
+ | </source> | ||
+ | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = 100; | ||
+ | bool isTest = false; | ||
+ | bool isSyncronious = false; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
| style="border: 1px solid;" | New class BulkMail | | style="border: 1px solid;" | New class BulkMail | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid;" | [[sendBulkMailSyncronious|sendBulkMailSyncronious(bulkMailId, maxToSend)]] | + | | style="border: 1px solid;" | [[sendBulkMailSyncronious|sendBulkMailSyncronious(bulkMailId)]] |
− | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendSyncronious()]] < | + | <source lang="javascript"> |
+ | number bulkMailId = 21063; | ||
+ | sendBulkMailSyncronious(bulkMailId); | ||
+ | </source> | ||
+ | [[sendBulkMailSyncronious|sendBulkMailSyncronious(bulkMailId, maxToSend)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | number maxToSend = 100; | ||
+ | sendBulkMailSyncronious(bulkMailId, maxToSend); | ||
+ | </source> | ||
+ | |||
+ | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendSyncronious()]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendSyncronious();//return number of sent | ||
+ | </source> | ||
+ | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = 100; | ||
+ | bool isTest = false; | ||
+ | bool isSyncronious = true; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
| style="border: 1px solid;" | New class BulkMail | | style="border: 1px solid;" | New class BulkMail | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid;" | [[sendTestBulkMail|sendTestBulkMail(bulkMailId, maxToSend)]] | + | | style="border: 1px solid;" | [[sendTestBulkMail|sendTestBulkMail(bulkMailId)]] |
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | sendTestBulkMail(bulkMailId); | ||
+ | </source> | ||
+ | [[sendTestBulkMail|sendTestBulkMail(bulkMailId, maxToSend)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | number maxToSend = 100; | ||
+ | sendTestBulkMail(bulkMailId, maxToSend); | ||
+ | </source> | ||
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = -1; | ||
+ | bool isTest = true; | ||
+ | bool isSyncronious = false; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = 100; | ||
+ | bool isTest = true; | ||
+ | bool isSyncronious = false; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
| style="border: 1px solid;" | New class BulkMail | | style="border: 1px solid;" | New class BulkMail | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
− | | style="border: 1px solid;" | [[sendTestBulkMailSyncronious|sendTestBulkMailSyncronious(bulkMailId, maxToSend)]] | + | | style="border: 1px solid;" | [[sendTestBulkMailSyncronious|sendTestBulkMailSyncronious(bulkMailId)]] |
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | sendTestBulkMailSyncronious(bulkMailId); | ||
+ | </source> | ||
+ | [[sendTestBulkMailSyncronious|sendTestBulkMailSyncronious(bulkMailId, maxToSend)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 21063; | ||
+ | number maxToSend = 100; | ||
+ | sendTestBulkMailSyncronious(bulkMailId, maxToSend); | ||
+ | </source> | ||
| style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | | style="border: 1px solid;" | [[BulkMail_class|BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)]] | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = -1; | ||
+ | bool isTest = true; | ||
+ | bool isSyncronious = true; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
+ | <source lang="javascript"> | ||
+ | number bulkMailId = 17148200; | ||
+ | number maxToSend = 100; | ||
+ | bool isTest = true; | ||
+ | bool isSyncronious = true; | ||
+ | BulkMail bm = new BulkMail(bulkMailId); | ||
+ | bm.SendBulkMail(maxToSend, isTest, isSyncronious) | ||
+ | </source> | ||
| style="border: 1px solid;" | New class BulkMail | | style="border: 1px solid;" | New class BulkMail | ||
Revision as of 08:50, 5 May 2022
Obsolete methods | Replace with | Note |
updateUserPermission(resourceId, permissionUsers)
number resourceId = 17148446;
number userId1 = 5895442;
number userId2 = 5898785;
array permissionUsers = {{userId1, "Read"}, {userId2, "FullControl"}};
updateUserPermission(resourceId, permissionUsers);
|
updateUserResourceIdPermission(resourceId, permissionUsers)
number resourceId = 17148446;
number userId1 = 12702700;
number userId2 = 12706043;
Dictionary permissionUsers = {userId1: "Read", userId2: "FullControl"};
updateUserResourceIdPermission(resourceId, permissionUsers);
|
|
QAS.UserId | QAS.UserResourceId | |
User_getResourceIdFromUserId(userId) | Obsolete | |
User_getResourceIdFromUserIds(userIds) | Obsolete | |
sendBulkMail(bulkMailId)
number bulkMailId = 21063;
sendBulkMail(bulkMailId);
sendBulkMail(bulkMailId, maxToSend) number bulkMailId = 21063;
number maxToSend = 100;
sendBulkMail(bulkMailId, maxToSend);
|
BulkMail.Send()
number bulkMailId = 17148200;
BulkMail bm = new BulkMail(bulkMailId);
bm.Send();// return Cattask Instance Id
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious) number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = false;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
|
New class BulkMail |
sendBulkMailSyncronious(bulkMailId)
number bulkMailId = 21063;
sendBulkMailSyncronious(bulkMailId);
sendBulkMailSyncronious(bulkMailId, maxToSend) number bulkMailId = 21063;
number maxToSend = 100;
sendBulkMailSyncronious(bulkMailId, maxToSend);
|
BulkMail.SendSyncronious()
number bulkMailId = 17148200;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendSyncronious();//return number of sent
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious) number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = false;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
|
New class BulkMail |
sendTestBulkMail(bulkMailId)
number bulkMailId = 21063;
sendTestBulkMail(bulkMailId);
sendTestBulkMail(bulkMailId, maxToSend) number bulkMailId = 21063;
number maxToSend = 100;
sendTestBulkMail(bulkMailId, maxToSend);
|
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = -1;
bool isTest = true;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = true;
bool isSyncronious = false;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
|
New class BulkMail |
sendTestBulkMailSyncronious(bulkMailId)
number bulkMailId = 21063;
sendTestBulkMailSyncronious(bulkMailId);
sendTestBulkMailSyncronious(bulkMailId, maxToSend) number bulkMailId = 21063;
number maxToSend = 100;
sendTestBulkMailSyncronious(bulkMailId, maxToSend);
|
BulkMail.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = -1;
bool isTest = true;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
number bulkMailId = 17148200;
number maxToSend = 100;
bool isTest = true;
bool isSyncronious = true;
BulkMail bm = new BulkMail(bulkMailId);
bm.SendBulkMail(maxToSend, isTest, isSyncronious)
|
New class BulkMail |
setBulkMailFromResource(bulkMailId, resourceId)
number bulkMailId = 21065;
number resourceId = 17145420;
setBulkMailFromResource(bulkMailId, resourceId);
|
BulkMail.From = value
number bulkMailId = 17148449;
number resourceId = 17145420;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(0, resourceId);
bm.Save();
|
New class BulkMail |
setBulkMailFromGlobalEmailAlias(bulkMailId, globalEmailId)
number bulkMailId = 21065;
number globalEmailId = 16238;
setBulkMailFromGlobalEmailAlias(bulkMailId,globalEmailId);
|
BulkMail.From = value
number bulkMailId = 17148449;
number globalEmailId = 16238;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(1, globalEmailId);
bm.Save();
|
New class BulkMail |
setBulkMailFromWebshop(bulkMailId)
number bulkMailId = 21065;
setBulkMailFromWebshop(bulkMailId);
|
BulkMail.From = value
number bulkMailId = 17148449;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(2);
bm.Save();
|
New class BulkMail |
setBulkMailFromSupport(bulkMailId)
number bulkMailId = 21065;
setBulkMailFromSupport(bulkMailId);
|
BulkMail.From = value
number bulkMailId = 17148449;
BulkMail bm = new BulkMail (bulkMailId);
bm.From = new EmailAccount(3);
bm.Save();
|
New class BulkMail |
setBulkMailGroups(bulkMailId, groupIds) | BulkMail.SetGroups(groupIds) | New class BulkMail |
setBulkMailGroupsToBeRebuilt(bulkMailId, groupIds) | BulkMail.SetGroupsToBeRebuilt(groupIds) | New class BulkMail |
setBulkMailUsers(bulkMailId, userIds) | BulkMail.SetUsers(userIds) | New class BulkMail |
addToGroup(groupId) | Group_addUser(QAS_getCurrentQAS().UserResourceId, groupId) | |
removeFromGroup(groupId) | Group_removeUser(QAS_getCurrentQAS().UserResourceId, groupId) | |
questionnaireAnswerSheetExists(qnaireId[, userId]) | QAS_exists(qnaireId, userId) | |
createUserProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) | new QAS(qnaireId, userId) QAS_getByUserResourceId(userId, qnaireId, createIfNone) |
|
createResourceProjectQuestionnaire(qnaireId[, assignCurrentUser, useExisting]) | new QAS(qnaireId, userid) QAS_getByUserResourceId(userId, qnaireId, createIfNone) |
|
groupExists(groupId) | Group_getGroupByResourceId(groupId) | |
isMemberOfGroup(userId, groupId) | Group_isMemberOfGroup(userId, groupId) | |
rebuildGroup(groupId) | Group_rebuildGroup(groupId,parallelBuild) | |
Tabulation_saveAsReport(name, parentId, permissionGroups[, overwrite])
DCS_use(16749647);
string name = "Report Test";
number parentId = 17148135;
number groupId1 = 84129;
number groupId2 = 84130;
array permissionGroups = {{groupId1, "Write"}, {groupId2, "FullControl"}};
bool overwrite = true;
createCrossDiagram ({"Q1"},{"Q2"});
Tabulation_saveAsReport(name, parentId, permissionGroups, overwrite);
|
Tabulation.SaveAsReport(name, parentId, permissionGroups, overwrite)
string name = "Report Test";
number parentId = 17148135;
number groupId1 = 17146562;
number groupId2 = 17146563;
Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"};
bool overwrite = true;
TabulationDiagramParameter p = new TabulationDiagramParameter ();
Tabulation t = new Tabulation();
p.DataCache = 16749647;
t.CreateCrossDiagram ({"Q1"},{"Q2"}, p);
t.SaveAsReport(name, parentId, permissionGroups, overwrite);
|
New class Tabulation |
updateGroupPermission(resourceId, permissionGroups)
number resourceId = 17148446;
number groupId1 = 84129;
number groupId2 = 84130;
array permissionGroups = {{groupId1, "Write"}, {groupId2, "FullControl"}};
updateGroupPermission(resourceId, permissionGroups);
|
updateGroupResourceIdPermission(resourceId, permissionGroups)
number resourceId = 17148446;
number groupId1 = 17146562;
number groupId2 = 17146563;
Dictionary permissionGroups = {groupId1: "Write", groupId2: "FullControl"};
updateGroupResourceIdPermission(resourceId, permissionGroups);
|
|
sendMailTemplateFromResource(parentId, email, alias, mailTemplateId, fromEmail, callbackmethod) | EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) | New method EmailTemplate_send |
sendMailTemplate(email, alias, mailTemplateId, fromEmail, callbackmethod) | EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) | New method EmailTemplate_send |
sendTestMailTemplate(email, alias, mailTemplateId, emailAccountCGO, callbackmethod) | EmailTemplate_send(mailTemplateId, isTest, toEmail, alias, parentId, fromEmail, callbackmethod) | New method EmailTemplate_send |
getProjectQuestionnaireName(qnaireId)
number qnaireId = 619;
getProjectQuestionnaireName(qnaireId);
//run on QAS context
getProjectQuestionnaireName();
|
getProjectQuestionnaireNameByResourceId(qnaireId)
number qnaireId = 11560690;
getProjectQuestionnaireNameByResourceId(qnaireId);
Resource_getResourceName(qniareId) number qnaireId = 11560690;
Resource_getResourceName(qnaireId);
Questionnaire_current().QualifiedName //run on QAS context
Questionnaire_current().QualifiedName;
|
New method Questionnaire_current |
setReportStyleSheetId(reportStyleSheetId)
DCS_use(16749647);
number reportStyleSheetId = 11060624;
setReportStyleSheetId(getResourceIdFromGuid (getResourceGuid(reportStyleSheetId)));
createCrossDiagram({"Q1"}, {"Q2"});
|
Tabulation.StyleSheet = value
number reportStyleSheetId = 11060624;
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 16749647;
Tabulation t = new Tabulation();
t.StyleSheet = new ReportStyleSheet(reportStyleSheetId);
t.CreateCrossDiagram({"Q1"}, {"Q2"}, p);
|
New Tabulation class New ReportStyleSheet class |
setUserProjectQuestionnaireUserId(userId) | QAS_getCurrentQAS().UserResourceId=value | |
getUserProjectQuestionnaireUserId() | QAS_getCurrentQAS().UserResourceId | |
setRPQUserId(userId) | QAS_getCurrentQAS().UserResourceId=value | |
addJournal(resourceId, userId, journalType, content) | new ResourceJournalEntry (resourceId, journalType, content).Save() | |
getTimezone([userId]) | User_getUserByResourceId(UserId).TimezoneId | |
setTimezone([userId,] timezoneId) | User_getUserByResourceId(UserId).TimezoneId=value | |
setUserRoleId(userId, userResourceTemplateId) | setResourceTemplateResourceId(userId, resourceTemplateId) User_getUserByResourceId(UserId).ResourceTemplateResourceId=value |
|
getUserRoleId(userId) | getResourceTemplateResourceId(userId) User_getUserByResourceId(userId).ResourceTemplateResourceId |
|
isMemberOfSampleRule([userId,] sampleRuleId) | User_isMemberOfSampleRule(userId, sampleRuleId) | New method User_isMemberOfSampleRule |
EmailTemplate.PrimaryKey | EmailTemplate.ResourceId | |
UserQuarantine.QuarantineResourceId | UserQuarantine.QuarantineResourceId | |
User.PrimaryKey | User.ResourceId | |
getQuestionnaireTemplateId(qualifiedName)
string qualifiedName = "Common resources\\Questionnaire Template\\Panel Questionnaire Template";
getQuestionnaireTemplateId(qualifiedName);//536
|
new QuestionnaireTemplate(qualifiedName).Id
string qualifiedName = "Common resources\\Questionnaire Template\\Panel Questionnaire Template";
new QuestionnaireTemplate(qualifiedName).Id;//11560689
|
New class QuestionnaireTemplate |
getProjectQuestionnaireId(qualifiedName)
string qualifiedName = "Common resources\\Questionnaire\\Ad Hoc 178";
getProjectQuestionnaireId(qualifiedName);//619
|
new Questionnaire(qualifiedName).Id
string qualifiedName = "Common resources\\Questionnaire\\Ad Hoc 178";
new Questionnaire(qualifiedName).Id;//11560690
|
New class Questionnaire |
getReturnToProjectQuestionnaireId() | GetReturnToQuestionnaireId() | New method GetReturnToQuestionnaireId |
getReportStyleSheetIdByName(qualifiedName)
string qualifiedName = "Common resources\\Report stylesheet\\Tabulation Standard Report Stylesheet";
getReportStyleSheetIdByName(qualifiedName);//45
|
new ReportStyleSheet(qualifiedName).Id
string qualifiedName = "Common resources\\Report stylesheet\\Tabulation Standard Report Stylesheet";
new ReportStyleSheet(qualifiedName).Id;//11060624
|
New class ReportStyleSheet |
getReportStyleSheetId()
DCS_use(16749647);
number reportStyleSheetId = 11060624;
setReportStyleSheetId(getResourceIdFromGuid (getResourceGuid(reportStyleSheetId)));
createCrossDiagram({"Q1"}, {"Q2"});
getReportStyleSheetId();//45
|
Tabulation.StyleSheet
number reportStyleSheetId = 11060624;
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 16749647;
Tabulation t = new Tabulation();
t.StyleSheet = new ReportStyleSheet(reportStyleSheetId);
t.CreateCrossDiagram({"Q1"}, {"Q2"}, p);
t.StyleSheet;//11060624
|
New class Tabulation New class ReportStyleSheet |
getResourceIdFromGuid(guid) | getResourceUniqueIdFromGuid(guid) | |
task[TASK_CASE_NUMBER] | task[TASK_RESOURCE_ID] | |
getCurrentUserId() | User_getCurrentUser() | |
getUserIdFromResourceId(guid) | getResourceUniqueIdFromGuid(guid) | |
createUser(userResourceTemplateId) | User_new(userResourceTemplateId) | |
getRPQUserId() | QAS_getCurrentQAS().UserResourceId | |
User class.ResourceTemplateId | User class.ResourceTemplateResourceId | |
UserQuarantine.AddedByUserId | UserQuarantine.AddedByUserResourceId | New property UserQuarantine.AddedByUserResourceId |
UserQuarantine.RemovedByUserId | UserQuarantine.RemovedByUserResourceId | New property UserQuarantine.RemovedByUserResourceId |
Quarantine_getUserIdsOfQuarantined(quarantineIdList) | Quarantine_GetUserResourceIdsOfQuarantined(quarantineIdList) | New method Quarantine_GetUserResourceIdsOfQuarantined |
User.CreatedByUserId | User.CreatedByUserResourceId | New property User.CreatedByUserResourceId |
User.ModifiedByUserId | User.ModifiedByUserResourceId | New property User.ModifiedByUserResourceId |
SampleRule.QuestionnaireId | SampleRule.QuestionnaireResourceId | |
SampleRule.GroupId | SampleRule.GroupResourceId |