Focal Point
Passing an amper from a fex to a html form

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

February 06, 2008, 05:48 PM
Bob in LA
Passing an amper from a fex to a html form
I have an html form that calls a fex to populate a frame. The fex uses a date from the Calendar function of the html form to obtain the data. This date is also a part of the table name and is always a Saturday date. The fex checks the date passed and changes is to the nearest Saturday. I want to pass the altered date back to the html page and replace the original calendar date with the altered date.

I've tried the value=!IBI.AMP.RPT_DATE; in the html form but that isn't working. Does anyone have a solution. I was thinking I could do it with javascript.
February 06, 2008, 05:55 PM
dballest
value="!IBI.AMP.TO_DATE ;" worked for me. just had to call or load the html page again


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
February 06, 2008, 07:00 PM
Bob in LA
The only problem with that is the fex is also autoloaded in a frame. The fex that is being called can be reloaded after reselecting the run date and pressing the run button. Reloading the html page causes the routine to go into an endless loop.
February 07, 2008, 02:29 AM
Tony A
Bob,

What you are trying to do is to run a server side script (the fex) to return a value to the client side process. Unless you use something like activeX (how IB action chained combos) then you would be better off keeping your function within the client browser by using, as you suggested, JavaScript.

Search Google for JavaScript date handling.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
February 07, 2008, 10:12 AM
gregv
Bob: You can use AJAX, to your fex, to refresh part of the html page without reloading the entire page. It's more advanced javascript but a very nice, user friendly approach, imho.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8