February 06, 2008, 05:48 PM
Bob in LAPassing 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
dballestvalue="!IBI.AMP.TO_DATE ;" worked for me. just had to call or load the html page again
February 06, 2008, 07:00 PM
Bob in LAThe 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 ABob,
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
February 07, 2008, 10:12 AM
gregvBob: 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.