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:
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!!
Comments
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:
How about assign the users who are suposed to configure/Create Item Charges the Read+Modify+Insert permissions for table 5800?
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
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
Vivek
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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
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.
What stops you from trying my suggestion? If it does not work then you can investigate this further.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!