on 06-13-2011 7:58 PM
Hello, there!
I have a transaction that receives a list parameter. I have built an XAcute Query for it and mapped the input parameter so that I can pass it with the getQueryObject().setParam(1, myList) Javascript method.
The myList parameter is a Javascript string array.
I can see the parameter getting to the transaction (when I log it, I can see "1, 2, 3" as a result), but when I call the size(list) function, it always returns 0. Also, if I try to get an element of this list, it doesn't work.
It seems that my comma-separated input string is not being correctly transformed on an MII list.
Do you know what I should do to solve this problem?
Thanks in advance!
Your typical "ABC,DEF,GHI" comma separated list will need to be in a different format to be compatible with the list propery type (and be used by the corresponding functions).
Have you tried creating a TRX or local property of type List and press the evaluate button to see the string representation?
[[string:ABC], [string:DEF], [string:GHI]]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.