Thank you
@Doug Higgs, setting up the custom group worked. Also, thank you
@Alnoor Cassim, I have saved your resolution.
------------------------------
[Michele] [Herzog] [CPA,CITP, CGMA]
[Overland Park] [KS]
[816-520-1365]
------------------------------
Original Message:
Sent: 02-17-2022 04:19
From: Doug Higgs
Subject: Disable Inventory Maintenance Reorder Screen for Some Users
This is great Alnoor. Does this require "Allow external access" to be enabled?
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Chauffeur, Chef, and Personal Assistant to Sprinkles
------------------------------
Original Message:
Sent: 02-17-2022 03:47
From: Alnoor Cassim
Subject: Disable Inventory Maintenance Reorder Screen for Some Users
To add to the mix here's another way involving a quick UI script. It's easier to do than explain.
- Use Customizer to slightly customize DREORDER panel. It could be as simple as adding a text field. Doing it for ###-### (all users - all companies) would make most sense.
- In Customizer Selection (not via Ctrl-F9), go down to [Customized Panels], find Item Maintenance, expand the user-company combo you customized.
- Rt click on DREORDER and choose UI Script Events
- Click Add.
- For Event choose Panel - Post Load
- For Script, type in DReorder_Restrict or anything you want and press Enter.
- Say Yes to create the script. You will get to the Edit Script window.
- Put this one-liner in:
If oSession.IsMember("ADMIN")=0 Then oScript.Execute "CMD_STR$=" & CHR(34) & "E" & CHR(34)
- This sends a pvx command: CMD_STR$="E" which means to exit the current panel.
- Substitute "ADMIN" with the name of the role that should have access to Reorder Maint. If necessary, create a brand new role called Reorder, give it a description and click Accept. No need to assign it any tasks. Then in User Maint add the Reorder role to the appropriate users . Back on script, substitute "ADMIN" with "Reorder"
- Click Accept on the Edit Script window.
- Keep clicking OK or Close until the Script Compile prompt appears then compile the script.
- Close Item Maint/Inquiry if it was open and now re-open it and give it a shot as both a regular user and one in the Reorder role. When you click Reorder now as a regular user the Reorder panel will never appear because it actually being shut down by the script.
------------------------------
Alnoor Cassim
Email: alnoor@asifocus.com
Ph: 949-689-9887
Orange County, CA