I've done it with a BPM. I created a supplier group called "HIDE" and assigned the group to the suppliers we wanted only payables to have access to. I created a pre-processing BPM on Vendor.GetList with the behavior "user called the method does not belong to AP group". That calls up an action with custom source code as follows (I included my comments for clarification if needed):
/*append to whereClause so search called from anywhere filters "hidden" vendors. 10/18/2012 note: search appears to need the AND if a starting value is entered, but can't contain the AND if no starting value is entered, so I used the IF statement to change the whereClause if needed.*/
define variable grouptemp as character no-undo.
assign grouptemp = '(GroupCode <> ~'HIDE~') AND ' + whereClause.
IF whereClause BEGINS " BY" THEN assign grouptemp = '(GroupCode <> ~'HIDE~') ' + whereClause.
assign whereClause = grouptemp.
This doesn't stop someone from typing in a supplier ID and gaining access to it. I haven't played with the data directives in E9 so I'm not sure if they would be more effective. I'm also not sure if this should also be put in the GetRows method. Hope this helps!
Sue
/*append to whereClause so search called from anywhere filters "hidden" vendors. 10/18/2012 note: search appears to need the AND if a starting value is entered, but can't contain the AND if no starting value is entered, so I used the IF statement to change the whereClause if needed.*/
define variable grouptemp as character no-undo.
assign grouptemp = '(GroupCode <> ~'HIDE~') AND ' + whereClause.
IF whereClause BEGINS " BY" THEN assign grouptemp = '(GroupCode <> ~'HIDE~') ' + whereClause.
assign whereClause = grouptemp.
This doesn't stop someone from typing in a supplier ID and gaining access to it. I haven't played with the data directives in E9 so I'm not sure if they would be more effective. I'm also not sure if this should also be put in the GetRows method. Hope this helps!
Sue
--- In vantage@yahoogroups.com, "Winter, Patrick" <pjw@...> wrote:
>
> Accounting would like to block access to viewing certain suppliers.
> Anyway to skip listing a dozen or so vendors when using supplier tracker
> or supplier maintenance?
>
> Patrick Winter
>
> Epicor 9.05.700c, Progress Database, Windows Server 2008 R2 Standard
>
>
>
>
> [Non-text portions of this message have been removed]
>