Focal Point
[SOLVED]access html hidden control from fex

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2307091086

January 09, 2016, 04:32 AM
Bharathi
[SOLVED]access html hidden control from fex
-HTMLFORM BEGIN

<script language="javascript">
function SAVEVAR()
{
var svar = '!IBI.AMP.SFLAG;';
parent.document.getElementById('inputhidden2').value = svar;
}


-HTMLFORM END
I have this function in my fex which runs on submit, there I want to set the hidden value and read it in html, which is not happening.
Any Idea?

This message has been edited. Last edited by: Bharathi,


WebFOCUS 8.1.05
Windows, All Outputs
January 10, 2016, 04:30 PM
Waz
How is the fex being called ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 11, 2016, 10:58 AM
Barry Solomon
Hi Bharathi

-HTMLFORM is not a great way to call the HTML page but your SFLAG is probable a value that can be retrieved by a procedure. You can use the procedure to fill a control in the HTM page. Now the HTM page has the value if you need it. That is the easiest way...

Best of Luck,
Barry


WebFOCUS 8
Windows, All Outputs
January 11, 2016, 11:05 AM
Squatch
Try removing the single quotes in this line:

var svar = !IBI.AMP.SFLAG;


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs