display only required information in form

speedyken
Member Posts: 15
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
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
-
you can start out with overloading the active method on the datasource.
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!Vanya Kashperuk,
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/37145820 -
Thank you,
It works. I just had to overload the active method and put in the properties of the groups the AutoDeclaration-field to yes.
Greets0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions