Skip to Content
0

Change font color and background color in SE10

Apr 03 at 06:05 AM

53

avatar image

Dear experts,

I'm trying to change font color and background color of username text field in SE10 in onLoad event.

However, the first 2 properties (fontColor and backgroundColor) that I set do not work. It always processes the last property and skip others.

But if I create my own text field and set the same properties. It's ok.

Is there any way to set the properties properly?

Thanks

Tri

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Cristiano Hansen
Apr 03 at 12:53 PM
0

Hi Tri,

Please apply the notes from the Notes Checker and see whether the issue persists.

I recall seeing this in the past, and the issue vanished once the recommended notes were implemented.

Regards,

Cris

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Cris,

Thank you so much.

I'll do and check the results.

Regards,

Tri

0

Hi Cris,

After I've implemented all notes, the issue still persists.

Here is my system.

Regards,

Tri

0

Hi Tri,

I'll try to reproduce this in my system.

I'll need a day or 2 to have this done. I'll keep you posted.

Regards,

Cris

0

Hi Tri,

I just tested the scenario - couldn't done earlier, sorry.

I implemented all the notes from the Notes Checker and created the same script.

The control only takes the last property.

I used:

session.findById("wnd[0]/usr/subCOMMONSUBSCREEN:RDDM0001:0220/ctxtTRDYSE01CM-USERNAME").backgroundColor = "#fbd491";
session.findById("wnd[0]/usr/subCOMMONSUBSCREEN:RDDM0001:0220/ctxtTRDYSE01CM-USERNAME").fontColor = "rgb(243,51,52)";
session.findById("wnd[0]/usr/subCOMMONSUBSCREEN:RDDM0001:0220/ctxtTRDYSE01CM-USERNAME").fontWeight = session.constants.FONT_WEIGHT_BOLD;

So, the text font was presented in bold, but didn't take the background color neither the font color.

My next test was to create a text field via personas, copied the text from the control, then changed the properties. Result: all the three properties were set in the new text field.

This means that there is an issue.

Please raise an incident, so then our development support team can have a closer look.

Thanks and kind regards,

Cris

0