Skip to Content
0
Jun 16, 2020 at 01:37 PM

odd behaviour of SetRowBackColor in Batch Number selection Screen

96 Views Last edit Jun 16, 2020 at 01:39 PM 2 rev

I am able to color a matrix row using this code:

SAPbouiCOM.Matrix _mBatches = (SAPbouiCOM.Matrix)oForm.Items.Item("4").Specific; _mBatches.CommonSetting.SetRowBackColor(1, 65280);

Here is the problem:

This code works so long as I dont change the selection in the "Rows From Documents".

But once I change the selection in the rows from documents and the available batches matrix loads new data, I can run the code to change the color, but the color does not change on the row. No exception errors occur. In fact, I can debug.writeline the color of the row and it shows the rows backcolor has changed programatically. But the color doesnt change on the screen.

Any one have any ideas?

Attachments