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

2 comments:

  1. Great post, thanks, i've been looking for this solution for a couple of hours yesterday, tried out many methods which I was hoping will call the 'display option' but none of them did.
    Your solution just works perfectly!!! :))))))

    Thanks.

    ReplyDelete
  2. Works perfectly in AX 2012. Thx.

    ReplyDelete