Here is what I started on, and it seems to prevent certain users from
unchecking "Inactive" box for certain suppliers.
Private Sub Vendor_AfterFieldChange(ByVal sender As object, ByVal args
As DataColumnChangeEventArgs) Handles Vendor_Column.ColumnChanged
'// ** Argument Properties and Uses **
'// args.Row("[FieldName]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
Select Case args.Column.ColumnName
Case "Inactive"
Dim [WhoUser] As String = VendorForm.Session.UserName
Dim [edvVarName] As EpiDataView =
CType(oTrans.EpiDataViews("VendorDetail"), EpiDataView)
Dim [VarName] As String =
[edvVarName].dataView([edvVarName].Row)("VendorID")
Dim Users as New Collection
With Users
.Add("User1")
.Add("User2")
End With
Dim I as String
For each I in Users
If (I <> WhoUser) and (VarName = "XVEND") then
OTrans.Clear()
Else
End If
Next
Case Else
End Select
End Sub
--sf
unchecking "Inactive" box for certain suppliers.
Private Sub Vendor_AfterFieldChange(ByVal sender As object, ByVal args
As DataColumnChangeEventArgs) Handles Vendor_Column.ColumnChanged
'// ** Argument Properties and Uses **
'// args.Row("[FieldName]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
Select Case args.Column.ColumnName
Case "Inactive"
Dim [WhoUser] As String = VendorForm.Session.UserName
Dim [edvVarName] As EpiDataView =
CType(oTrans.EpiDataViews("VendorDetail"), EpiDataView)
Dim [VarName] As String =
[edvVarName].dataView([edvVarName].Row)("VendorID")
Dim Users as New Collection
With Users
.Add("User1")
.Add("User2")
End With
Dim I as String
For each I in Users
If (I <> WhoUser) and (VarName = "XVEND") then
OTrans.Clear()
Else
End If
Next
Case Else
End Select
End Sub
--sf
--- In vantage@yahoogroups.com, Robert Brown <robertb_versa@...> wrote:
>
> You could set up the buyers you want to lock out to require approval
for their POs.
>
> Sounds like that might not be a great fit however.
>
> Also might want to try unapproving the specific vendors and only
giving your approval group access to temp approve them as POs are
required.
>
> If that all fails, you can add a customize supplier maintenance and
use a ud checkbox field to indicate whether the vendor should be
restricted (re PO entry). Then you can ucsotmize PO Entry to check
user ID of the person in PO Entry and, if part of your restricted
list, then check vendor to see if the vendor is one of the ones you
want to stop entry against.
>
> PO entry seems to be going through significant underlying changes
the last few upgrades so you risk your customization going haywire
after each upgrade.
>
> It can be done though. We did something like this for Supplier
maintenance.
>
> Rob
>
> --- On Tue, 10/28/08, sanfranc415 <sanfranc415@...> wrote:
>
> From: sanfranc415 <sanfranc415@...>
> Subject: [Vantage] Locking out access to generate PO for certain
suppliers.
> To: vantage@yahoogroups.com
> Date: Tuesday, October 28, 2008, 3:01 PM
>
>
>
>
>
>
> Is there within a way in Vantage to lock out purchasing from
> generating purchase orders to certain suppliers that the lock out is
> controlled by a certain group?
>
> Is this something that can be customized with .net programming or a BPM?
>
> Thanks,
>
> --sf
>