Item charge permissions issue

vivek4121
Member Posts: 165
Hi All,
We have received a issue from client, wherein they require to use the Item Charge functionality in NAV 2015.
For that they need to create the new Item Charge. They don't have the permissions to do in NAV.
We have assigned them the require permission to Read &Insert into table data 5800.
But when they tried to create a Item charge with "Gen. Prod. Posting Group.", they get error message saying that "You do not have
permissions to Modify the Table data 5800, Item Charge.
I saw the code for the Onvalidate trigger of field "Gen Prod Posting Group" and found below:
Could anyone help me what exactly it doing ?
Thanks in advance!!
We have received a issue from client, wherein they require to use the Item Charge functionality in NAV 2015.
For that they need to create the new Item Charge. They don't have the permissions to do in NAV.
We have assigned them the require permission to Read &Insert into table data 5800.
But when they tried to create a Item charge with "Gen. Prod. Posting Group.", they get error message saying that "You do not have
permissions to Modify the Table data 5800, Item Charge.
I saw the code for the Onvalidate trigger of field "Gen Prod Posting Group" and found below:
IF xRec."Gen. Prod. Posting Group" <> "Gen. Prod. Posting Group" THEN IF GenProdPostingGrp.ValidateVatProdPostingGroup(GenProdPostingGrp,"Gen. Prod. Posting Group") THEN VALIDATE("VAT Prod. Posting Group",GenProdPostingGrp."Def. VAT Prod. Posting Group");
Could anyone help me what exactly it doing ?
Thanks in advance!!
0
Comments
-
Hi,
Firstly - could you please use Quote -> Code in your posts when you paste code snipplets/examples:
It makes reading code much easier for everyone.
This:
Into this:IF xRec."Gen. Prod. Posting Group" <> "Gen. Prod. Posting Group" THEN IF GenProdPostingGrp.ValidateVatProdPostingGroup(GenProdPostingGrp,"Gen. Prod. Posting Group") THEN VALIDATE("VAT Prod. Posting Group",GenProdPostingGrp."Def. VAT Prod. Posting Group");
How about assign the users who are suposed to configure/Create Item Charges the Read+Modify+Insert permissions for table 5800?
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Hi Slawek,
Code quoted now!
Could you please elaborate your last sentence "How about assign the users who are suposed to configure/Create Item Charges the Read+Modify+Insert permissions for table 5800?"
Thanks
Vivek0 -
Insert permission let the user only to insert the record. One-off action. Any further changes of the record requires Modify permission.
Read+Insert permissions would wokd if the user had a chance to populate every field on the page before inserting the record. Unfortunatlety once you populate the No. field on Item Charge worksheet, and move focus to Description the record gets inserted, and no firther changes to it are possible, unless you give the user the Modify permission
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
User is able to enter the description with Read/Insert permissions only.
As soon as he trying to populate the "Gen. Prod Posting Group" field, error comes up that you do not have Permission to modify the table data 5800.0 -
The error code you're getting cannot be more straighforward:
What stops you from trying my suggestion? If it does not work then you can investigate this further.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
[Topic moved from 'Navision Financials' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
The thing was I don't want to give the modify permissions until and unless it actually required.0
-
Try setting the DelayedInsert property on Page 5800 to 'Yes'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