I need to change the grid row’s color if certain conditions are met. The usual solution for this is to override the formdatasource method displayoption(). However, the form is listpage type and the customization works only in the interaction class (AX 2012). How can i do this task in AX2012? I am trying to have the code below to override the displayoption method, but nothing happen.
Thanks for the reply, but that lines of code will work inside the displayoption method of the form datasource. This is the problem I am facing now, I cannot override the displayoption method of the form since the form is a listpage. By the way, I’m working with AX 2012.
try to change the DisplayTarget property if you are not using the object in Enterprise portal, so that it will allow you to override the methods, so that you can add your own code.
I use the following code on standard form, I suppose it works on listpage forms, Just add a displayOption method on your form datasource, it changes line color if some conditions are met.
I am not able to add methods in Standard Forms Datasource, but I tried this on Query datasource, which is use for that form. But it is not working. Do you have any suggestion, please let me know.
I’m sorry but I don’t know yet how to or if it’s possible to use displayOption() method on form Query datasource, I had a look to StackOverflow forum and found nothing