More actions
Nguyenduyan (talk | contribs) Created page with "==== QAS_setCompleted ==== This function is to set a list of Questionnaire Answer Sheets to completed or not completed '''Syntax''' QAS_deleteData(array answerSheetIds) '''..." |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
'''Syntax''' | '''Syntax''' | ||
QAS_setCompleted(array answerSheetIds, bool completed) | |||
'''Arguments''' | '''Arguments''' | ||
answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire. | |||
answerSheetIds: is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire. | |||
completed: is a boolean expression. | |||
'''Return type''' | '''Return type''' | ||
array of answer sheet ids where the function could not | array of answer sheet ids where the function could not set to completed or not completed | ||
'''Example 1''' | '''Example 1''' | ||
<source lang="csharp"> | |||
bool completed = true; | |||
array answerSheetIds={28415738,28415739,28415740}; | array answerSheetIds={28415738,28415739,28415740}; | ||
QAS_setCompleted(answerSheetIds,completed); //returned Result: {} | |||
</source> | |||
'''Example 2''' | '''Example 2''' | ||
<source lang="csharp"> | |||
bool completed = true; | |||
array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id | array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id | ||
QAS_setCompleted(answerSheetIds,completed); //returned Result: {28415740} | |||
</source> | |||
'''Availability''' | '''Availability''' | ||
Latest revision as of 08:01, 3 January 2019
QAS_setCompleted
This function is to set a list of Questionnaire Answer Sheets to completed or not completed
Syntax
QAS_setCompleted(array answerSheetIds, bool completed)
Arguments
answerSheetIds: is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire.
completed: is a boolean expression.
Return type
array of answer sheet ids where the function could not set to completed or not completed
Example 1
bool completed = true;
array answerSheetIds={28415738,28415739,28415740};
QAS_setCompleted(answerSheetIds,completed); //returned Result: {}
Example 2
bool completed = true;
array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id
QAS_setCompleted(answerSheetIds,completed); //returned Result: {28415740}
Availability
Version 5.9.5