{1 - 24} GreyGrey
{25 - 49} GreenGreen
{50 - 499} BlueBlue
{500 - 4999} OrangeOrange
{5000 - 24999} RedRed
{25000+} BlackBlack

Please confirm that you would like to report this for an admin to review.


How to pass a list parameter from Javascript?

Hi QnaSAP, 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?

SAP Consultant, needs help regarding “How to pass a list parameter from Javascript? “



Confirm that you would like to Remove Email Alerts for your question. You cant undo this and you will not be able to re-subscribe.


Tags

No Answers

You must be Logged In to Answer this Question

Already a Member, Log In
Not a member yet? Sign Up
sap forum