Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

QAS deleteData: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "==== QAS_deleteData ==== This function is to delete a list of Questionnaire Answer Sheets '''Syntax''' QAS_reset(array answerSheetIds) '''Arguments''' answerSheetIds is an..."
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
==== QAS_deleteData  ====
==== QAS_deleteData  ====


This function is to delete a list of Questionnaire Answer Sheets  
This function is to delete data for a list of Questionnaire Answer Sheets  


'''Syntax'''
'''Syntax'''


QAS_reset(array answerSheetIds)  
QAS_deleteData(array answerSheetIds)  


'''Arguments'''
'''Arguments'''
Line 12: Line 12:
'''Return type'''
'''Return type'''


array of answer sheet ids where the function could not reset
array of answer sheet ids where the function could not delete data


'''Example 1'''
'''Example 1'''
 
<source lang="javascript">
array answerSheetIds={28415738,28415739,28415740};
array answerSheetIds={28415738,28415739,28415740};
 
QAS_deleteData(answerSheetIds); //returned Result: {}
QAS_reset(answerSheetIds); //returned: result {}
</source>
 
'''Example 2'''
'''Example 2'''
 
<source lang="javascript">
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_deleteData(answerSheetIds); //returned Result: {28415740}
QAS_reset(answerSheetIds); //returned: result {28415740}
</source>
 
'''Availability'''
'''Availability'''



Latest revision as of 09:36, 3 January 2019

QAS_deleteData

This function is to delete data for a list of Questionnaire Answer Sheets

Syntax

QAS_deleteData(array answerSheetIds)

Arguments answerSheetIds is an array expression. It is the Questionnaire Answer Sheet IDs of current Questionnaire.

Return type

array of answer sheet ids where the function could not delete data

Example 1

array answerSheetIds={28415738,28415739,28415740};
QAS_deleteData(answerSheetIds); //returned Result: {}

Example 2

array answerSheetIds={28415738,28415739,28415740};// 28415740 is an invalid answer sheet id
QAS_deleteData(answerSheetIds); //returned Result: {28415740}

Availability

Version 5.9.5