Page 1 of 1

[RPG]BackColor of table row

Posted: Wed Aug 16, 2017 12:42 pm
by MegumiSawada
Hi,

Setting BackColor: Red to table rows as default and setting BackColor:White to a row when row value is changed, it works as expected. The backcolor of the target row will be turned white.
image1.PNG
image1.PNG (50.42 KiB) Viewed 3856 times

Code: Select all

CALLP      LRNG_ASSIGNSTRTOPROP
           ('RED' : /FORM.FIELDS.LIST1.ROW%' +
              %CHAR(LOCAL.INDEX) + '.BACKCOLOR')
and

Code: Select all

CALLP      LRNG_ASSIGNSTRTOPROP
           ('WHITE' : /FORM.FIELDS.LIST1.ROW%' +
              %CHAR(LOCAL.INDEX) + '.BACKCOLOR')
However, when setting BackColor of some content of the row(not the whole columns of the row) and setting BackColor:White to the row when row value is changed, the colored BackColor won't be turned white.
image2.PNG
image2.PNG (60.75 KiB) Viewed 3856 times

Code: Select all

CALLP      LRNG_ASSIGNSTRTOPROP
           ('RED' : /FORM.FIELDS.LIST1.ROW%' +
              %CHAR(LOCAL.INDEX) + '.NO.BACKCOLOR')
and

Code: Select all

CALLP      LRNG_ASSIGNSTRTOPROP
           ('WHITE' : /FORM.FIELDS.LIST1.ROW%' +
              %CHAR(LOCAL.INDEX) + '.BACKCOLOR')
Is this an intended behavior?
Do we need to set BackColor:White to each content if you've set BackColor to some contents, not the whole contents of the row?

Best Regards,
Megumi Sawada

Re: [RPG]BackColor of table row

Posted: Wed Aug 16, 2017 2:09 pm
by jasonzhou
Hi Megumi,

Yes, it's an expected behaviour.

You need to set BackColor:White for each content to change its background color.

The following code will change the background color to white

Code: Select all

CALLP      LRNG_ASSIGNSTRTOPROP
           ('WHITE' : /FORM.FIELDS.LIST1.ROW%' +
              %CHAR(LOCAL.INDEX) + '.NO.BACKCOLOR')

Thanks
Jason

Re: [RPG]BackColor of table row

Posted: Wed Aug 16, 2017 2:13 pm
by MegumiSawada
Hi Jason,

Thank you!

Best Regards,
Megumi Sawada