Hi All,
I'm going out of my mind on this one, and I'm sure you guys may be able to provide me with a small Javascript code snippet.
Essentially all I want to do, is grab the values (as one string) in the choices section of a search & select, and display (after attaching an onchange event probably to a virtual finish button), via the javascript alert function.
(I need to do more down the line, but this will get me started as I'll have the info I need to play with).
I've searched these forums for hours and tried many different things.
par = document.formWarpRequest._textEditBoxAAA.value;
doesn't work for the choices box of a search & select.
par = document.forms["formWarpRequest"]._oLstChoicesAAA.value
This always tells me that it's null or not an object. I assume I'll have to iterate the 'choices', but if it's always null, I'll have trouble with that.
I'm using 8.2 by the way. Not too worried about the upgrade side of things.
Any ideas people? It'd be most appreciated.
Thanks,
Mike
hi smartma ,
even i came across the same issue while writing the JAVA script code for a list value prompt.
please check the Name property for the Prompt in the Report Studio
as you state "par = document.forms["formWarpRequest"]._oLstChoicesAAA.value"
are you sure your prompt name is AAA only.
give the same Prompt name in the JAVA code as well.
regards,
vij
:)