Focal Point
[SOLVED] Green Checkmark Generates as Black on Portal

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1757063396

May 08, 2020, 04:20 PM
AMC2
[SOLVED] Green Checkmark Generates as Black on Portal
I am generating a green checkmark in a report with this function '&|#x2714'. After integrating the report onto a portal page, the checkmark generates as a black color. Has anyone experienced anything similar....something automatically generating in a different color on the portal or has any ideas? I want it to generate as green on the portal as well.

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


WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
May 09, 2020, 07:57 AM
BabakNYC
Could you show us your code using a sample file so we can try it?


WebFOCUS 8206, Unix, Windows
May 10, 2020, 03:04 PM
dbeagan
Some of the unicode characters display differently in each of the browswers. The x2713 character seems more consistent, color can be styled with css:
TABLE FILE systable
PRINT NAME NOPRINT
COMPUTE
x2713/A80 = '<div style=color:limegreen;font-weight:900;>&|#x2713</div>'; 
WHERE READLIMIT IS 1
END



WF 8.2.06
Win10 / IE11
AHTML EXL2K PDF
May 11, 2020, 03:08 PM
Hallway
quote:
function '&|#x2714'.

First of all, that is not a function. It is a unicode character in base 16 for a heavy black checkmark.

If you want the unicode character for the green checkmark, it is actually two amper characters together that create this ✔️ = &#x2714;&#xfe0f;

Since IBI will look at those as amper variables, you need to escape the amper with the pipe character like this &|#x2714;&|#xfe0f;

Check out this site to see the different check marks available: https://www.amp-what.com/unicode/search/check

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


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
May 11, 2020, 09:03 PM
AMC2
Thanks for your posts dbeagan and Hallway. Here is the essence of the code using the sample CAR file with the two amper unicode characters:

  
TABLE FILE CAR
SUM COMPUTE CHK/A10 = IF SEATS EQ 2 THEN '&|#x2714&|#xfe0f' ELSE ''; AS ''
ACROSS COUNTRY AS ''
BY CAR AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET AUTOFIT ON
ON TABLE SET TITLELINE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
END





WebFOCUS 8.2.06
SQL Server
HTML, PDF, Excel, etc
May 12, 2020, 08:37 AM
Doug
Format the font color for that DATA COLUMN to GREEN.
May 12, 2020, 09:28 AM
dbeagan
Yea Doug, that works for me:
 TABLE FILE ibisamp/car
     SUM SEATS                                             AS ''
 COMPUTE CHK/A20 = IF SEATS EQ 2 THEN '&|#x2714;&|#xfe0f;'
                                 ELSE ' ';                 AS ''
  ACROSS COUNTRY                                           AS ''
      BY CAR                                               AS ''
 ON TABLE SET NODATA ' '
 ON TABLE SET PAGE-NUM NOLEAD
 ON TABLE SET STYLE *
 INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty, $
 TYPE=DATA, ACROSSCOLUMN=CHK, COLOR=GREEN, STYLE=BOLD, $
 ENDSTYLE
 END



WF 8.2.06
Win10 / IE11
AHTML EXL2K PDF