Disable A column of lines On Basis of Header

seema
Member Posts: 17
Hi Everybody,
I want to disable a column for a particular Blanket order only when an option field at Header of that order will have a particular value. How can I do this. Pls suggest.
Thanks in advance,
Seema
I want to disable a column for a particular Blanket order only when an option field at Header of that order will have a particular value. How can I do this. Pls suggest.
Thanks in advance,
Seema
0
Comments
-
Hi Seema,
I hope i understand you correctly.
If you want to disable a column in the subform, you can do it in the OnAfterGetRecord-Trigger of the Subform. There you can do a GET of the right Haeder-Record and set the Column visible = TRUE or FALSE as the value of your option-field says.
Hope this helps.
Regards,
Frank0 -
On after get record
IF Status = Status::Released THEN
CurrForm."Order Date".EDITABLE(FALSE)
ELSE
CurrForm."Order Date".EDITABLE(TRUE);Ajay Jain
UK0 -
Try any of the following Options on the sales line subform:
OnAfterGetRecord
1.
SalesHeader.GET("Document Type","Document No.");
CurrForm."No.".EDITABLE (SalesHeader.Status=SalesHeader.Status::Open);
======================================
2.
SalesHeader.GET("Document Type","Document No.");
CASE SalesHeader.Status OF
SalesHeader.Status::Open :
CurrForm."No.".EDITABLE(TRUE);
ELSE
CurrForm."No.".EDITABLE(FALSE);
END;
you could also use the CASE option when there are more than 1 options
=================================
3. If the Options are More than 2 then Try
SalesHeader.GET("Document Type","Document No.");
IF SalesHeader.TestField IN [SalesHeader.TestField::Value1, SalesHeader.TestField::Value2,...] THEN
CurrForm."No.".EDITABLE(FALSE)
ELSE
CurrForm."No.".EDITABLE(TRUE);Sunday, Godwin G0 -
Hi Everybody,
Thanks for your solutions. But you know with these solutions, the column of that subform will get disabled for every order Whereas I need to do it only for that particular order whose status is "Closed" or as soon as the status is changed to closed.
Pls tell me if there is some solution.
Thanks and Regards,
Seema0 -
Hi Friends,
Hey it got solved.
I created two functions in Subform to disable and enable the line and By calling these functions from Header - onAfterGetRecords on basis of status.
Anywayz Thanx alot,
Seema Gupta0
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