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.
DEFINE FILE CAR COL1/A255 = IF SEATS EQ 2 THEN '&BLACK_IMG' ELSE ''; END
TABLE FILE CAR PRINT SEATS COL1 BY CAR ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET ASNAMES ON ON TABLE PCHOLD FORMAT HTML ON TABLE SET CACHELINES ON ON TABLE SET BYDISPLAY ON ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * ENDSTYLE END
Thanks in AdvanceThis message has been edited. Last edited by: WF1326,
Does the Content folder (with the images) is at least "Permitted" to "Run" as per group security of the user ?
I have test on my side and if the Content folder is not Permitted to Run for the security group for which the user is from, the image is not displayed.
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, 2013
Originally posted by MartinY: Does the Content folder (with the images) is at least "Permitted" to "Run" as per group security of the user ?
I have test on my side and if the Content folder is not Permitted to Run for the security group for which the user is from, the image is not displayed.
Permission to run is already set, and i am an administrator.
Just tried this in 8.2.01M and it functions correctly.
Check the properties for the various Content components to ensure that you have correct spelling / case etc. Easily changed when migrating / CopyPasting.
Also the "';" shown on a separate line in your example is incorrect syntax, so that needs checking as well.
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Instead of using pictures, for simple shape I prefer to use an html entity and just insert it's hex value (Credit to @CoolGuy for teaching me this). That way you can color them, size them, and not worry about referencing an image file that might get deleted or changed. If you change out your SET to the following, it will work.
Originally posted by Hallway: Instead of using pictures, for simple shape I prefer to use an html entity and just insert it's hex value (Credit to @CoolGuy for teaching me this). That way you can color them, size them, and not worry about referencing an image file that might get deleted or changed. If you change out your SET to the following, it will work.
Originally posted by Tony A: Just tried this in 8.2.01M and it functions correctly.
Check the properties for the various Content components to ensure that you have correct spelling / case etc. Easily changed when migrating / CopyPasting.
Also the "';" shown on a separate line in your example is incorrect syntax, so that needs checking as well.
T
I checked the file names and syntax. All looks good. Still could not generate the image.
That's pretty cool. I would like to have the dot in green. How can i change the color?
I had to change the entity id to a different circle because that one apparently wouldn't change color.
So, try this code with the new entity and additional conditional formatting:
-SET &GREEN_CIR='<span class="GreenDot" style="color: green; font-size:100%;">&|#11044;</span>';
-SET &YELLOW_CIR='<span class="YellowDot" style="color: yellow; font-size:100%;">&|#11044;</span>';
-SET &RED_CIR='<span class="RedDot" style="color: red; font-size:100%;">&|#11044;</span>';
DEFINE FILE CAR
COL1/A255 = IF SEATS EQ 2 THEN '&RED_CIR' ELSE IF SEATS EQ 4 THEN '&YELLOW_CIR' ELSE IF SEATS EQ 5 THEN '&GREEN_CIR' ELSE '';
END
TABLE FILE CAR
PRINT
SEATS
COL1 AS ''
BY CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET CACHELINES ON
ON TABLE SET BYDISPLAY ON
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
ENDSTYLE
END
Or you can choose any custom color by using the appropriate color code: http://htmlcolorcodes.comThis message has been edited. Last edited by: Hallway,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015