on ‎2006 Nov 29 11:48 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 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.