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 create a way that date related values are available in a drop down for a user to select. I wanted this to be a situation that as the years change, the most recent values were available without recoding a report.
The following code creates the values and descriptions that I would like to use.
I tried to put them in a -PROMPT but then read and found you could not use an ampervariable in a -PROMPT line (or something to that effect).
I would recommend a launch page. You can populate the date dropdown box by using a procedure that generates the dates in a sorted order and does an ON TABLE PCHOLD FORMAT XML at the end of it.
In your launch page control for the dropdown box, you reference a procedure instead of a master for the source of the list.
Continuing were Ginny left off ... Use any convenient data source with at least 6 records in your 'source procedure': Put as much of the date calculation as you can in DEFINE, rather than -SET.
DEFINE FILE CAR
LIST/I5 WITH CAR = LIST + 1;
THIS_YEAR/I4=&YYMD/10000;
YEAR/I4 = THIS_YEAR + 1 - LIST;
DESCRIPT/A10=EDIT(YEAR,'FALL 9999');
VALUE /A6 =EDIT(YEAR,'999950');
END
TABLEF FILE CAR
PRINT DESCRIPT VALUE
IF RECORDLIMIT EQ 6
ON TABLE PCHOLD FORMAT XML
END
This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005