web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to restrict a user to only Shipment/Invoice PO Receipts?

(0) ShareShare
ReportReport
Posted on by 350

Any ideas or work-arounds on how to restrict a user to only Shipment/Invoice PO receiving transactions?  I modified the window with VBA code to default the receipt type to Shipment/Invoice and lock-down the field.  However, the user is still able to access/change Shipment receipts entered by other users.  I considered Field Level Security but that has the same result.  I looked at restricting document access via a security task but you can only restrict access to PO types, not receipt types.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Liane,

    If you modified the window to use VBA to set the default receipt type then you also should put a script on the POP Receipt Number field to check to make sure that the Receipt type is the one that you want, and throw an error or something if the type is not the desired one.  If you are using these forms in a terminal server environment keep in mind that this will affect all users, unless you set the security for the modified form to just those users you want to roll this change to.

    If you are looking to keep the user from accessing a receipt that another user has entered, you can look at the 'User To Enter' field for the receipt and make sure that the user ID is equal to the current user's ID.

    Regards,

    Aaron

  • Maria Carrero Profile Picture
    150 on at

    Hi Liane,

    add one trigger Register Database in the table POP_Receipt for READ and READ_LOCK events , and in your script, define the permissions, and after lock all field in the form and add this code line

    result = Window_SetLineMode(window Line_Scroll of form  POP_Receivings_Entry,LINEMODE_BROWSE_ONLY);

    if the user has permissions unlock the same fields and add this code line

    result = Window_SetLineMode(window Line_Scroll of form POP_Receivings_Entry,LINEMODE_ADDS_ALLOWED);

    Regards,

    Mary

  • Ian Grieve Profile Picture
    22,784 on at

    If you go the VBA route you can actually set the Type and then disable the field so it can't be changed.

    Drawback of VBA is that it won't work in the Web Client.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans