Control Button based on checkbox

Thanks Jose and Ted for your patience and help. I really appreciate the
time you took from your day to help. I learned a lot. There are some parts
I don't understand, but with this example I should be able to do this again.



Again thanks to both of you for your help.

Mike



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ted Koch
Sent: Thursday, April 19, 2012 2:04 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox





Go to the Event Wizard tab.

Control Type Filter: EpiCheckBox
CustomControl: EpiCheckBoxC1(or whatever the checkbox is named)
Available Control Events: CheckedChanged

Then select the button that is pointing to the top right textbox. Then go to
the bottom of the wizard and hit the button "Update Selected Event Code".

Now go to the Script Editor and at the bottom will be the newly generated
code. Enter the code I gave you in this new sub.

________________________________
From: Mike Numbers <mnumbers@... <mailto:mnumbers%40cignys.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Thursday, April 19, 2012 1:32 PM
Subject: RE: [Vantage] Control Button based on checkbox

Ted,

I removed the damage I created earlier. I am stuck on where to add the code
you gave me.

I on the Customization Tools Dialog screen with the checkbox highlighted.

I clicked on Wizards

I clicked on Event Wizard

I tried entering the code in the lower box titled Control Event Code. Then
clicked on Update All Event Code. Nothing seems to have changed. If I look
at the script editor, I don't see the new code. What am I missing?

Mike

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Ted Koch
Sent: Thursday, April 19, 2012 11:57 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Control Button based on checkbox



Mike,

First, I believe you are handling the wrong checkbox event. You should be
handling the checked event for the checkbox. Second, the error you are
getting is because of your If statement. Try this:

Delete this entire sub:

Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
On Checked.= True.
EpiShape.Enabled=true;
else EpiShape.Enabled=false.
End Sub

Also delete where it is adding and removing the handlers in initialize and
destroy custom code.

Then go into the event wizard and generate a sub for the checked event on
the checkbox. The code in this sub should be:

If epicheckboxC1.checked = true then
EpiShape.Enabled=true
Else

EpiShape.Enabled=false
End If

Hope that helps

Ted

________________________________
From: Mike Numbers <mnumbers@... <mailto:mnumbers%40cignys.com>
<mailto:mnumbers%40cignys.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Sent: Thursday, April 19, 2012 10:48 AM
Subject: RE: [Vantage] Control Button based on checkbox

Jose,

Below is from the script editor.
Thanks for taking the time to help me I DO appreciate it.

Mike

'//**************************************************
'// Custom VB.NET code for JobEntryForm
'// Created: 4/11/2012 2:16:56 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO

Module Script

'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **

'// Add Custom Module Level Variables Here **

Sub InitializeCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Variable Initialization' lines **
'// Begin Wizard Added Variable Initialization

'// End Wizard Added Variable Initialization
'// Begin Wizard Added Custom Method Calls

AddHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Custom Method Calls

End Sub

Sub DestroyCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

RemoveHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal

End Sub

Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
On Checked.= True.
EpiShape.Enabled=true;
else EpiShape.Enabled=false.
End Sub

End Module

Mike Numbers
Cignys
989 513 9470

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@... <mailto:jose%40josecgomez.com>
<mailto:jose%40josecgomez.com>
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*

On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...
<mailto:mnumbers%40cignys.com>
<mailto:mnumbers%40cignys.com> > wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@... <mailto:jose%40josecgomez.com>
<mailto:jose%40josecgomez.com>
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...
<mailto:mnumbers%40cignys.com>
<mailto:mnumbers%40cignys.com> > wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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/>
<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/linksYahoo! Groups Links
>
>
>

[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/>
<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/linksYahoo! Groups Links

------------------------------------

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/>
<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/linksYahoo! Groups Links

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

[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
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

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





[Non-text portions of this message have been removed]
I am trying to add a new status to the Job Entry screen. I have added the checkbox and a button with the status name similiar to how the current statuses are setup. My problem is I cannot control the color or the wording of the buttom based on the checkbox. For the button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made this up after seeing the other buttons). For the checkbox under Epicontrol-Epilabel I have epiShapeC1 which is the name of the button. I also have the backcolor of the button - Yellow. The result is the button is green. How can I control the color of the button or the wording based on the checkbox?
You can't just make up an epi binding...

Handle the CheckBox Chcked Event, On Checked.=TRue
EpiShape.Enabled=true;
else EpiShape.Enabled=false

Set EpiShape.EnabledCaption and DisabledCaption appropariately.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:

> **
>
>
> I am trying to add a new status to the Job Entry screen. I have added the
> checkbox and a button with the status name similiar to how the current
> statuses are setup. My problem is I cannot control the color or the wording
> of the buttom based on the checkbox. For the button, under
> Epiconrol-Epibinding I have JobHead.HoldShape (I made this up after seeing
> the other buttons). For the checkbox under Epicontrol-Epilabel I have
> epiShapeC1 which is the name of the button. I also have the backcolor of
> the button - Yellow. The result is the button is green. How can I control
> the color of the button or the wording based on the checkbox?
>
>
>


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

I am new with this customization, so bear with me. I removed the epi
binding from the button. Went to the checkbox - event wizard and entered
the code you referenced. I did not see any edit check so I "updated select
event code". Got out of developer and reopened Job Entry. I get a compile
error and the program goes back to the basic version, not my custom version.
Same thing in developer. Do I start over with the customization or is there
a way to access the changes I made in error and attempt to correct them?

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 9:35 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox

You can't just make up an epi binding...

Handle the CheckBox Chcked Event, On Checked.=TRue EpiShape.Enabled=true;
else EpiShape.Enabled=false

Set EpiShape.EnabledCaption and DisabledCaption appropariately.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:

> **
>
>
> I am trying to add a new status to the Job Entry screen. I have added
> the checkbox and a button with the status name similiar to how the
> current statuses are setup. My problem is I cannot control the color
> or the wording of the buttom based on the checkbox. For the button,
> under Epiconrol-Epibinding I have JobHead.HoldShape (I made this up
> after seeing the other buttons). For the checkbox under
> Epicontrol-Epilabel I have
> epiShapeC1 which is the name of the button. I also have the backcolor
> of the button - Yellow. The result is the button is green. How can I
> control the color of the button or the wording based on the checkbox?
>
>
>


[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/linksYahoo! Groups Links
That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then
take your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...> wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and entered
> the code you referenced. I did not see any edit check so I "updated select
> event code". Got out of developer and reopened Job Entry. I get a compile
> error and the program goes back to the basic version, not my custom
> version.
> Same thing in developer. Do I start over with the customization or is there
> a way to access the changes I made in error and attempt to correct them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of
> Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue EpiShape.Enabled=true;
> else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have added
> > the checkbox and a button with the status name similiar to how the
> > current statuses are setup. My problem is I cannot control the color
> > or the wording of the buttom based on the checkbox. For the button,
> > under Epiconrol-Epibinding I have JobHead.HoldShape (I made this up
> > after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the backcolor
> > of the button - Yellow. The result is the button is green. How can I
> > control the color of the button or the wording based on the checkbox?
> >
> >
> >
>
> [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/linksYahoo! Groups Links
>
>
>


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

Below is from the script editor.
Thanks for taking the time to help me I DO appreciate it.

Mike

'//**************************************************
'// Custom VB.NET code for JobEntryForm
'// Created: 4/11/2012 2:16:56 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO


Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **



Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Variable Initialization' lines **
'// Begin Wizard Added Variable Initialization

'// End Wizard Added Variable Initialization
'// Begin Wizard Added Custom Method Calls

AddHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Custom Method Calls

End Sub



Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

RemoveHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal

End Sub



Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
On Checked.= True.
EpiShape.Enabled=true;
else EpiShape.Enabled=false.
End Sub


End Module


Mike Numbers
Cignys
989 513 9470


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...> wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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/linksYahoo! Groups Links
>
>
>


[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/linksYahoo! Groups Links
Below is the error messages:

Error: BC30469 - line 68 (654) - Reference to a non-shared member requires
an object reference.
Error: BC30037 - line 68 (654) - Character is not valid.
Error: BC30086 - line 69 (655) - 'Else' must be preceded by a matching 'If'
or 'ElseIf'.

** Compile Failed. **

Mike

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...> wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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/linksYahoo! Groups Links
>
>
>


[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/linksYahoo! Groups Links
Mike,


First, I believe you are handling the wrong checkbox event. You should be handling the checked event for the checkbox. Second, the error you are getting is because of your If statement. Try this:

Delete this entire sub:

   Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
     On Checked.= True.
      EpiShape.Enabled=true;
      else EpiShape.Enabled=false.  Â
   End Sub

Also delete where it is adding and removing the handlers in initialize and destroy custom code.

Then go into the event wizard and generate a sub for the checked event on the checkbox. The code in this sub should be:


If epicheckboxC1.checked = true then
      EpiShape.Enabled=true
Else

      EpiShape.Enabled=false
End If


Hope that helps

Ted




________________________________
From: Mike Numbers <mnumbers@...>
To: vantage@yahoogroups.com
Sent: Thursday, April 19, 2012 10:48 AM
Subject: RE: [Vantage] Control Button based on checkbox

Jose,

Below is from the script editor.Â
Thanks for taking the time to help me I DO appreciate it.

Mike

'//**************************************************
'// Custom VB.NET code for JobEntryForm
'// Created: 4/11/2012 2:16:56 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO


Module Script


   '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
   '// Begin Wizard Added Module Level Variables **

   '// End Wizard Added Module Level Variables **


   '// Add Custom Module Level Variables Here **



   Sub InitializeCustomCode()


      '// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Variable Initialization' lines **
      '// Begin Wizard Added Variable Initialization

      '// End Wizard Added Variable Initialization
      '// Begin Wizard Added Custom Method Calls

      AddHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
      '// End Wizard Added Custom Method Calls

   End Sub



   Sub DestroyCustomCode()


      '// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Object Disposal' lines **
      '// Begin Wizard Added Object Disposal

      RemoveHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
      '// End Wizard Added Object Disposal
      '// Begin Custom Code Disposal

      '// End Custom Code Disposal

   End Sub



   Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
     On Checked.= True.
      EpiShape.Enabled=true;
      else EpiShape.Enabled=false.  Â
   End Sub


End Module


Mike Numbers
Cignys
989 513 9470


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...> wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...> wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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/linksYahoo! Groups Links
>

>


[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/.%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/linksYahoo! Groups Links





------------------------------------

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/linksYahoo! Groups Links



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



I removed the damage I created earlier. I am stuck on where to add the code
you gave me.



I on the Customization Tools Dialog screen with the checkbox highlighted.

I clicked on Wizards

I clicked on Event Wizard

I tried entering the code in the lower box titled Control Event Code. Then
clicked on Update All Event Code. Nothing seems to have changed. If I look
at the script editor, I don't see the new code. What am I missing?



Mike



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ted Koch
Sent: Thursday, April 19, 2012 11:57 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox





Mike,

First, I believe you are handling the wrong checkbox event. You should be
handling the checked event for the checkbox. Second, the error you are
getting is because of your If statement. Try this:

Delete this entire sub:

Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
On Checked.= True.
EpiShape.Enabled=true;
else EpiShape.Enabled=false.
End Sub

Also delete where it is adding and removing the handlers in initialize and
destroy custom code.

Then go into the event wizard and generate a sub for the checked event on
the checkbox. The code in this sub should be:

If epicheckboxC1.checked = true then
EpiShape.Enabled=true
Else

EpiShape.Enabled=false
End If

Hope that helps

Ted

________________________________
From: Mike Numbers <mnumbers@... <mailto:mnumbers%40cignys.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Thursday, April 19, 2012 10:48 AM
Subject: RE: [Vantage] Control Button based on checkbox

Jose,

Below is from the script editor.
Thanks for taking the time to help me I DO appreciate it.

Mike

'//**************************************************
'// Custom VB.NET code for JobEntryForm
'// Created: 4/11/2012 2:16:56 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO

Module Script

'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **

'// Add Custom Module Level Variables Here **

Sub InitializeCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Variable Initialization' lines **
'// Begin Wizard Added Variable Initialization

'// End Wizard Added Variable Initialization
'// Begin Wizard Added Custom Method Calls

AddHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Custom Method Calls

End Sub

Sub DestroyCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

RemoveHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal

End Sub

Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
On Checked.= True.
EpiShape.Enabled=true;
else EpiShape.Enabled=false.
End Sub

End Module

Mike Numbers
Cignys
989 513 9470

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@... <mailto:jose%40josecgomez.com>
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*

On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...
<mailto:mnumbers%40cignys.com> > wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@... <mailto:jose%40josecgomez.com>
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...
<mailto:mnumbers%40cignys.com> > wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>

[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
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

------------------------------------

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
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

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





[Non-text portions of this message have been removed]
Go to the Event Wizard tab.

Control Type Filter: EpiCheckBox
CustomControl: EpiCheckBoxC1(or whatever the checkbox is named)
Available Control Events: CheckedChanged

Then select the button that is pointing to the top right textbox. Then go to the bottom of the wizard and hit the button "Update Selected Event Code".

Now go to the Script Editor and at the bottom will be the newly generated code. Enter the code I gave you in this new sub.



________________________________
From: Mike Numbers <mnumbers@...>
To: vantage@yahoogroups.com
Sent: Thursday, April 19, 2012 1:32 PM
Subject: RE: [Vantage] Control Button based on checkbox

Ted,



I removed the damage I created earlier. I am stuck on where to add the code
you gave me.



I on the Customization Tools Dialog screen with the checkbox highlighted.

I clicked on Wizards

I clicked on Event Wizard

I tried entering the code in the lower box titled Control Event Code. Then
clicked on Update All Event Code. Nothing seems to have changed. If I look
at the script editor, I don't see the new code. What am I missing?



Mike



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ted Koch
Sent: Thursday, April 19, 2012 11:57 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Control Button based on checkbox



Â

Mike,

First, I believe you are handling the wrong checkbox event. You should be
handling the checked event for the checkbox. Second, the error you are
getting is because of your If statement. Try this:

Delete this entire sub:

  Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
    On Checked.= True.
    EpiShape.Enabled=true;
    else EpiShape.Enabled=false. Â
  End Sub

Also delete where it is adding and removing the handlers in initialize and
destroy custom code.

Then go into the event wizard and generate a sub for the checked event on
the checkbox. The code in this sub should be:

If epicheckboxC1.checked = true then
    EpiShape.Enabled=true
Else

    EpiShape.Enabled=false
End If

Hope that helps

Ted

________________________________
From: Mike Numbers <mnumbers@... <mailto:mnumbers%40cignys.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>Â
Sent: Thursday, April 19, 2012 10:48 AM
Subject: RE: [Vantage] Control Button based on checkbox

Jose,

Below is from the script editor.Â
Thanks for taking the time to help me I DO appreciate it.

Mike

'//**************************************************
'// Custom VB.NET code for JobEntryForm
'// Created: 4/11/2012 2:16:56 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO

Module Script

  '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module Level Variables' Comments! **
  '// Begin Wizard Added Module Level Variables **

  '// End Wizard Added Module Level Variables **

  '// Add Custom Module Level Variables Here **

  Sub InitializeCustomCode()

    '// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Variable Initialization' lines **
    '// Begin Wizard Added Variable Initialization

    '// End Wizard Added Variable Initialization
    '// Begin Wizard Added Custom Method Calls

    AddHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
    '// End Wizard Added Custom Method Calls

  End Sub

  Sub DestroyCustomCode()

    '// ** Wizard Insert Location - Do not delete 'Begin/End
Wizard Added Object Disposal' lines **
    '// Begin Wizard Added Object Disposal

    RemoveHandler epiCheckBoxC1.BackColorChanged, AddressOf
Script.epiCheckBoxC1_BackColorChanged
    '// End Wizard Added Object Disposal
    '// Begin Custom Code Disposal

    '// End Custom Code Disposal

  End Sub

  Private Sub epiCheckBoxC1_BackColorChanged(ByVal sender As Object,
ByVal args As System.EventArgs)
    On Checked.= True.
    EpiShape.Enabled=true;
    else EpiShape.Enabled=false. Â
  End Sub

End Module

Mike Numbers
Cignys
989 513 9470

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Jose Gomez
Sent: Thursday, April 19, 2012 10:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Control Button based on checkbox

That means there is an error in the code, even though you don't see it. Go
to the script editor and hit check code and see what the error is. Then take
your code and paste it here so we can help you.

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@... <mailto:jose%40josecgomez.com>
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*

On Thu, Apr 19, 2012 at 10:17 AM, Mike Numbers <mnumbers@...
<mailto:mnumbers%40cignys.com> > wrote:

> **
>
>
> Jose,
>
> I am new with this customization, so bear with me. I removed the epi
> binding from the button. Went to the checkbox - event wizard and
> entered the code you referenced. I did not see any edit check so I
> "updated select event code". Got out of developer and reopened Job
> Entry. I get a compile error and the program goes back to the basic
> version, not my custom version.
> Same thing in developer. Do I start over with the customization or is
> there a way to access the changes I made in error and attempt to correct
them?
>
> -----Original Message-----
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Jose Gomez
> Sent: Thursday, April 19, 2012 9:35 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Control Button based on checkbox
>
> You can't just make up an epi binding...
>
> Handle the CheckBox Chcked Event, On Checked.=TRue
> EpiShape.Enabled=true; else EpiShape.Enabled=false
>
> Set EpiShape.EnabledCaption and DisabledCaption appropariately.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@... <mailto:jose%40josecgomez.com>
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Thu, Apr 19, 2012 at 9:27 AM, mike.numbers <mnumbers@...
<mailto:mnumbers%40cignys.com> > wrote:
>
> > **
>
> >
> >
> > I am trying to add a new status to the Job Entry screen. I have
> > added the checkbox and a button with the status name similiar to how
> > the current statuses are setup. My problem is I cannot control the
> > color or the wording of the buttom based on the checkbox. For the
> > button, under Epiconrol-Epibinding I have JobHead.HoldShape (I made
> > this up after seeing the other buttons). For the checkbox under
> > Epicontrol-Epilabel I have
> > epiShapeC1 which is the name of the button. I also have the
> > backcolor of the button - Yellow. The result is the button is green.
> > How can I control the color of the button or the wording based on the
checkbox?
> >
> >
> >
>
> [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
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>

>

[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
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

------------------------------------

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
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links

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





[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/.%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/linksYahoo! Groups Links



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