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]Conditional Hyperlink for Excel Output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Conditional Hyperlink for Excel Output
 Login/Join
 
Member
posted
Does anybody know how to define condition on a hyperlink depending on output?
My report is defined to have multiple output formats: html, active html and excel.
  
ON TABLE PCHOLD FORMAT &WFFMT.(<HTML Web Document (HTML),HTML>,<HTML Active Report (AHTML),AHTML>,<Excel XLSX (XLSX),XLSX>).Select type of display output.
  

I have defined hyperlinks in that report but I only want to show them in html outputs.
I want to use WHEN condition.
I have tried following approach but the syntax is wrong, I am not sure what the correct one is:
  
TYPE=DATA,
     COLUMN=VF_APP_SEQ_EVENT_PROD.EVENT_COMMENT.EVT_COMMENT,
     WHEN=VF_APP_SEQ_EVENT_PROD.EVENT_COMMENT.EVT_COMMENT EQ 'View Comments' AND  &WFFMT NE XLSX,
     DRILLMENUITEM='Event Comments',
          FOCEXEC=IBFS:/WFC/Repository/Liquent_Reports/Ad-hoc/Application_Event_Sequence_Ad_Hoc/commentDrilldown.fex( \
     ENTITY_ID=VF_APP_SEQ_EVENT_PROD.VF_APP_SEQ_EVENT_PROD.EVENT_ID \
     ),
          TARGET='_blank',


Thank you whoever responds.

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 13 | Registered: September 15, 2014Report This Post
Master
posted Hide Post
Perhaps you can use dialogue manager goto logic to run specific blocks
Of code. Or consider use of htmltable and !IBI.fil .

Good luck


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Guru
posted Hide Post
-DEFAULTH &WFFMT='HTML';
-SET &EXCELCOMMENT=IF &WFFMT EQ 'HTML' THEN '' ELSE '-*';
TABLE FILE CAR
SUM SALES SEATS
BY COUNTRY BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY,
&EXCELCOMMENT.EVAL URL='http://www.google.com',
$
ENDSTYLE
END  


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Virtuoso
posted Hide Post
quote:
WHEN=VF_APP_SEQ_EVENT_PROD.EVENT_COMMENT.EVT_COMMENT EQ 'View Comments' AND &WFFMT NE XLSX


First off, the syntax of the WHEN expression follows that of DEFINE or COMPUTE expressions, so (assuming WHEN will accept a compound condition), you'd need to put &WFFMT and XLSX in quotes. As it stands, both would be interpreted as referring to columns of the report.

If that still fails, you need add a COMPUTE, NOPRINT column, and reference that in the WHEN phrase:

COMPUTE DRILL_IND/I1=VF_APP_SEQ_EVENT_PROD.EVENT_COMMENT.EVT_COMMENT EQ 'View Comments' AND &WFFMT.QUOTEDSTRING NE 'XLSX'; NOPRINT

...

TYPE=DATA,
COLUMN=VF_APP_SEQ_EVENT_PROD.EVENT_COMMENT.EVT_COMMENT,
WHEN=DRILL_IND NE 0,
...,$


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
The when command will allow for only one condition. You will need to do some thing like this

  type=data,
focexec = drill,
when=fieldA eq 'html',
$
Type=data,
focexec=drill,
when=fieldA NE 'html',
$


I'm typing on my pjone, so please forgive the shorthand.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report 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]Conditional Hyperlink for Excel Output

Copyright © 1996-2020 Information Builders