cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sending a parameter value from a html or applet to a transaction in xMII

Former Member
0 Likes
452

Hi All

I have defined an Input parameter to my transaction. I would like to input the value from a HTML . I am using xactue query in my applet. Thanks for the answers in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Murugappan Veerappan,

1. Define a input parameter in transaction.

2. Call the transaction through URL in a java script.

3. In that url Give the input parameter

For Example:

'http://<ServerName>/Lighthammer/Runner?LoginName=<username>&LoginPassword=<password>&Transaction=

<FolderName>/<Transactionname>''&orderno='OrderNo

"orderno" is the input parameter transaction and the OrderNo is the captured from HTML or applet.

To get a value from applet use the chart/ grid component methods.

For example: ( to get a value from chart)

var myChart = document.ChartApplet.getChartObject();

var pen = myChart.getSelectedPen();

var value = myChart.getYDataValueAt(pen,1);

To call this function in your applet, use any one of events for that display template and mention the funtion name.

For example

<APPLET NAME="iGrid" CODEBASE="/Illuminator/Classes" CODE="iGrid" ARCHIVE="illum8.zip" WIDTH="100%" HEIGHT="100%"MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="<Query template name>">

<PARAM NAME="DisplayTemplate" VALUE="<Display Template Name>">

<param name="CellSelectionEvent" value="<Function Name>">

</APPLET>

I hope this helps you

Regards,

P.S.Kishore kumar

Answers (3)

Answers (3)

Former Member
0 Likes

Hello.

What you'll want to do is assign the Input parameter to one of the "numbered" parameters on the Parameters tab of the Xacute query editor. Pick the input name, select the paramter row, and press the "Assign" button.

Assuming you assigned this to the first row, you'd use:

document.YourApplet.getQueryObject().setParam(1,xxx);

This will assign the value to Param.1, and the xMII server will then assign it to your transaction input.

Best regards,

Rick

Former Member
0 Likes

use <b>document.<your applet name>.getQueryObject().setParam(int paramnum, value);</b> to set values to the variable in the transaction.Assumption made is that the Query should be the type of Xacute

former_member4529
Active Contributor
0 Likes

Hi Murugappan,

You can use set the input parameter to the BLS transaction using the following javascript :

document.iGrid.getQueryObject().setParam(INDEX,NEWVALUE);

By the above script first we get the query object(Xacute query) of the grid and then pass the input param value. INDEX represents the index of the input params e.g. 1 represents the first param, 2 represents the second param, etc.

Hope this helps.

Thanks & Regards,

Dipankar