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 am trying to set a default value for date amper variable in my report. I have to show a default date in the variable prompt screen. This date I am extracting from querying a table and saving in another variable.
Now trying -DEFAULT &TODAY=&SAVEDATE
Its taking &SAVEDATE as value for &TODAY. I tried &SAVEDATE.EVAL also but no luck.
Can somebody please guide.This message has been edited. Last edited by: Kerry,
Thanks for your response. I tried similar thing but didn't get the desired output. Please see my code below
FILEDEF TDATE DISK &APPROOT/baseapp/bustoday.txt
TABLE FILE table1
PRINT
EDW_PARAMETER_VALUE AS ' '
WHERE PARAMETER_ITEM EQ 'AS_AT_BUSINESS_DATE';
ON TABLE SAVE AS TDATE FORMAT COM
END
-RUN
-READ TDATE &TDAY.A20.
-SET &TODAY=EDIT(&TDAY,'$99999999$');
-SET &TODAY=EDIT(&TODAY,'$$$$$$99')||'/'||EDIT(&TODAY,'$$$$99$$')||'/'||EDIT(&TODAY,'9999$$$$');
-DEFAULT &FROM_D = &TODAY.EVAL
-TYPE &FROM_D;
Ah, the magic word - AutoPrompt. You're just not going to be able to do this when you're using autoprompt. After all autoprompt DOES NOT execute the code, it just SCANS for possibly unresolved &var's. Each -DEFAULT is a possibly unresolved parameter, so it is placed on the autoprompt screen with - yes indeed - whatever is to the right side of the equation, taken literally. The only solution to this - as I can think of - is to build the html selection screen without using autoprompt. But maybe someone else has a better idea?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
as Gamp says, build yourself a regular launch page, rather than have the user use an autoprompt page. then default the value &from_d with &today.eval in a text box and let the user override.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks Susannah and Gamp for the useful inputs. I have created a launch page to input the parameter and it's taking the default value from &from_d. The issue is resolved.
I would like to improve the basic launch page created here. Can you please refer me to launch page documentation link.