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 from Date
 Login/Join
 
<Shylaja>
posted
Hi,
i have a drop down box for year, where, the year previous to the current one should be selected by default and 5 year previous to the current one should be populated.
Please help me out in implementing this...

Shylaja.
 
Report This Post
Virtuoso
posted Hide Post
Shylaja

Are you building your own HTML form or using the layout painter or just auto prompt?


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
<Shylaja>
posted
Hi,
I found a way out... I wrote a query on DB2 that serves the purpose.
The query looks like this:

select emp_yr from
(select distinct emp_yr,ROW_NUMBER() OVER (ORDER BY emp_yr DESC) as rownumber from
(select distinct emp_yr FROM emptab
order by emp_yr desc) as aa ) as bb
where rownumber < 6

I need to convert this query to FOCUS code...
Please help me do this...

Shylaja.
 
Report This Post
Virtuoso
posted Hide Post
Create a master on the query as if the query is a table.

So suppose the query is called "MYYEARSDB2"

You create the acx and the mas by using the tool.
after that you will have a master MYYEARSDB2.MAS and you will be abble to use that "database" in your HTML report as the dynammic source of the drop down list.

Frank




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
Here is one more solution Shylaja :

<CODE>
-SET &YEAR0 = EDIT(&YYMD,'9999') ;
-TYPE &YEAR0
-*
-REPEAT GETYR FOR &I FROM 1 TO 6 ;
-SET &YEAR.&I = &YEAR0 - &I;
-GETYR
-*
-HTMLFORM BEGIN
<html>
<head><title> abc </title></head>
<body>
Select Year :
<select name="FRMYR">
<option value="!IBI.AMP.YEAR1;"selected>!IBI.AMP.YEAR1;</option>
<option value="!IBI.AMP.YEAR2;">!IBI.AMP.YEAR2;</option>
<option value="!IBI.AMP.YEAR3;">!IBI.AMP.YEAR3;</option>
<option value="!IBI.AMP.YEAR4;">!IBI.AMP.YEAR4;</option>
<option value="!IBI.AMP.YEAR5;">!IBI.AMP.YEAR5;</option>
</select>
</body>
</html>
</CODE>

Goooooooooooooooood day !!
Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders