on 12-14-2009 10:50 PM
Hi all,
I am missing something as this always works, but here goes...
I had an iCommand applet with javascript that set Param.1 and Param.2
The query mapped Param.1 to materialList and Param.2 to qtyList
The XAcute transaction has inputs for materialList and qtyList
This was working fine. Then I needed to add three new inputs, so...
I added javascript to set Param.3,4,5
The query mapped the Param.3,4,5 to names
The transaction added those names as input parameters
I'm not getting any values in the input parameters for 3,4,5 in the transaction.
Params 1 and 2 are still fine.
Here is the javascript. I checked the spelling of the names in the query and transaction.
What am I missing?
func tion submitRequest
v ar applet = document.requestMaterialPickApplet
v ar query = applet.getQueryObject()
v ar materials = buildMaterialList()
v ar quantities = buildQuantityList()
q uery.setParam(1, materials)
q uery.setParam(2, quantities)
i f (document.getElementById('specialStockCheckbox').checked)
query.setParam(3, $('#salesOrderNumber').val())
query.setParam(4, $('#salesOrderItem').val())
query.setParam(5, 'E')
e lse
query.setParam(3, '')
query.setParam(4, '')
query.setParam(5, '')
}
v ar msg = ''
f or (var i=1; i < 6; i++)
msg += query.getParam(i) + ':'
}
a l ert(msg);
aft erTra nsaction (applet.executeCommand());
}
And the Applet tag
<APPLET NAME="requestMaterialPickApplet" CODEBASE="/XMII/Classes" CODE="iCommand" ARCHIVE="illum8.zip" WIDTH="1" HEIGHT="1" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="APEX/Queries/EX/requestMaterialPickQuery">
<PARAM NAME="CreationEvent" VALUE="requestMaterialPickAppletCreation">
</APPLET>
Thanks,
--Amy Smith
--Haworth
Try clearing the cache from the java console on your workstation. I think its 'x' or 'g'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eliminate the web page and javascript from the equation by emulating what you are doing with the Query Template directly. Is the problem in the else portion where the blank values are not overwriting the default values in either the template or the trx?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
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.