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.
Users...? You never know what they'll like and not like. My user would like a particular value to be set as the default in the drop-down options. My focexec to create the drop-down looks like this:
FILEDEF YEARLST DISK YEARIS.HTM
-DEFAULT &TRANS = ' ';
TABLE FILE BU01TB06 SUM COMPUTE YEARVAL/A8 = IF CD_YEAR EQ '&TRANS' THEN 'SELECTED' ELSE ' ' ; NOPRINT COMPUTE OPC/A128 = ''; ON TABLE SET HOLDLIST PRINTONLY BY CD_YEAR NOPRINT
ON TABLE HOLD AS YEARIS FORMAT ALPHA END -RUN
The drop down then has All Years 2003 2004
My user wants the default to be set to current year. "All Years" comes from my HTML code and 2003/2004 comes from my focexec code.
Question is: How do I set a default selection ?
Posts: 132 | Location: Kansas | Registered: November 12, 2003
well, what works for me is to write my entire option list using focus defines DEFINE FILE thing PICK/A10=IF CDYEAR IS &SOMETESTVAL THEN ' SELECTED ' ELSE ' ' ; OUTPUT/A100= ''; END TABLE FILE thing PRINT OUTPUT BY CDYEAR NOPRINT ON TABLE HOLD AS MYDDLIST FORMAT ALPHA END ..and myddlist is filedefed into my site ..and my html page has 'ALL' with value $ as the first entry hardcoded into the page. Then i reference this list
< !-- #include file="list_shp/myddlist.txt" -->
This works for an .asp launch page. if yours is html, you can issue a filedef at the top, make it a fex, and use !ibi.fil...but you know that already. Hope this helps; it works great for me.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003