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,
WebFOCUS 7703/7705/8105m/8201m/8202m
August 25, 2017, 02:52 PM
MartinY
Are you sure that the image path is still exactly the same ?
And : COL should be COL1
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
August 25, 2017, 03:03 PM
BabakNYC
Is there an error or you just don't see the image?
WebFOCUS 8206, Unix, Windows
August 25, 2017, 03:05 PM
WF1326
quote:
Originally posted by MartinY: Are you sure that the image path is still exactly the same ?
And : COL should be COL1
Yes. The image is still in the same path. I corrected the column name to COL1
WebFOCUS 7703/7705/8105m/8201m/8202m
August 25, 2017, 03:06 PM
WF1326
quote:
Originally posted by BabakNYC: Is there an error or you just don't see the image?
I get the black box with cross mark inside it.
WebFOCUS 7703/7705/8105m/8201m/8202m
August 25, 2017, 03:11 PM
MartinY
Does the folder / image is published ?
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
August 25, 2017, 03:26 PM
WF1326
quote:
Originally posted by MartinY: Does the folder / image is published ?
Yes
WebFOCUS 7703/7705/8105m/8201m/8202m
August 25, 2017, 03:32 PM
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.
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
August 25, 2017, 03:54 PM
WF1326
quote:
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.
WebFOCUS 7703/7705/8105m/8201m/8202m
August 25, 2017, 04:21 PM
BabakNYC
I just tried the same thing and got the black box with the x in the middle. Have you opened a case with tech support?
If you figure out how to fix this please post the solution.
WebFOCUS 8206, Unix, Windows
August 29, 2017, 08:08 AM
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.
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
August 29, 2017, 11:23 AM
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 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.
That's pretty cool. I would like to have the dot in green. How can i change the color?
WebFOCUS 7703/7705/8105m/8201m/8202m
August 29, 2017, 07:10 PM
WF1326
quote:
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.
WebFOCUS 7703/7705/8105m/8201m/8202m
August 30, 2017, 11:13 AM
Hallway
quote:
Originally posted by WF1326:
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,