Focal Point
[SOLVED] Prompt issue in launch page ?

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

March 31, 2017, 11:40 AM
Tomsweb
[SOLVED] Prompt issue in launch page ?
I have a fex with a launch page which prompts for variables: YEAR, MONTH and DOGID.
In the SQL database the fields are written in mixed case (i.e. Year, Month, DogId), and remain in mixed case in the HOLD file after a

TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS HF1
END

?FF HF1
-RUN 


I am trying to pass these values from the launch page to the report focexec to be used in WHERE statements. Here is my code in the focexec:

-DEFAULT &MONTH = ‘ ‘ ;
-DEFAULT &YEAR = ‘ ‘;
-DEFAULT &DOGID = ‘ ‘ ;
………………………………….

TABLE FILE WHATEVER
PRINT
FLD1 FLD2
BY Year
BY Month
BY DogId
WHERE Year EQ ‘&YEAR’;
WHERE Month EQ ‘&MONTH’;
WHERE DogId EQ ‘&DOGID’;
END
-RUN


What happens is the launch page prompts me for these 3 variables as anticipated. Then a 2nd launch page displays and asks me to provide selections to these variables all over again !!

There is an intermediate page that runs between the launch page program and my report fex. This page contains HTML form coding which passes hidden values and (the 3) variables to the report fex. The Year, Month and DogId fields are referenced in this page in CAPITAL letters as YEAR, MONTH and DOGID.

My problem is I am having trouble getting the –DEFAULT command to work with these variables that are referenced as either MIXED CASE or CAPITAL letters. Do I reference the fields in mixed case in the –DEFAULT or as CAPITAL letters? What reference do I use in the WHERE statement?

Has anyone had experience with this?
Thanks!

This message has been edited. Last edited by: FP Mod Chuck,


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
March 31, 2017, 12:06 PM
FP Mod Chuck
Hi Tomsweb

Change your -DEFAULT's to -DEFAULTH that should eliminate the extra prompt.

This message has been edited. Last edited by: FP Mod Chuck,


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
April 01, 2017, 09:19 PM
Tomsweb
Thanks Chuck


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36