cancel
Showing results for 
Search instead for 
Did you mean: 

Change text color in PDF dynamically

0 Kudos

Hey

I have a table in my form in sap pdf editor in which I want to change the font color (not background) depending on the value of a certain column in this table.

That is, I have lets say columns F0, F1, ..., Fk and a column F(k+1) of type CHAR11 which contains a color. Examples: "243,222,125" and etc (9 digits and 2 commas, CHAR11).

I want to change the color of each row so it will be the value in the F(k+1) field.

How I try to do it:

In the body row of the table In indexChange I insert the following code:

$.FieldName.fontColor=$.Color

(Color is the name of the column F(k+1))

But I get an error of "Argument mismatch"

Why? How can i fix it?

Edit: I've tried to change the code to:

$.FieldName.fontColor=$.COLOR.rawValue

or .value

Both still return "Argument mismatch in property or function argument"

Accepted Solutions (0)

Answers (0)