7/31/2016 0 Comments Dynamics Ax Winapi Open FileHow to change grid row color in listpage form in Dynamics Ax 2. I need to change the grid row’s color in ax 2. The usual solution for this is to override the formdatasource method displayoption(). However, the form is listpage type and Data. Source method can not be overiden. Customization works only in the interaction class for listpages. I try to do this modification in to the interaction class but i couldn’t . After some search i find a solution. Firts export listpage form to xpo file and change form’s Form. Template property to the none. Now you can override the displayoption() method with this code. Option(Common _record, Form. I don’t know if that’s a good way to check if the process has finished writing the file, because the size could be greater than 0, even if the process hasn’t finished writing (for example when it is appending information. Microsoft Dynamics AX 2012 – File Exchange (Export) using Data Import Export Framework (DIXF) Purpose. This post basically addresses how to debug code in Visual studio. Most of code running on AOS runs in CIL environment, so it cannot be debugg in Microsoft Dynamics AX Debugger. You might have confused/surprised why ax debugger.
Row. Display. Option _options). Green(0, 2. 55, 0). Orange(2. 55, 1. 28, 6. Light. Green(6. 4, 1. White(2. 55, 2. 55, 2. FRTImport. Table import. Table. import. Table = _record. Table. Status == FRTImport. Status: :Pre. Invoice). Color(Win. API: :RGB2int(#Green)). Color(Win. API: :RGB2int(#White)). Table. Status == FRTImport. Status: :Open. Invoice). Color(Win. API: :RGB2int(#Orange)). Color(Win. API: :RGB2int(#Light. Green)). super(_record, _options). Export new form to another. В xpo file. Open each xpo file and find displayoption() method from second xpo file. Copy and paste below code to the first xpo file between METHODS and ENDMETHODS branches. SOURCE #display. Option. Option(Common _record, Form. Row. Display. Option _options). Dark. Gray(8. 0, 8. Light. Gray(2. 00, 2. Light. Gray. 2(2. White(2. 55, 2. 55, 2. FRTImport. Table import. Table. # import. Table = _record. data(). Table. Status == FRTImport. Status: :Pre. Invoice). Color(Win. API: :RGB2int(#Dark. Gray)). # _options. Color(Win. API: :RGB2int(#White)). Table. Status == FRTImport. Status: :Open. Invoice). Color(Win. API: :RGB2int(#Light. Gray)). # _options. Color(Win. API: :RGB2int(#Light. Gray. 2)). # super(_record, _options). Save the first xpo and import to the ax. Open your listpage form now you see the colors. This is not a proper solution but i couldn’t find any other if you do let me know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2017
Categories |