IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Dynamic Ranking
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
PT
Member
Posted
I want to select dynamic ranking like in one combo box it should show top and bottom and in other it should show numbers sothat i can select top 10 or bottom 15.

Anybody knows how to do it with GUI?
 
Posts: 3 | Location: Pune | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
It's not possible to do this in the gui tools because they do not allow you to parameterize WebFocus keywords such as HIGHEST/LOWEST or the values that you pass them.

You need to manually edit the code so that it looks as follows. However make sure that you do all of your styling for the output first as the code will not open in the painter or layout tools afterwards.



TABLE FILE CAR
PRINT

MODEL
RANKED AS 'RANK' BY
&TB.(,).Top/Bottom.
&TN.(<1,1>,<2,2>,<3,3>,<4,4>,<5,5>,<6,6>,
<7,7>,<8,8>,<9,9>,<10,10>,<11,11>,<12,12>,
<13,13>,<14,14>,<15,15>).Number.

DEALER_COST
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END

Regards

JG

This message has been edited. Last edited by: <Mabel>,
 
Posts: 943 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
PT
Member
Posted Hide Post
It doesn't allow me to save or execute following code.

It shows error in &TN variable
&TN.(<1,1>,<2,2>,<3,3>,<4,4>,<5,5>,
<6,6>,<7,7>,<8,8>,<9,9>,<10,10>,<11,11>,<12,12>,
<13,13>,<14,14&g t;,<15,15>Wink.Number.


Can you please revert back

Pranali

This message has been edited. Last edited by: <Mabel>,
 
Posts: 3 | Location: Pune | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
Pranali, I suspect that you tried to paste the code into the source view of the painter. This will generate exactly the error you describe when you try to save it.

The way to do it is to style your basic report, close the painter and then use the edit in text editor option and paste it that way.

Also make sure that the tags have not been substituted when you paste, sometimes when copying or pasting from HTML the GT and LT signs get substituted by the HTML code values.

JG
 
Posts: 943 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hi Pranali

Let's try

(MRE env)
TABLE FILE filename
PRINT fieldname
RANKED BY
&LH.(LOWEST,HIGHEST).LOWEST or HIGHEST.
&RANK.(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15).RANK.
ranking fieldname
END

(NOT MRE env)
EX rankprog LOWEST,10

rankprog is

-DEFAULT &1=LOWEST,&2=15
TABLE FILE filename
PRINT fieldname
RANKED BY &1 &2 ranking fieldname
END

Good Luck!
 
Posts: 7 | Location: Japan | Registered: February 15, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Dynamic Ranking

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.