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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Year Dropdown
 Login/Join
 
Member
posted
I have a report which accepts a date parameter. The user can chose which date parameter they want to use with a drop down box. Currently the values in the drop down box are hard coded in

PRINT
INCIDENT_ID NOPRINT
LOGGED_DT AS 'Logged Date'
INCIDENT_ID AS 'Work Order ID'
DEPARTMENT_ID NOPRINT
BY HIGHEST LOGGED_DT NOPRINT
WHERE YEAR EQ '&YEAR.(<2008,2008>,<2007,2007>,<2006,2006>).Please select year.';

I want to set it up so that this report reads the systems current year and then adjust the following years accordingly. Now, I created three variable DATE_ONE which get the current date, DATE_TWO which gets current date - 1 Year, and DATE_THREE which get current date -2 years. Now the problem I am having is I want the values for these variables to display in the drop down. Not the variable name.
 
Posts: 25 | Location: Texas | Registered: December 04, 2007Report This Post
Member
posted Hide Post
Signature:



Location: Texas
WebFOCUS 7.1.4
Platform/Operating System: WINXP
Output format - EXCEL, PDF, HTML
 
Posts: 25 | Location: Texas | Registered: December 04, 2007Report This Post
Guru
posted Hide Post
arieger:

If you hold your date fields (DATE_ONE DATE_TWO DATE_THREE) in format XML and assign your dropdown list to your procedure, you will see the values listed.

Make sure you have both a display field and value field for each item in the dropdown (ie. 20070101 Jan 1, 2007; 20080101 Jan 1, 2008; 20090101 Jan 1, 2009).

IHTH.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report This Post
Virtuoso
posted Hide Post
Arieger,

It sounds to me as if you rely on autoprompting for this.
If that is the case, then you're out of luck. Thing is, autoprompt reads and psearches the procedure before any processing within the procedure is done. The only things it will look for are unresolved parameters, and these will be propted for.
Best way to go for this is the way Greg indicated. Create an html page for the request with the html painter, create a separate procedure to populate the dropdown box, and bind this procedure to your dropdown control on the html page.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
For amper autoprompting, if you use these three years regularly then why not write them to a table and have them accessable from your app path? Just have a single field within the table of YEAR format A4 for instance. You could write the years, that you want within the table, via overnight batch process (it would need to be populated before running a fex that needs it).

You could then just code something like this -

TABLE FILE GGSALES
SUM DOLLARS
    BUDDOLLARS
 BY REGION
 BY ST
 BY STCD
 BY CATEGORY
 BY PRODUCT
WHERE YEAR EQ &YEAR.(FIND YEAR IN YEARDATA).Please select year.;
END

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, 2004Report This Post
Virtuoso
posted Hide Post
Good solution Tony.
Looks as if this might work for him (or her).
I'll keep this trick in mind for whenever I need it.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders