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 used this in a fex but it doesn't work -SET &DATVAN = AYMD (&YYMD, -7, 'I8YYMD');
-DEFAULT &DATUM_VAN_JJJJMMDD =&DATVAN.EVAL
TABLE FILE T_VISIT \PRINT * WHERE LASTCHANGE GE DT(&DATUM_VAN_JJJJMMDD); END -EXIT
By running this fex an error is trown : 0 ERROR AT OR NEAR LINE 7 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC177) INVALID DATE CONSTANT : &DATVAN.EVAL (FOC009) INCOMPLETE REQUEST STATEMENT
Any help ?This message has been edited. Last edited by: FP Mod Chuck,
1. What's the format of LASTCHANGE? 2. Can you test your code by removing the .EVAL? 3. Are you really running 7.6?This message has been edited. Last edited by: BabakNYC,
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
I am not sure when the ability to assign a variable to a variable default became available. If you are on 7.6.11 as your signature implies then you might not be able to do this.
This ability was discussed a while ago now but you should be able to perform a search and find the thread.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
The problem is Nana wants to set a default value for the date field AND prompt for it so the user has a choice of entering something other than last week. However, I remember something about Auto Prompt not evaluating the -DEFAULT value and just displaying the variable name instead of the value for last week. If you turn off auto prompt the code will work (sans prompt), but if you have it on it doesn't.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
I believe I read that LASTCHANGE is a date time field and the &DATUM_VAN_JJJJMMDD is only being set to a YYMD format and not a full date and timestamp.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005