YTQRQAD2 ;SLC/KCM - RESTful Calls to set/get MHA administrations ;Oct 31, 2024@13:37:11
Source file <YTQRQAD2.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
SAVEADM(ARGS,DATA) | ; save answers and return /ys/mha/admin/{adminId}
|
|
QASAVE(DATA) | ; save questions and answers in DATA
; loop through DATA to create ANS array, then YSDATA array ; ANS(#)=questionId^choiceId <-- radio group question ; ANS(#,#)=wp value <-- all others |
|
SETADM(DATA,NUM) | ; return the id for new/updated admin
|
|
ETFM(YSDT) | ;External to FM
|
|
ADM4ASMT(NODE,TESTID) | ; return adminId if one has been saved for assignment
|
|
GETADM(ARGS,RESULTS) | ; get answers for administration identified by ARGS("adminId")
|
|
TXT2ANS(IDX,QNUM) | ; Convert web to ANS format for DATA(IDX)
; expects DATA,ANS |
|
ADDSEGS(NODE) | ; split text in node into LEN segments with "|" for newlines
; expects DATA,ANS,LEN,LN |
|
GETCHKS(ARGS,RESULTS) | ; verify answer string & return check messages if needed
|