QuotaTreeToDo() function
Available from version 5.6.1 and 5.5.3.20
We added a new askiascript keyword QuotaTreeToDo().
Sometimes you might want to query a response in the quota tree.
Rather than using the algorithm which will find the matching responses and pick the max, you might want to pinpoint the exact value in the tree.
QuotaTreeToDo(“question1:response1;question2:response2”)
- If the hierarchy of questions and responses does not exist, the return value is DK.
- If you do not specify the response
QuotaTreeToDo(“question1”), the current response for that question is used.
- If you do not specify the response
QuotaTreeToDo(“question3”), and there is no current response for that question, then it returns DK.
- For multiple closed question, you should always target a specific row.
- It works also with numeric question.
- For numeric, we don’t target the range but the value so if a range between 1 (included) and 10 (not included) We can write
QuotaTreeToDo(“question:1“) or QuotaTreeToDo(“question:1.55“) or QuotaTreeToDo(“question:9.99“) to retrieve the number of to do for that range.
- For single or multiple closed question, we use the index value for the response and not the entrycodes in the string of the QuotaTreeToDo()