Thanks Nigel, works great.
________________________________
From: Nigel Kerley <nigel.kerley@...>
To: vantage@yahoogroups.com
Sent: Thursday, February 5, 2009 4:35:56 AM
Subject: [Vantage] Re: Set default for checkbox
In Customisation Tools, add a BeforeFieldChange event to the Customer
table and add in the following code:
Select Case args.Column. ColumnName
Case "CustID"
' Check if new account
if (args.Row("CustID" )="") then
' Set CheckBox02 to True
Dim CB02 As EpiCheckBox = CType(csm.getNative ControlReference
("5a2678b8-7003- 480b-8bc2- 27c2e020ad51" ), EpiCheckBox)
CB02.checked = true
Case Else
End Select
You will need to change the ID within the quotes - "5a267...." - to
the EpiGuid for your specific checkbox. Select the checkbox, then
look at the Properties tab.
Nigel.
________________________________
From: Nigel Kerley <nigel.kerley@...>
To: vantage@yahoogroups.com
Sent: Thursday, February 5, 2009 4:35:56 AM
Subject: [Vantage] Re: Set default for checkbox
In Customisation Tools, add a BeforeFieldChange event to the Customer
table and add in the following code:
Select Case args.Column. ColumnName
Case "CustID"
' Check if new account
if (args.Row("CustID" )="") then
' Set CheckBox02 to True
Dim CB02 As EpiCheckBox = CType(csm.getNative ControlReference
("5a2678b8-7003- 480b-8bc2- 27c2e020ad51" ), EpiCheckBox)
CB02.checked = true
Case Else
End Select
You will need to change the ID within the quotes - "5a267...." - to
the EpiGuid for your specific checkbox. Select the checkbox, then
look at the Properties tab.
Nigel.
--- In vantage@yahoogroups .com, "sgotschall" <sgotschall@ ...> wrote:
>
> Vantage 8.03.407 Progress
>
> This should be simple, but for some reason I am having some
problems
> getting it to work. I have a checkbox control on the Customer form
set
> to Customer.CheckBox02 field. When a new customer is created
> (GetNewCustomer) , I want the checkbox to default to True
(checked).
> Anybody have a simple way of doing this?
>
__.._,_.___
Messages in this topic (2) Reply (via web post) | Start a new topic
Messages | Files | Photos | Database | Members
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/.%c2%a0
(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
MARKETPLACE
________________________________
From kitchen basics to easy recipes - join the Group from Kraft Foods
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Recent Activity
* Â 5
New FilesVisit Your Group
New web site?
Drive traffic now.
Get your business
on Yahoo! search.
All-Bran
10 Day Challenge
Join the club and
feel the benefits.
Cat Zone
on Yahoo! Groups
Join a Group
all about cats.
.
[Non-text portions of this message have been removed]