I would like to have the default parameters actually show the amper values of 20160403 and 20160430 in this example. The values are passed as you can see in the -TYPE output, but I would like to see those values in the prompt that the end user will see to give them the option to change the date if they would like.
This message has been edited. Last edited by: <Emily McAllister>,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
May 12, 2016, 01:58 PM
GavinL
The auto prompt is because you don't have a value in it. If your wanting to prompt with default values, then you need to build your page to prompt via your own code, then pass the values to use.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
May 12, 2016, 02:01 PM
Ricardo Augusto
WebFOCUS 8.1.05 / APP Studio
May 13, 2016, 03:35 AM
Dave
...or make an HTML.
And dynamically fill the inputboxes with a .fex ( producing an XML ) with the correct value.
_____________________ WF: 8.0.0.9 > going 8.2.0.5
May 13, 2016, 10:57 AM
GavinL
quote:
...or make an HTML.
And dynamically fill the inputboxes with a .fex ( producing an XML ) with the correct value.
That's basically what my code does. It's an HTML within a fex and auto fills with set defaults.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
May 17, 2016, 03:33 AM
Dave
Gavin,
I know. But it's handcoded. If you just make an .fex like:
TABLE FILE CAR
SUM FST.CAR
BY HIGHEST 1 COUNTRY
ON TABLE PCHOLD FORMAT XML
END
You can do the rest in the HTML-composer GUI. ( without coding ) And you can even reuse it for other HTML-screens.
... Or do it like this: I use this to drill from a list to a HTML-prompt screen and auto-run. The user can also directly start the HTML-prompt screen without auto-run.
-DEFAULTH &SELECTED_LIST_VALUE = '';
-* prevent auto-prompting
-HTMLFORM IBFS:/WFC/Repository/d1frsupp/std_reports/1026/1026_artikelzoeker.htm
-IF &SELECTED_LIST_VALUE NE '' OR ' ' THEN CONTINUE ELSE EXIT;
-HTMLFORM BEGIN
<SCRIPT LANGUAGE='JSCRIPT'>
document.getElementById('input_user_value').value = '!IBI.AMP.SELECTED_LIST_VALUE;';
document.getElementById('form1Submit').click();
</SCRIPT>
-HTMLFORM END
...It can be done in all sorts of ways.
_____________________ WF: 8.0.0.9 > going 8.2.0.5
May 17, 2016, 10:00 AM
GavinL
I'm a big components of "handcoding" or find yourself limited to UI restraints and have your job replaced by a BA as it's no longer development if your relying on something to write the code for you.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server