[RPG]BackColor of table row

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]BackColor of table row

Post 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 3857 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 3857 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
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: [RPG]BackColor of table row

Post 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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]BackColor of table row

Post by MegumiSawada »

Hi Jason,

Thank you!

Best Regards,
Megumi Sawada
Post Reply