Making a checkbox default true

What is the check box you are looking to set a default value for, a native or user defined? I assume you want to have the True value set when a new job is created? Let me know and I can set it up for you.



Rob Bucek

Manufacturing Engineer

PH: (715) 284-5376 ext 3111

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Brad Ebright
Sent: Thursday, February 18, 2010 12:21 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Making a checkbox default true





It is on Job Entry. We are on 8.00...so I'm not sure what to do...

On Feb 17, 2010, at 5:34 PM, "Rob Bucek" <rbucek@... <mailto:rbucek%40dsmfg.com> > wrote:

> Sounds like a good application for a BPM...which form is this for?
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: (715) 284-5376 ext 3111
>
> FAX: (715)284-4084
>
> <http://www.dsmfg.com/>
>
> (Click the logo to view our site) <http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf
> Of brad.ebright
> Sent: Wednesday, February 17, 2010 3:29 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Making a checkbox default true
>
> I have been asked to make a checkbox on an entry screen to
> automatically
> default to true. Is this possible? We are running Vantage 8.0
>
> Thanks
>
> [Non-text portions of this message have been removed]
>
>

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





[Non-text portions of this message have been removed]
I have been asked to make a checkbox on an entry screen to automatically default to true. Is this possible? We are running Vantage 8.0

Thanks
Sounds like a good application for a BPM...which form is this for?



Rob Bucek

Manufacturing Engineer

PH: (715) 284-5376 ext 3111

FAX: (715)284-4084

<http://www.dsmfg.com/>

(Click the logo to view our site) <http://www.dsmfg.com/>





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of brad.ebright
Sent: Wednesday, February 17, 2010 3:29 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Making a checkbox default true





I have been asked to make a checkbox on an entry screen to automatically
default to true. Is this possible? We are running Vantage 8.0

Thanks





[Non-text portions of this message have been removed]
It is on Job Entry. We are on 8.00...so I'm not sure what to do...



On Feb 17, 2010, at 5:34 PM, "Rob Bucek" <rbucek@...> wrote:

> Sounds like a good application for a BPM...which form is this for?
>
> Rob Bucek
>
> Manufacturing Engineer
>
> PH: (715) 284-5376 ext 3111
>
> FAX: (715)284-4084
>
> <http://www.dsmfg.com/>
>
> (Click the logo to view our site) <http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf
> Of brad.ebright
> Sent: Wednesday, February 17, 2010 3:29 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Making a checkbox default true
>
> I have been asked to make a checkbox on an entry screen to
> automatically
> default to true. Is this possible? We are running Vantage 8.0
>
> Thanks
>
> [Non-text portions of this message have been removed]
>
>


[Non-text portions of this message have been removed]
I don't have all the answers on this one, but I have had success using VB code in a customization as an alternative to a BPM. In fact, I don't think it's even possible to use a BPM to default a checkbox to checked when the entry form first loads for a new record. The BPM won't fire until you try to save the record, and could either force a value or throw an exception message. I could be wrong here.

The catch is I haven't gotten it to work on pre-made Epicor controls, but I can make it work with checkboxes I have added. Add this VB code to your customization.

Sub InitializeCustomCode()
Dim ctrl as EpiCheckbox = CType(csm.GetNativeControlReference("EpiGUID GOES HERE"), EpiCheckbox)
ctrl.Checked = True
End Sub

Copy the EpiGUID from the property tab for your desired checkbox, and replace where I put EpiGUID GOES HERE. This method needs a string as a parameter so be sure and include the double quotes or use a string variable.

I have my own post out there on a similar topic, but I'm thinking you made need the Epicor Vantage SDK to touch the premade controls. Again, could be wrong on that one. Hopefully brighter minds will chime in.

Jared
_______________________
Jared Allmond
IT Systems Engineer
Wright Coating Technologies
jallmond@...
voice: 269.344.8195
direct: 269.341.4353
fax: 269.344.3007