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] Link Image to a dynamic URL

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Link Image to a dynamic URL
 Login/Join
 
Gold member
posted
I am working on a report which is is in various output formats. I have one column in this report which has an image and this image is static one. However, I have to open a dynamic URL(a column in the table) after the user clicks on this image and open it accordingly.
This works perfectly fine for HTML output but does not work for PDF output.
Any help would be really appreciated

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


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Platinum Member
posted Hide Post
please try this

TABLE FILE GGSALES
SUM
UNITS
BUDUNITS

BY REGION BY CITY
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N1, URL='http://www.google.com', COLOR=RED, $
END


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
 
Posts: 186 | Location: INDIA | Registered: July 11, 2013Report This Post
Gold member
posted Hide Post
Thank you for your reply Neelima!
In the above code, the URL is static but my URL is coming from a column and is dynamic. The image of URL is static.
This works for me too.
Also the column which I am talking about has image URL in it and not text.

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


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Platinum Member
posted Hide Post
Use when condition in your code. That will be a conditional drilldown and styling.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Gold member
posted Hide Post
Hello Avinash,

Can you please give me an example.

Thank you,
Prajakta


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Platinum Member
posted Hide Post
SET BYDISPLAY=ON

TABLE FILE CAR
SUM
SALES
COMPUTE CONDITION1/A10 =
IF COUNTRY EQ 'JAPAN' THEN '1'
ELSE IF MODEL EQ 'TR7' THEN '2'
ELSE '3'; NOPRINT

BY COUNTRY
BY MODEL

ON TABLE SET STYLE *
TYPE=DATA,COLUMN=N1, URL='http://www.google.com', WHEN=CONDITION1 EQ '1', $
TYPE=DATA,COLUMN=N1, URL='http://www.gmail.com', WHEN=CONDITION1 EQ '2', $
ENDSTYLE
END


Hoping this will work..


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Platinum Member
posted Hide Post
Good Avi..


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
 
Posts: 186 | Location: INDIA | Registered: July 11, 2013Report This Post
Platinum Member
posted Hide Post
Hi

This is an example of a dynamic URL from a field, in this case a define field but it could be also a DB field which contains a URL. The drill is from the image column:

 

DEFINE FILE CAR
IMG1/A200='<img src="http://www.informationbuilders.com/sites/all/themes/zurb6/icons/ib_logo.svg" height="42" width="42"> ';
DYNLINK/A100=IF COUNTRY EQ 'JAPAN' THEN 'http://www.google.com' ELSE 'http://www.msn.com';
END
TABLE FILE CAR
SUM
MAX.IMG1
CAR.BODY.SALES


BY  CAR.ORIGIN.COUNTRY
BY  CAR.ORIGIN.DYNLINK NOPRINT

WHERE COUNTRY EQ 'JAPAN' OR 'ITALY'

ON TABLE NOTOTAL
ON TABLE SET STYLE *
 TYPE=DATA,
     COLUMN=P2,
      URL=(DYNLINK),
          TARGET='_blank',
$
ENDSTYLE
END


 


Yours,
Eran
SRL Products

http://www.srl.co.il

 
Posts: 97 | Location: Tel Aviv, Israel | Registered: November 20, 2005Report This Post
Platinum Member
posted Hide Post
Hi

Regarding PDF, it is possible to show an image within a column, my image was saved in baseapp in the Server's APP PATH, however I didn't succeed to define the drill to work from the image however the drill down to a dynamic URL works correctly from a regular field:

 
DEFINE FILE CAR
DUMMY1/A100='';
DYNLINK/A100=IF COUNTRY EQ 'JAPAN' THEN 'http://www.google.com' ELSE 'http://www.msn.com';
END
TABLE FILE CAR
SUM

CAR.BODY.SALES

BY DUMMY1 AS 'image'
BY  CAR.ORIGIN.COUNTRY
BY  CAR.ORIGIN.DYNLINK NOPRINT

WHERE COUNTRY EQ 'JAPAN' OR 'ITALY'
ON TABLE PCHOLD FORMAT PDF
ON TABLE NOTOTAL
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=P1,IMAGE=pdf.jpg,$
TYPE=DATA,COLUMN=P2, URL=(DYNLINK),TARGET=_blank,$

ENDSTYLE
END



 


Yours,
Eran
SRL Products

http://www.srl.co.il

 
Posts: 97 | Location: Tel Aviv, Israel | Registered: November 20, 2005Report This Post
Gold member
posted Hide Post
I also tried giving an URL for the image. If the image comes then the URL does not work. also if I give a URL to the image then the image does not appear instead the Image link and the URL appears on it. The URL does work perfectly fine but then the image does not appear at all


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Guru
posted Hide Post
quote:
Prajakta

Prajakta,

Are you using WebFOCUS 769 ? I am just confirming since this is an old version. Please update your profile if you are using a different version. That will make it easier to help you out.

I am checking into this. Adding an image in a PDF is possible but adding a drilldown on the image does not seem to be available.

Searching in WebFOCUS 8105 the only way to accomplish this is to use a BLOB field in a data table such as MSSSQL or Oracle. This is supported in WebFOCUS 769 as well.


Thank your for participating in the Focal Point Forum,

Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report 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] Link Image to a dynamic URL

Copyright © 1996-2020 Information Builders