Skip to Content

Change font color and background color in SE10

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 03 at 12:53 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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