Focal Point
[SOLVED] Multi-output fex with input parameters

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

February 06, 2017, 11:12 AM
Nova27
[SOLVED] Multi-output fex with input parameters
Hello,

I have a fex which generates the report both in HTML & Excel formats.. The report accepts input parameters through the HTML launch page and passes them to the fex upon clicking "Run Report" button on the launch page..

Some of my parameters are optional, just 1 input value is required to run the report.. I defaulted the optional variables to FOC_NONE (except the mandatory input parameter), but when I try to run the report in HTML or Excel format, the optional parameters show up with FOC_NONE written in the text box (in the fex) ...

How do I get the report to run without these optional parameters popping up on the fex?

Thanks!

This message has been edited. Last edited by: Nova27,


WF 7.7.03, Win 7
February 06, 2017, 12:41 PM
BabakNYC
Have you tried _FOC_NULL instead of FOC_NONE?


WebFOCUS 8206, Unix, Windows
February 06, 2017, 12:53 PM
Nova27
Tried _FOC_NULL too.. doesn't help... it still prompts for that optional variable...

Any other thoughts/ideas? Thanks!


WF 7.7.03, Win 7
February 06, 2017, 12:57 PM
eric.woerle
Did you default with -DEFAULT or -DEFAULTH? -DEFAULTH will hide the prompt where -DEFAULT will still prompt the user but the the defaulted value pre-loaded.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
February 06, 2017, 12:58 PM
eric.woerle
Babak,

_FOC_NULL and FOC_NONE are the same thing. FOC_NONE is just the older version of _FOC_NULL. There are settings in the configuration to define what the ignore character is.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
February 06, 2017, 01:51 PM
MartinY
Nova,

You fex is probably in the "Managed Reporting" area (which is in WF7 version if your signature is good), isn't it ?

Right-click on your fex, Properties, then uncheck "Prompt for Parameters".


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 06, 2017, 03:53 PM
Nova27
Using DEFAULTH worked.. Thanks Eric... Smiler


WF 7.7.03, Win 7
February 07, 2017, 02:23 AM
Avinash
Hi Nova,

If your problems get solved, Please edit your title [SOLVED] or [CLOSED].


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
February 07, 2017, 09:35 AM
TexasStingray
The problem I have with DEFAULTH is that the HTML composer with loose the fact the report even cares about them and will not pass them in. WF8008




Scott

Eric,
You say:
quote:
_FOC_NULL and FOC_NONE are the same thing. FOC_NONE is just the older version of _FOC_NULL.

This is not quite exact. See the following:
  
-* File focnull.fex
-DEFAULTH &COUNTRY=FOC_NONE
-*DEFAULTH &COUNTRY=_FOC_NULL
TABLE FILE CAR
SUM SALES
BY COUNTRY
BY SEATS
WHERE COUNTRY EQ '&COUNTRY' AND SEATS GT 2;
END

If you run this with the DEFAULT FOC_NONE you will get all the COUNTRYs and all the SEATs.
However, if you use _FOC_NULL, you will get all the COUNTRYs but SEATS greater than 2.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

Hi Avinash,

I am new to the forum, I am not sure how to edit my post as [SOLVED] or [CLOSED]..

Please tell me how to..

Thanks!


WF 7.7.03, Win 7
Edit the first post in this thread by clicking on the folder/pencil eraser icon, then prefix the subject with "[SOLVED] ".


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server