[Solved] Change Value of amper varilable in javascript
I'm sure this has probably been answered before but I can't seem to find the answer. Seems to me it should be pretty easy but my javascript skills are sorely lacking.
We are converting many of our reports from Area to Region. When a report is displayed, we have a button we call the Criteria button. In this button, one can change the report parameters or even change to a different report without going back to the dashboard. Much of that button is javascript. I have finished converting the javascript for this Area/Region function but I have one last item. Depending on the report selected in the Criteria button, I need to change the value of &AREAREGN. How can I do that?
When one changes the report to be run, a javascript function is run. I need to modify the function to change the value &AREAREGN of depending on the report selected.This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
November 15, 2012, 01:48 PM
Francis Mariani
Once the text in the amper variable is plonked into the paragraph tag, it becomes just text - you cannot refer to the amper variable. If you give the paragraph tag an id or name, you can refer to it with JavaScript and change its value, with the innerHTML property.