Wednesday, December 29, 2010

update the display options for a specific row that you updated

Hi,

I found some useful information regarding the updation of the updated current row record from the "Dynamics AX tools and tutorials" blog.

It may be helpful to someone.

In order to update the display options for a specific row that you updated, you can use the clearDisplayOption method on the FormDataSource class.

So, after calling

yourDS_ds.reread();
yourDS_ds.refresh();

you should call

yourDS_ds.clearDisplayOption(yourDS);

This should do the trick and update the color of the row.

Regards,
/Ashlesh