Focal Point
setting the java script variable to webfocus variable

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

December 04, 2006, 07:35 AM
Balaji Gavini
setting the java script variable to webfocus variable
hi,
I am trying to set variable in the java script to the webfocus variable.But it's not happening so.
But i am able to set the webfocus variable to java script variable. Can't it happen in the reverse way.Please help

Regards,
Balaji
December 04, 2006, 08:19 AM
RichH
Hi Balaji,
What do you have coded thats not working? Are you using the !IBI.AMP syntax or something else?
Rich


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
December 04, 2006, 03:03 PM
BlueZone
To expand on Rich's comment (just in case) Balaji, any variable that is set in FOCUS code (say &FLDX) can be refered to in HTM pages as !IBI.AMP.FLDX;

For the other way around, please try the following in the 'HEAD' section :
document.formname.FLDX.value = 'ABC';
And depending on how your HTML is stuctured, you may also need a
<INPUT TYPE="hidden" NAME="FLDX"> in the 'BODY'.

Hope that helps.
Sandeep Mamidenna.


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music