SALES HEADER FORM FIELDS NON EDITABLE

guptavarunmca
Member Posts: 95
DEAR ALL
I WANT TO MAKE MY SALES HEADER FORM NON EDITABLE
BUT I NEED POSTING DATE AND DOCUMENT NO. EDITABLE.
IS THERE ANY POSSIBILITY TO DO THIS THROUGH CODES.
I WANT TO MAKE MY SALES HEADER FORM NON EDITABLE
BUT I NEED POSTING DATE AND DOCUMENT NO. EDITABLE.
IS THERE ANY POSSIBILITY TO DO THIS THROUGH CODES.
With Best Regards:
VARUN K. GUPTA
VARUN K. GUPTA
0
Comments
-
Yes, you can. But the question is why?
You can do it on the onaftergetrecord trigger and do something like:
IF "your condition"=TRUE then BEGIN
CURRFORM."Sell-to Customer No.".EDITABLE(FALSE);
<all other fields>
..
..
END ELSE BEGIN
CURRFORM."Sell-to Customer No.".EDITABLE(TRUE);
<all other fields>
..
..
END;
But why are you doing this? Are there certain users that cannot change a Sales Order?
Then it might be easier to revoke their right to change the table through the security settings.
Also if it is only a certain group of people then I would revoke them access to the regular Sales Header Form.
I would create a copy of the Sales Header form and then set all the fields to non editable and make that new form available to the restricted users.
Doing it through code is just a lot of coding, since there are quite a few fields on the Sales Header.
Hope this helps,
Regards,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Can you explain it in detail exactly what you want to do?0
-
guptavarunmca wrote:DEAR ALL
I WANT TO MAKE MY SALES HEADER FORM NON EDITABLE
BUT I NEED POSTING DATE AND DOCUMENT NO. EDITABLE.
IS THERE ANY POSSIBILITY TO DO THIS THROUGH CODES.
Don't use capital letters while posting. It amounts to shouting....CA Sandeep Singla
http://ssdynamics.co.in0 -
Set the form to non-editable & on the fields you want to change
OnActivate()
CurrForm.EDITABLE(TRUE);
OnDeactivate()
CurrForm.EDITABLE(FALSE);0 -
Take a look at 2-Controlware's Field Security module. With this module you can secure fields and sets of records. Ask your partner about it or use Google.0
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