[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: 259
Joined: Tue Feb 19, 2013 1:18 am

[RPG]BackColor of table row

Post by MegumiSawada » Tue Aug 15, 2017 9:42 pm

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 1234 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 1234 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: 116
Joined: Tue Jan 10, 2017 11:26 pm

Re: [RPG]BackColor of table row

Post by jasonzhou » Tue Aug 15, 2017 11:09 pm

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: 259
Joined: Tue Feb 19, 2013 1:18 am

Re: [RPG]BackColor of table row

Post by MegumiSawada » Tue Aug 15, 2017 11:13 pm

Hi Jason,

Thank you!

Best Regards,
Megumi Sawada

Post Reply