Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] stumped on using values in dropdown.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] stumped on using values in dropdown.
 Login/Join
 
Member
posted
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).

Any suggestions would be appreciated.

Guy



-SET &SDATE=&YYMD;
-SET &SDATEY=EDIT(&SDATE,'9999$$$$');
-SET &SDATEM=EDIT(&SDATE,'$$$$99$$');
-SET &YEARCUR=(&SDATEY);
-SET &FALLCUR=&YEARCUR||50;
-SET &FALLCURD='FALL '|&YEARCUR;
-SET &YEAR1D=(&SDATEY-1);
-SET &FALL1D=&YEAR1D||50;
-SET &FALL1DD='FALL '|&YEAR1D;
-SET &YEAR2D=(&SDATEY-2);
-SET &FALL2D=&YEAR2D||50;
-SET &FALL2DD='FALL '|&YEAR2D;
-SET &YEAR3D=(&SDATEY-3);
-SET &FALL3D=&YEAR3D||50;
-SET &FALL3DD='FALL '|&YEAR3D;
-SET &YEAR4D=(&SDATEY-4);
-SET &FALL4D=&YEAR4D||50;
-SET &FALL4DD='FALL '|&YEAR4D;
-SET &YEAR5D=(&SDATEY-5);
-SET &FALL5D=&YEAR5D||50;
-SET &FALL5DD='FALL '|&YEAR5D;
-RUN
-TYPE &FALLCURD &FALLCUR
-TYPE &FALL1DD &FALL1D
-TYPE &FALL2DD &FALL2D
-TYPE &FALL3DD &FALL3D
-TYPE &FALL4DD &FALL4D
-TYPE &FALL5DD &FALL5D
-RUN
-END

This message has been edited. Last edited by: Guy,


WebFOCUS 7.6.4
Windows XP against an Oracle Database mainly SCT Banner Higher Education ODS and EDW
Various output formats


Guy Brenckle
Budget Analyst
University of Northern Colorado
 
Posts: 25 | Location: Greeley Colorado | Registered: October 08, 2007Report This Post
Expert
posted Hide Post
Can you select the distinct dates from the data?

Could you use a calendar control on your launch page?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Ginny,

The distinct dates are in the data. However, there are millions of rows and it takes a very long time for the dropdowns to return the dates available.

I am not using a launch page.

Guy


WebFOCUS 7.6.4
Windows XP against an Oracle Database mainly SCT Banner Higher Education ODS and EDW
Various output formats


Guy Brenckle
Budget Analyst
University of Northern Colorado
 
Posts: 25 | Location: Greeley Colorado | Registered: October 08, 2007Report This Post
Expert
posted Hide Post
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.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
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, 2005Report This Post
Member
posted Hide Post
I finally got this concept.

Thank you very much.


WebFOCUS 7.6.4
Windows XP against an Oracle Database mainly SCT Banner Higher Education ODS and EDW
Various output formats


Guy Brenckle
Budget Analyst
University of Northern Colorado
 
Posts: 25 | Location: Greeley Colorado | Registered: October 08, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] stumped on using values in dropdown.

Copyright © 1996-2020 Information Builders