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.
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 appreciatedThis message has been edited. Last edited by: Tamra,
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,
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
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
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
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, 2009