cancel
Showing results for 
Search instead for 
Did you mean: 

setParam not passing value to XAcute transaction

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try clearing the cache from the java console on your workstation. I think its 'x' or 'g'.

Former Member
0 Kudos

Thanks Christian,

I shutdown the PC overnight and now it is working. Must have been the java cache.

Maybe I learned the lesson now.

Thanks again and Happy Holidays,

--Amy Smith

Answers (1)

Answers (1)

jcgood25
Active Contributor
0 Kudos

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?

Former Member
0 Kudos

Thanks Jeremy,

Happy Holidays!

--Amy Smith