DNG Artifact Table and Cell Border Colors Not Published Correctly by RPE
I have a table embedded in a DNG artifact that was created by DNG. (In a DNG artifact: Insert > Table)
CRRPE3156E The color from 255, is not valid.For input string: "255,"CRRPE3156E The color from 255) is not valid.For input string: "255)"CRRPE3156E The color from 153, is not valid.For input string: "153,"CRRPE3156E The color from 0) is not valid.For input string: "0)"
One answer
Hi Bob,
Could you share the XML please? https://rpeactual.com/2013/11/22/how-to-get-the-xml-data-used-by-rpe/
Thanks,
Kumar
Comments
I could replicate the issue for border style. Try adding the below code in the text element in javascript tab with XHMTL input/output options checked.
'<table> <tr> <td style="border: rgb(211, 211, 211);"> <span>1</span> </td> </tr></table>'
However, it works for background color
'<table> <tr> <td style="background-color: rgb(211, 211, 211);"> <span>1</span> </td> </tr></table>'
This is a defect in RPE. Please create a defect.
Work around would be to use #XXXXXX (hex).
Thanks,
Kumar
Kumar, thank you for getting to the bottom of this issue.
Hi Bob,
Even if we set Border color to hex in DNG, the REST API will return RGB value, which is not supported by RPE for cell border color.
The workaround in RPE is to use Script Expression - search for RGB value and replace it with hex. You can use JavaScript for RGB to hex conversion.
Comments
Donald Nong
Sep 04 '17, 12:47 a.m.What if you use the hexadecimal format, such as #CC9900?
Bob 3
Sep 04 '17, 1:48 a.m.Donald, thanks for your response.