on 12-17-2015 11:17 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
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.