Onscreen event customization help

Thanks man!

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<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 Ted Koch
Sent: Friday, March 30, 2012 10:45 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Onscreen event customization help



I thinking the reason Epicor doesn't allow you to do this using the wizard is because it could interfere with control events they are using behind the scenes. I did this for the first time earlier this week in a dashboard... I wanted to capture the EpiUltraGrids double click event.

Public Sub InitializeCustomCode()
' ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
' Begin Wizard Added Variable Initialization

AddHandler Me.V_100_RPT001_1View1_Row.EpiRowChanged, AddressOf Me.V_100_RPT001_1View1_AfterRowChange
' End Wizard Added Variable Initialization

' Begin Wizard Added Custom Method Calls

' End Wizard Added Custom Method Calls
Dim dgvMy As epiUltraGrid = CType(csm.GetNativeControlReference("596e157d-0679-44c8-b484-3e4cb994c8dd"), epiUltraGrid)
AddHandler dgvMy.DoubleClickCell, AddressOf dgvMy_DoubleClickCell
End Sub

Public Sub DestroyCustomCode()
' ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
' Begin Wizard Added Object Disposal

RemoveHandler Me.V_100_RPT001_1View1_Row.EpiRowChanged, AddressOf Me.V_100_RPT001_1View1_AfterRowChange
' End Wizard Added Object Disposal

' Begin Custom Code Disposal

' End Custom Code Disposal
Dim dgvMy As epiUltraGrid = CType(csm.GetNativeControlReference("596e157d-0679-44c8-b484-3e4cb994c8dd"), epiUltraGrid)
RemoveHandler dgvMy.DoubleClickCell, AddressOf dgvMy_DoubleClickCell
End Sub

Private Sub dgvMy_DoubleClickCell(ByVal Sender As Object, ByVal args As Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs)
'code to run
End Sub

________________________________
From: Rob Bucek <rbucek@...<mailto:rbucek%40dsmfg.com>>
To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
Sent: Thursday, March 29, 2012 5:57 PM
Subject: RE: [Vantage] Re: Onscreen event customization help

Interesting Ted, I wasn't aware that you could do that..do you have an example of a syntax? It would be a little less hokey doing it that way..

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...<mailto:1.234354861%40web65412.mail.ac4.yahoo.com>]<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 Ted Koch
Sent: Thursday, March 29, 2012 4:36 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Re: Onscreen event customization help

I don't know if this is good practice or not, but you can capture events on the standard epicor controls. You just have to manually add the event handler when the form initializes.

________________________________
From: pbparker <scrumbus@...<mailto:scrumbus%40gmail.com><mailto:scrumbus%40gmail.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Sent: Thursday, March 29, 2012 4:47 PM
Subject: [Vantage] Re: Onscreen event customization help

Ahhh, I see how you're working around it.. lol. I kept grinding on it thinking my code was bad and it's really that the events aren't properly firing on the built in fields apparently.

I'll try that workaround have tomorrow and let you know if it works.. good workaround idea though.

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>, Rob Bucek <rbucek@...> wrote:
>
> Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.
>
> Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...
>
> Module Script
>
> Private edvEnd As EpiDataView
>
>
>
> Sub InitializeCustomCode()
> edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)
>
>
> End Sub
>
>
> Sub DestroyCustomCode()
>
> edvEnd = nothing
>
> End Sub
>
> Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
> '// ** Place Event Handling Code Here **
> If nedepicustom1.value > 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
> otrans.notifyall()
> End If
> If nedepicustom1.value = 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
> otrans.notifyall()
> End If
> End sub
>
>
>
> End Module
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<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%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of pbparker
> Sent: Wednesday, March 28, 2012 4:59 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Onscreen event customization help
>
>
>
> Anyone have or create something like the following?
>
> When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.
>
> So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.
>
> I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
>
>
>
> [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]

[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]
Anyone have or create something like the following?

When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.

So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.

I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.

Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...

Module Script

Private edvEnd As EpiDataView



Sub InitializeCustomCode()
edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)


End Sub


Sub DestroyCustomCode()

edvEnd = nothing

End Sub

Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
'// ** Place Event Handling Code Here **
If nedepicustom1.value > 0 Then
edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
otrans.notifyall()
End If
If nedepicustom1.value = 0 Then
edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
otrans.notifyall()
End If
End sub



End Module

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<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 pbparker
Sent: Wednesday, March 28, 2012 4:59 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Onscreen event customization help



Anyone have or create something like the following?

When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.

So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.

I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.



[Non-text portions of this message have been removed]
Ahhh, I see how you're working around it.. lol. I kept grinding on it thinking my code was bad and it's really that the events aren't properly firing on the built in fields apparently.

I'll try that workaround have tomorrow and let you know if it works.. good workaround idea though.

--- In vantage@yahoogroups.com, Rob Bucek <rbucek@...> wrote:
>
> Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.
>
> Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...
>
> Module Script
>
> Private edvEnd As EpiDataView
>
>
>
> Sub InitializeCustomCode()
> edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)
>
>
> End Sub
>
>
> Sub DestroyCustomCode()
>
> edvEnd = nothing
>
> End Sub
>
> Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
> '// ** Place Event Handling Code Here **
> If nedepicustom1.value > 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
> otrans.notifyall()
> End If
> If nedepicustom1.value = 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
> otrans.notifyall()
> End If
> End sub
>
>
>
> End Module
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<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 pbparker
> Sent: Wednesday, March 28, 2012 4:59 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Onscreen event customization help
>
>
>
> Anyone have or create something like the following?
>
> When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.
>
> So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.
>
> I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
>
>
>
> [Non-text portions of this message have been removed]
>
I don't know if this is good practice or not, but you can capture events on the standard epicor controls. You just have to manually add the event handler when the form initializes.



________________________________
From: pbparker <scrumbus@...>
To: vantage@yahoogroups.com
Sent: Thursday, March 29, 2012 4:47 PM
Subject: [Vantage] Re: Onscreen event customization help

Ahhh, I see how you're working around it.. lol. I kept grinding on it thinking my code was bad and it's really that the events aren't properly firing on the built in fields apparently.

I'll try that workaround have tomorrow and let you know if it works.. good workaround idea though.

--- In vantage@yahoogroups.com, Rob Bucek <rbucek@...> wrote:
>
> Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.
>
> Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...
>
> Module Script
>
>Â Â Â Â Private edvEnd As EpiDataView
>
>
>
>Â Â Â Â Â Â Â Â Sub InitializeCustomCode()
>Â Â Â Â edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)
>
>
>Â Â Â Â Â Â Â Â End Sub
>
>
>Â Â Â Â Â Â Â Â Sub DestroyCustomCode()
>
>Â Â edvEnd = nothing
>
>Â Â Â Â Â Â Â Â End Sub
>
>Â Â Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
>Â Â Â Â '// ** Place Event Handling Code Here **
>Â Â If nedepicustom1.value > 0 Then
>Â Â edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
>Â Â edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
>Â Â otrans.notifyall()
>Â Â End If
>Â Â If nedepicustom1.value = 0 Then
>Â Â edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
>Â Â edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
>Â Â otrans.notifyall()
>Â Â End If
>Â Â End sub
>
>
>
> End Module
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<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 pbparker
> Sent: Wednesday, March 28, 2012 4:59 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Onscreen event customization help
>
>
>
> Anyone have or create something like the following?
>
> When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.
>
> So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.
>
> I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
>
>
>
> [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]
Interesting Ted, I wasn't aware that you could do that..do you have an example of a syntax? It would be a little less hokey doing it that way..

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<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 Ted Koch
Sent: Thursday, March 29, 2012 4:36 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Onscreen event customization help



I don't know if this is good practice or not, but you can capture events on the standard epicor controls. You just have to manually add the event handler when the form initializes.

________________________________
From: pbparker <scrumbus@...<mailto:scrumbus%40gmail.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Sent: Thursday, March 29, 2012 4:47 PM
Subject: [Vantage] Re: Onscreen event customization help

Ahhh, I see how you're working around it.. lol. I kept grinding on it thinking my code was bad and it's really that the events aren't properly firing on the built in fields apparently.

I'll try that workaround have tomorrow and let you know if it works.. good workaround idea though.

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Rob Bucek <rbucek@...> wrote:
>
> Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.
>
> Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...
>
> Module Script
>
> Private edvEnd As EpiDataView
>
>
>
> Sub InitializeCustomCode()
> edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)
>
>
> End Sub
>
>
> Sub DestroyCustomCode()
>
> edvEnd = nothing
>
> End Sub
>
> Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
> '// ** Place Event Handling Code Here **
> If nedepicustom1.value > 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
> otrans.notifyall()
> End If
> If nedepicustom1.value = 0 Then
> edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
> edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
> otrans.notifyall()
> End If
> End sub
>
>
>
> End Module
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<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 pbparker
> Sent: Wednesday, March 28, 2012 4:59 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Onscreen event customization help
>
>
>
> Anyone have or create something like the following?
>
> When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.
>
> So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.
>
> I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
>
>
>
> [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 thinking the reason Epicor doesn't allow you to do this using the wizard is because it could interfere with control events they are using behind the scenes. I did this for the first time earlier this week in a dashboard... I wanted to capture the EpiUltraGrids double click event.



   Public Sub InitializeCustomCode()
      ' ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
      ' Begin Wizard Added Variable Initialization

      AddHandler Me.V_100_RPT001_1View1_Row.EpiRowChanged, AddressOf Me.V_100_RPT001_1View1_AfterRowChange
      ' End Wizard Added Variable Initialization

      ' Begin Wizard Added Custom Method Calls

      ' End Wizard Added Custom Method Calls
      Dim dgvMy As epiUltraGrid = CType(csm.GetNativeControlReference("596e157d-0679-44c8-b484-3e4cb994c8dd"), epiUltraGrid)
      AddHandler dgvMy.DoubleClickCell, AddressOf dgvMy_DoubleClickCell
   End Sub

   Public Sub DestroyCustomCode()
      ' ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
      ' Begin Wizard Added Object Disposal

      RemoveHandler Me.V_100_RPT001_1View1_Row.EpiRowChanged, AddressOf Me.V_100_RPT001_1View1_AfterRowChange
      ' End Wizard Added Object Disposal

      ' Begin Custom Code Disposal

      ' End Custom Code Disposal
      Dim dgvMy As epiUltraGrid = CType(csm.GetNativeControlReference("596e157d-0679-44c8-b484-3e4cb994c8dd"), epiUltraGrid)
      RemoveHandler dgvMy.DoubleClickCell, AddressOf dgvMy_DoubleClickCell
   End Sub

Private Sub dgvMy_DoubleClickCell(ByVal Sender As Object, ByVal args As Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs)
   'code to run
End Sub



________________________________
From: Rob Bucek <rbucek@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Thursday, March 29, 2012 5:57 PM
Subject: RE: [Vantage] Re: Onscreen event customization help

Interesting Ted, I wasn't aware that you could do that..do you have an example of a syntax? It would be a little less hokey doing it that way..

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<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 Ted Koch
Sent: Thursday, March 29, 2012 4:36 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Onscreen event customization help



I don't know if this is good practice or not, but you can capture events on the standard epicor controls. You just have to manually add the event handler when the form initializes.

________________________________
From: pbparker <scrumbus@...<mailto:scrumbus%40gmail.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Sent: Thursday, March 29, 2012 4:47 PM
Subject: [Vantage] Re: Onscreen event customization help

Ahhh, I see how you're working around it.. lol. I kept grinding on it thinking my code was bad and it's really that the events aren't properly firing on the built in fields apparently.

I'll try that workaround have tomorrow and let you know if it works.. good workaround idea though.

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Rob Bucek <rbucek@...> wrote:
>
> Somebody may have something better... occasionally ive had trouble capturing control events on standard epicor objects but that just may be my limited experience.. Ive used this technique to work around issues like that on the mes screen currently. I did a quick test and couldn't get it to fire from the native numeric editor, but here's what will work.
>
> Hide the original nbrnon field, remove the tab or jack it way up, place your own numeric editor in place.. another thing to note is that base functionality dictates the check box does not become active until you enter a reason code.. this cust does work around that but you should test to be sure its not doing anything you don't want it to...
>
> Module Script
>
>Â Â Â Â Private edvEnd As EpiDataView
>
>
>
>Â Â Â Â Â Â Â Â Sub InitializeCustomCode()
>Â Â Â Â edvEnd = CType(oTrans.EpiDataViews("End"), EpiDataView)
>
>
>Â Â Â Â Â Â Â Â End Sub
>
>
>Â Â Â Â Â Â Â Â Sub DestroyCustomCode()
>
>Â Â edvEnd = nothing
>
>Â Â Â Â Â Â Â Â End Sub
>
>Â Â Private Sub nedEpiCustom1_valuechanged(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles nedEpiCustom1.valuechanged
>Â Â Â Â '// ** Place Event Handling Code Here **
>Â Â If nedepicustom1.value > 0 Then
>Â Â edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
>Â Â edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 1
>Â Â otrans.notifyall()
>Â Â End If
>Â Â If nedepicustom1.value = 0 Then
>Â Â edvEnd.dataView(edvEnd.Row)("DiscrepQty") = nedepicustom1.value
>Â Â edvEnd.dataView(edvEnd.Row)("PrintNCTag") = 0
>Â Â otrans.notifyall()
>Â Â End If
>Â Â End sub
>
>
>
> End Module
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<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 pbparker
> Sent: Wednesday, March 28, 2012 4:59 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Onscreen event customization help
>
>
>
> Anyone have or create something like the following?
>
> When our MES people are ending activities, they're forgetting to print tags for nonconformances. I want to force the "Print" checkbox to be true onscreen when they enter a Non-Conform quantity (other than 0) and then tab.
>
> So, it would need to be an onscreen event not bound to any database activity. In a perfect world, if they were to set the value back to zero, I'd set the print checkbox back to false.
>
> I know likely only a small percentage of people have likely done something like this, but still throwing it out there as I've only done customizations that take place after an actual business activity interaction.
>
>
>
> [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]



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

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]