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     [CLOSED]Drill down based on the conditional styling

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Drill down based on the conditional styling
 Login/Join
 
Gold member
posted
Hi Everyone,

I am trying to create a report in AHTML with three conditions each been indicated in different(<=5000, >5000 & >10000) and drill down from the last condition. But the drill down is getting applied for all the values. Below is the sample code for reference.

Please suggest on how to get the value drill down only for a particular condition.

 
TABLE FILE CAR 
PRINT CAR
RETAIL_COST
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
DEFMACRO=Condition_1, MACTYPE=RULE, WHEN=N2 LE 5000, $
DEFMACRO=Condition_2, MACTYPE=RULE, WHEN=N2 GT 5000, $
DEFMACRO=Condition_3, MACTYPE=RULE, WHEN=N2 GT 10000, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_1, FONT='Trebuchet MS', COLOR=RGB(25 155 25), $
TYPE=DATA, COLUMN=N2, MACRO=Condition_2, FONT='Trebuchet MS', COLOR=RGB(255 255 0), $
TYPE=DATA, COLUMN=N2, MACRO=Condition_3, FONT='Trebuchet MS', COLOR=RGB(255 0 0), DRILLMENUITEM='Update DATA', FOCEXEC=sample.fex(CAR=CAR),$
ENDSTYLE
END [QUOTE]  [/QUOTE] 

sample.fex
----------

TABLE FILE CAR
PRINT CAR COUNTRY
WHERE CAR EQ &CAR
END

 

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


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Report This Post
Guru
posted Hide Post
Very weird.

It works fine on HTML output.


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Hi koti,

It work properly in WF77, not in WF8

Maybe a bug for TechSupport...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
This code works in v8.0.08.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Perhaps, this variation, without macros, will work:

TABLE FILE CAR
PRINT
CAR
RETAIL_COST
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=RETAIL_COST, FONT='Trebuchet MS', COLOR=RGB(25 155 25), WHEN=RETAIL_COST LE 5000, $
TYPE=DATA, COLUMN=RETAIL_COST, FONT='Trebuchet MS', COLOR=RGB(255 255 0), WHEN=RETAIL_COST GT 5000, $
TYPE=DATA, COLUMN=RETAIL_COST, FONT='Trebuchet MS', COLOR=RGB(255 0 0), WHEN=RETAIL_COST GT 10000,
    DRILLMENUITEM='Update DATA', FOCEXEC=sample.fex(CAR=CAR), $
ENDSTYLE
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
I also got that . If you notice carefully the drill down is getting applied for all the values where as I need it only for the values greater than 10,000 either by using drillmenuitem or target blank.


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Report This Post
Expert
posted Hide Post
In v8.0.08 it only has the drilldown for values greater than 10,000.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Not in WF-8.1.0.5 unfortunately


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Master
posted Hide Post
When doing conditional styling, I like to COMPUTE a 'flag' field, and use the flag in the StyleSheet.

Something like...
COMPUTE MYFLAG/A1 = IF RETAIL_COST LT 5000 THEN 'A' ELSE
                     IF RETAIL_COST LT 10000 THEN 'B' ELSE 'C';  

...then in the StyleSheet something like...
...WHEN=FLAG EQ 'A'...
...WHEN=FLAG EQ 'B'...
...WHEN=FLAG EQ 'C'...
 
Posts: 822 | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
Thanks David, your logic is working fine in WF 8104 for AHTML. Thanks again!


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Report 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     [CLOSED]Drill down based on the conditional styling

Copyright © 1996-2020 Information Builders