8.03.305F - Dup PO Checkbox

We have done the exact same customization. Here is our code

Private Sub Customer_AfterFieldChange(ByVal sender As object, ByVal args
As DataColumnChangeEventArgs) Handles Customer_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 "CustID"

Dim [edvcustomerpo] As EpiDataView =
CType(oTrans.EpiDataViews("Customer"), EpiDataView)
Dim [duppo] As Boolean =
[edvcustomerpo].dataView([edvcustomerpo].Row)("CheckDuplicatePO")

[edvcustomerpo].dataView([edvcustomerpo].Row)("CheckDuplicatePO") =
True

Case Else

End Select

End Sub


Kersten MacLennan
IT/ERP Analyst
Semrock, Inc.
3625 Buffalo Rd.,
Suite 6
Rochester, NY 14624
585-594-7009
585-594-7095 fax

kmaclennan@...

The Standard in Optical Filters for Biotech & Analytical Instrumentation
More than 100,000 Ion Beam Sputtered filters delivered - extensive
inventory now!

The information contained in this message and any attachments may be
privileged, confidential, and protected from disclosure. If the reader
of this message is not the intended recipient, or any agent responsible
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, or copying of this
communication may be unlawful and therefore strictly prohibited. If you
received this message in error, please reply to the message and delete
it. Thank you




_____

From: Scott Litzau [mailto:scott.litzau@...]
Sent: Friday, November 02, 2007 10:44 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] 8.03.305F - Dup PO Checkbox



Lauren,

Due to underlying programming you need to do a BeforeFieldChange Event.
Here
is the code I use to do this

Private Sub Customer_BeforeFieldChange(ByVal sender As object, ByVal
args As
DataColumnChangeEventArgs) Handles Customer_Column.ColumnChanging
'// ** Argument Properties and Uses **
'// args.Row("[FieldName]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
Select Case args.Column.ColumnName

Case "CustID"
If (args.Row("CustID")="") Then 'Is a new Customer
Dim dupPO As EpiCheckBox =
CType(csm.getNativeControlReference("a46093b2-05fe-46d9-bfba-7f0a50e46fe
9"),
EpiCheckBox)
dupPO.checked=true
messagebox.show("REMINDER - Fill out New Customer Setup
Sheet and send to Accounting")
End If
Case Else

End Select

End Sub

Scott
-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Lauren Hellings
Sent: Friday, November 02, 2007 8:44 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] 8.03.305F - Dup PO Checkbox

I am in the Customer Maintenance screen, and I am trying to set the Dup
PO Check checkbox to true automatically. I have gone into Customization
and set the field to enabled and true, but it resets itself to disabled
and false even after I have saved it. I also tried creating a rule
through the wizard stating if the Customer ID field is populated, set
the CheckDupPO checkbox to mandatory, but it ignores this rule and
allows the user to save the record without this box being checked. Does
anyone have any ideas on how I can force this checkbox to be checked??

Thank You,

Lauren L. Hellings
Systems Administrator
Ericson Manufacturing Co.

[Non-text portions of this message have been removed]

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
<http://groups.yahoo.com/group/vantage/links>
Yahoo! Groups Links






[Non-text portions of this message have been removed]
I am in the Customer Maintenance screen, and I am trying to set the Dup
PO Check checkbox to true automatically. I have gone into Customization
and set the field to enabled and true, but it resets itself to disabled
and false even after I have saved it. I also tried creating a rule
through the wizard stating if the Customer ID field is populated, set
the CheckDupPO checkbox to mandatory, but it ignores this rule and
allows the user to save the record without this box being checked. Does
anyone have any ideas on how I can force this checkbox to be checked??

Thank You,

Lauren L. Hellings
Systems Administrator
Ericson Manufacturing Co.





[Non-text portions of this message have been removed]
Lauren,

Due to underlying programming you need to do a BeforeFieldChange Event. Here
is the code I use to do this


Private Sub Customer_BeforeFieldChange(ByVal sender As object, ByVal args As
DataColumnChangeEventArgs) Handles Customer_Column.ColumnChanging
'// ** Argument Properties and Uses **
'// args.Row("[FieldName]")
'// args.Column, args.ProposedValue, args.Row
'
'Add Event Handler Code
'
Select Case args.Column.ColumnName

Case "CustID"
If (args.Row("CustID")="") Then 'Is a new Customer
Dim dupPO As EpiCheckBox =
CType(csm.getNativeControlReference("a46093b2-05fe-46d9-bfba-7f0a50e46fe9"),
EpiCheckBox)
dupPO.checked=true
messagebox.show("REMINDER - Fill out New Customer Setup
Sheet and send to Accounting")
End If
Case Else

End Select

End Sub



Scott
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Lauren Hellings
Sent: Friday, November 02, 2007 8:44 AM
To: vantage@yahoogroups.com
Subject: [Vantage] 8.03.305F - Dup PO Checkbox

I am in the Customer Maintenance screen, and I am trying to set the Dup
PO Check checkbox to true automatically. I have gone into Customization
and set the field to enabled and true, but it resets itself to disabled
and false even after I have saved it. I also tried creating a rule
through the wizard stating if the Customer ID field is populated, set
the CheckDupPO checkbox to mandatory, but it ignores this rule and
allows the user to save the record without this box being checked. Does
anyone have any ideas on how I can force this checkbox to be checked??

Thank You,

Lauren L. Hellings
Systems Administrator
Ericson Manufacturing Co.





[Non-text portions of this message have been removed]



Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links