Permission to modify Posted Table Header Field
IrishGiri
Member Posts: 61
Hi all,
I've added a Boolean Text Box called Invoice Paid to the the header of the Purch. Invoice Header Table. Simple check box. However, when I try to exit the form after ticking the check box, I get a popup error message which reads:
Any help with this is appreciated,
Cheers,
Paul.
I've added a Boolean Text Box called Invoice Paid to the the header of the Purch. Invoice Header Table. Simple check box. However, when I try to exit the form after ticking the check box, I get a popup error message which reads:
You do not have permission to modify records in the Purch. Inv. Header Table. Contact the System Manager if you need to have your permissions changed
Any help with this is appreciated,
Cheers,
Paul.
0
Comments
-
I should add that I only want to allow the user permission to modify only this check box i.e. I don't want to allow permission for the user to modify the whole object/form.
0 -
I should add that I only want to allow the user to modify the text box i.e. I don't want to give the user permission to modify the whole form/header.
Cheers!0 -
You will need to be more specific. The error isnt comming from the checkbox since anyone can put in a new field in 4.0 Purch Inv Header and check it.0
-
With the customer license, you cannot modify some tables (like posted purchase header).
The best (safest) way is to do like Form 130:"Posted Sales Shipment". In it you have some fields enabled.
In the "Form - OnModifyRecord()"-trigger, you call a codeunit that really writes the changed field (and ONLY that field) to the DB.
In the codeunit, you also have to put a permission (with property permission) to modify the posted purchase header-table.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Ahh yes. Damn those big keys.0
-
For us I would have to modify
Codeunit 391
and on the trigger
PurchaseInvoiceHeaderEdit(PurchInvoiceHeader : Record "Purch. Inv. Header")
you would have to add..PurchInvoiceHeader2."Invoice PAID" := PurchInvoiceHeader."Invoice PAID";
Note: there are other ways of keeping track of Invoices and if they are paid. 8)0 -
Codeunit 391 is "Shipment Header - Edit" in the GB Database

If it is the same in yours, look at the Sales Shipment Form (OnModify) and Codeunit 391 Shipment Header - Edit
Look at the code, you can add a tracking number to the shipment header.
You will need to do the same for your new field, this is the proper way, if you want to modify a posted document or a Ledger (113 Vend. Entry-Edit).Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions