Item charge permissions issue

vivek4121vivek4121 Member Posts: 165
edited 2017-10-04 in NAV Three Tier
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

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Hi,

    Firstly - could you please use Quote -> Code in your posts when you paste code snipplets/examples:
    gq7kpj8yt7ba.png

    It makes reading code much easier for everyone.
    This:
    sj7ch2jwduop.png

    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?

    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • vivek4121vivek4121 Member Posts: 165
    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
    Vivek
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    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-03
  • vivek4121vivek4121 Member Posts: 165
    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.
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    The error code you're getting cannot be more straighforward:

    p8p6t1yx4ev8.png

    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-03
  • krikikriki Member, Moderator Posts: 9,115
    [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!


  • vivek4121vivek4121 Member Posts: 165
    The thing was I don't want to give the modify permissions until and unless it actually required.
  • KishormKishorm Member Posts: 921
    Try setting the DelayedInsert property on Page 5800 to 'Yes'
Sign In or Register to comment.