Hi,
I have created a table with a field "DocumentType".
that field can contain the number 0 -> 6, depending on witch type of data there is stored.
In the table there are in total 60different fields but only some of them are used in 1 record.
I have put the fields in groups depending on the documentype that is filled in and the fields that are used on each documentType.
I have build a form with 2tabpages. One tabpage called "Overview" with data in a grid that is filled in on every reccord.
The second tabpage "General" have data depending on the documenttype the record has and the fields that are field in for that specific record.
No, my question is: witch method and functions can I use so that I can read out the documenttype in the grid on tabpage 1 and only show on the 2nd tabpage the relevant records (relevant field group)
Greetz
0
Comments
hide the field groups on the General Tab depending on the DocType value in this method after super();
You should also probably consider adding the same code to the modified of the DocType field on the datasource.
Good luck!
My blog - http://kashperuk.blogspot.com
MorphX IT in Russian - http://www.lulu.com/content/723888
Inside Dynamics AX 4.0 in Russian - http://www.ozon.ru/context/detail/id/3714582
It works. I just had to overload the active method and put in the properties of the groups the AutoDeclaration-field to yes.
Greets