As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have a weekly reoccurring report and when the report is executed there are 2 parameters which drives it. The parameters are Start Date and End Date, I would like to set the Start Date and End Data parameters to default to MIN (Start Date) and MAX (Start Date)
I'm trying to accomplish this but can't seem to figure it out:
WHERE WORK_DATE GE MIN(TABLE.WORK_DATE ); WHERE WORK_DATE LE MAX(TABLE.WORK_DATE );
I'm not sure what i'm doing wrong...This message has been edited. Last edited by: <Kathryn Henning>,
You need to "capture" your MIN/MAX value first, and then use them to drive your report:
TABLE FILE MYTABLE
SUM
MIN.WORK_DATE AS 'MIN_WORK_DATE'
MAX.WORK_DATE AS 'MAX_WORK_DATE'
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS HDATES
END
-RUN
-READFILE HDATES
TABLE FILE MYTABLE
PRINT
COLUMN1
COLUMN2
COLUMN3
BY WORK_DATE
WHERE WORK_DATE FROM '&MIN_WORK_DATE' TO '&MAX_WORK_DATE'
END
You may also try some of the very cool features I've heard are available in WebFOCUS 8, such as better support for subqueries and such to see if you can achieve that in a single round-trip to the database, but the technique above should get you going for now.
TABLE FILE MYTABLE
SUM
COMPUTE MIN_WORK_DATE/YYMD = MIN.WORK_DATE ;
COMPUTE MAX_WORK_DATE/YYMD = MAX.WORK_DATE ;
PRINT
COLUMN1
COLUMN2
COLUMN3
BY WORK_DATE
WHERE TOTAL WORK_DATE FROM MIN_WORK_DATE TO MAX_WORK_DATE.
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS HDATES
END
-RUN
Depending on the data source, the different examples may perform better than the other.
followed by dialog manager code to either use the received parameter values (if they over-ride the '?'default values) or look up the min and max values and apply them (if the values are still '?').
But you'll need to use a launch page, not autoprompt.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005