PerformClick() on EpiButton issue

Let me know if you want me to send you my version (the xml customization
file), its currently deployed and works well. We are on version
8.03.409a...



Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

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 drew.pete
Sent: Monday, September 20, 2010 8:14 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: PerformClick() on EpiButton issue





Rob,

Thanks for the tip. I tried it but sadly that didn't work either. I know
it's identifying the button correctly it's just not executing the method
PerformClick(). Hopefully I can get at it again later today.

Thanks again,

Drew

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Rob
Bucek" <rbucek@...> wrote:
>
> Two things I did to make this work..
>
>
>
> Define your custom button in a form load event, for example..
>
>
>
>
>
> Private Sub StartProdForm_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles StartProdForm.Load
>
> '//
>
> '// Add Event Handler Code
>
> '//
>
> btnOK =
>
CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton)
>
> End Sub
>
>
>
> Then...
>
>
>
> Change --
>
CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton).PerformClick()
>
>
>
> To
>
>
>
> btnSetupOK.PerformClick()
>
>
>
> HTH
>
>
>
> Rob Bucek
>
> Production Control Manager
>
> PH: (715) 284-5376 ext 311
>
> Mobile: (715)896-0590
>
> 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 drew.pete
> Sent: Thursday, September 16, 2010 4:06 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] PerformClick() on EpiButton issue
>
>
>
>
>
> So I have a button on a separate tab in MES that I would to use to
> invoke the "OK" button on the main MES tab in the End Activity form.
I'm
> using the custom button click event as a trigger. Here is the
following
> code I'm using. When I click my custom button it does not
performclick()
> of the other button like it should. I know that the event trigger is
ok
> and that I'm using the GetNativeControlReference because I checked the
> text property of that declaration and it came back ok.
>
> Private Sub btnSetupOK_Click(ByVal Sender As Object, ByVal Args As
> System.EventArgs) Handles btnSetupOK.Click
> '// ** Place Event Handling Code Here **
>
> 'Messagebox.Show("Button was clicked")
>
>
>
CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton).PerformClick()
>
> End Sub
>
> Any thoughts?
>
> Thanks,
>
> Drew
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
So I have a button on a separate tab in MES that I would to use to invoke the "OK" button on the main MES tab in the End Activity form. I'm using the custom button click event as a trigger. Here is the following code I'm using. When I click my custom button it does not performclick() of the other button like it should. I know that the event trigger is ok and that I'm using the GetNativeControlReference because I checked the text property of that declaration and it came back ok.

Private Sub btnSetupOK_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnSetupOK.Click
'// ** Place Event Handling Code Here **

'Messagebox.Show("Button was clicked")


CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62e"), EpiButton).PerformClick()

End Sub

Any thoughts?

Thanks,

Drew
Crap, almost forgot...



Also in the module script section make the following declaration



private withevents btnSetupOK as epibutton



Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

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 drew.pete
Sent: Thursday, September 16, 2010 4:06 PM
To: vantage@yahoogroups.com
Subject: [Vantage] PerformClick() on EpiButton issue





So I have a button on a separate tab in MES that I would to use to
invoke the "OK" button on the main MES tab in the End Activity form. I'm
using the custom button click event as a trigger. Here is the following
code I'm using. When I click my custom button it does not performclick()
of the other button like it should. I know that the event trigger is ok
and that I'm using the GetNativeControlReference because I checked the
text property of that declaration and it came back ok.

Private Sub btnSetupOK_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnSetupOK.Click
'// ** Place Event Handling Code Here **

'Messagebox.Show("Button was clicked")


CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
e"), EpiButton).PerformClick()

End Sub

Any thoughts?

Thanks,

Drew





[Non-text portions of this message have been removed]
Two things I did to make this work..



Define your custom button in a form load event, for example..





Private Sub StartProdForm_Load(ByVal sender As object, ByVal args As
EventArgs) Handles StartProdForm.Load

'//

'// Add Event Handler Code

'//

btnOK =
CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
e"), EpiButton)

End Sub



Then...



Change --
CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
e"), EpiButton).PerformClick()



To



btnSetupOK.PerformClick()



HTH



Rob Bucek

Production Control Manager

PH: (715) 284-5376 ext 311

Mobile: (715)896-0590

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 drew.pete
Sent: Thursday, September 16, 2010 4:06 PM
To: vantage@yahoogroups.com
Subject: [Vantage] PerformClick() on EpiButton issue





So I have a button on a separate tab in MES that I would to use to
invoke the "OK" button on the main MES tab in the End Activity form. I'm
using the custom button click event as a trigger. Here is the following
code I'm using. When I click my custom button it does not performclick()
of the other button like it should. I know that the event trigger is ok
and that I'm using the GetNativeControlReference because I checked the
text property of that declaration and it came back ok.

Private Sub btnSetupOK_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnSetupOK.Click
'// ** Place Event Handling Code Here **

'Messagebox.Show("Button was clicked")


CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
e"), EpiButton).PerformClick()

End Sub

Any thoughts?

Thanks,

Drew





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

Thanks for the tip. I tried it but sadly that didn't work either. I know it's identifying the button correctly it's just not executing the method PerformClick(). Hopefully I can get at it again later today.

Thanks again,

Drew

--- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@...> wrote:
>
> Two things I did to make this work..
>
>
>
> Define your custom button in a form load event, for example..
>
>
>
>
>
> Private Sub StartProdForm_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles StartProdForm.Load
>
> '//
>
> '// Add Event Handler Code
>
> '//
>
> btnOK =
> CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton)
>
> End Sub
>
>
>
> Then...
>
>
>
> Change --
> CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton).PerformClick()
>
>
>
> To
>
>
>
> btnSetupOK.PerformClick()
>
>
>
> HTH
>
>
>
> Rob Bucek
>
> Production Control Manager
>
> PH: (715) 284-5376 ext 311
>
> Mobile: (715)896-0590
>
> 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 drew.pete
> Sent: Thursday, September 16, 2010 4:06 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] PerformClick() on EpiButton issue
>
>
>
>
>
> So I have a button on a separate tab in MES that I would to use to
> invoke the "OK" button on the main MES tab in the End Activity form. I'm
> using the custom button click event as a trigger. Here is the following
> code I'm using. When I click my custom button it does not performclick()
> of the other button like it should. I know that the event trigger is ok
> and that I'm using the GetNativeControlReference because I checked the
> text property of that declaration and it came back ok.
>
> Private Sub btnSetupOK_Click(ByVal Sender As Object, ByVal Args As
> System.EventArgs) Handles btnSetupOK.Click
> '// ** Place Event Handling Code Here **
>
> 'Messagebox.Show("Button was clicked")
>
>
> CType(csm.GetNativeControlReference("025fc115-fee3-4973-946e-ba209189d62
> e"), EpiButton).PerformClick()
>
> End Sub
>
> Any thoughts?
>
> Thanks,
>
> Drew
>
>
>
>
>
> [Non-text portions of this message have been removed]
>