cancel
Showing results for 
Search instead for 
Did you mean: 

multiple inputs separated with commas

Former Member
0 Kudos

Hi All,

I used UI5 grid to display the details.I want to give multiple inputs in text box separated with commas,then it should show the output for all the inputs in UI5 grid.I have created transaction to diplay the details of input and then I have added it in irpt page by using xacute query.How can I get output for multiple input.

Please help me in this.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Deepali,

I tried to understand and created a example as below.

I am providing Multiple Inputs in this text box which will go as Comma separated values

and in Script i will split these values and pass them to Xacute query as individual input parameters.

var EPROJ,ETYPE;
var txtValue=document.getElementById("inputtxt").value;
var valuesArray=txtValue.split(",");
EPROJ=valuesArray[0];
ETYPE=valuesArray[1];

//pass the values to XacuteQuery

Grid.getQueryObject().setParameter("Param.1",EPROJ);
Grid.getQueryObject().setParameter("Param.2",ETYPE);

Grid.update(true);

In workbench Xacute Query configuration looks like this.

So in the above example if i click Submit button in IRPT page. It will show the result as below.

Hope this helps.

Regards,

Sriram

swaroop_anasane
Active Contributor
0 Kudos

Hi Deepali,

Your question is not so clear to answer it in a go. Assuming you are passing a comma separated string to Param of xacute query, you can convert it into a list by specifying comma as delimiter. Then you can build a logic to fetch results for these inputs and assign it to output document.

If you are not getting entire result in a go, then keep appending result sets to output doc.

Let me know if you have any further questions.

Regards,

Swaroop