Skip to Content

How to make getDataAsString work for ALL MEMBERS(ALL)

Hi Friends,

My Dashboard contains three listbox and based upon the selection of these three listbox, the data is populated in a textbox using getDataAsString function. The logic is working fine when individual values are selected from each listbox but the same logic is not working when ALL is selected from the listbox. I tried by putting a set of codes to pass blak value to the required dimension but it does not work. The code which i added to make it work is highlighted in bold below.

Code on click event of Show button:

var calmon = CALMON.getSelectedValue();

var orguni = ORGUNIT.getSelectedValue();

var compco = COMPCODE.getSelectedValue();

if (calmon == "(ALL_MEMBERS)")

{

calmon = "";

}

if (orguni == "(ALL_MEMBERS)")

{

orguni = "";

}

if (compco == "(ALL_MEMBERS)")

{

compco = "";

}

HC.setText(DS_2.getDataAsString("00O2TLJS35QHRHTQDWRHMPNP8",{"0CALMONTH":calmon,"0ORGUNIT":orguni,"0COMP_CODE":compco}));

Please suggest.

Thanks,

Gaurav

b1.png (8.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 29, 2016 at 05:38 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.