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] REG:PDF Image and APPROOT/EDAPATH

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] REG:PDF Image and APPROOT/EDAPATH
 Login/Join
 
Platinum Member
posted
Hi,

My report displays in HTML/PDF/AHTML/EXCEL formats.
I use style sheet to display images in PDF out format.
But i am not sure from where the images is coming as i have several application directories with images(same image name) over the course of development by different developers.

Here is my define field which i use:

ICON_PATH_PDF/A500V=
IF TYPE_ID IN (9001,9002,9004) THEN 'pd1.png' ELSE
IF TYPE_ID IN (48000,50000) THEN  'pd2.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'pd3.png'  ELSE
IF TYPE_ID EQ 54002 THEN 'pd4.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'pd5.png'  ELSE
'pd6.png';


I have placed the correct updated images in an application directory called
 /updated/images/ 
.
But when i give the path as
 /approot/updated/images/ 
with the images file,it doesn't work.

As per my research application fetches the images from the default APPPATH/EDAPATH ,but i dunno where it is.
How can i provide my correct path to my directory ?
Any help will be appreciated.?

This message has been edited. Last edited by: FP Mod Chuck,


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Expert
posted Hide Post
Just a note about how images are added.

PDF, images are pulled from the APP search path

IF you want to know where the image comes from on the reporting server, you can use WHENCE to find out.

IF you put your images on the reporting server in a particular APP folder, then make sure you add it to the search path with either APP PATH ... or APP PREPENDPATH or APP APPENDPATH.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi Waz,

I set my APP PATH using GUI by right clicking on the directory in which the fex is located and selected two application directory.
directory1 : where all my different synonyms are located and
directory2 : images are stored

When i run
 APP SHOWPATH 
,i can the two directories at the top one after another.

Then the Define is as below;
ICON_PATH_PDF/A500V=
IF TYPE_ID IN (9001,9002,9004) THEN 'directory2/images/pd1.png' ELSE
IF TYPE_ID IN (48000,50000) THEN  'directory2/images/pd2.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'directory2/images/pd3.png'  ELSE
IF TYPE_ID EQ 54002 THEN 'directory2/images/pd4.png' ELSE
IF TYPE_ID IN (52000,52002,52003) THEN 'directory2/images/pd5.png'  ELSE
'directory2/images/pd6.png';


Still when i run this ,images are not being displayed.
Am i doing something wrong.?


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Expert
posted Hide Post
You don't use the directory names in PDF. It will find the file in the path.

Can you post the code that adds the images ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Here is the code that add the images.
  
TYPE=DATA,COLUMN=N2,IMAGE=(ICON_PATH_PDF),SIZE=(.2 .2),$


My images are inside a sub directory under the APP PATH.When i add APP PATH using GUI,i am not able to add sub directory of an application directory.
Do i have to add sub dir also to the app into the fex.?


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Expert
posted Hide Post
For PDF don't use the directories just the file name.

WF searches the subdirectories automatically.

If there are multiple files with the same name in the subdirectories, it will take the first one found.

If that is the case, then you will probably need to use APP MAP to point to the correct directory.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] REG:PDF Image and APPROOT/EDAPATH

Copyright © 1996-2020 Information Builders