SUMMARY: Accessing Control of type EpiDateTimeEditor

Hello Everyone,

I just want to share my solution in case someone else has a need for
it. Apparently, there is a very limited number of events available
when working with Epicor Base controls.

Instead of working with the controls directly, I am working with the
table and field changed instead since they are binded to the control.

My original objective was to triger an alert when a field value was
changed; in my previous example was the Ship date EpiDateTimeEditor;
so instead, I entered the following code which did the trick. I am
only performing an message box in this example, however, I will
performing other actions in my final customization.


Private Sub OrderHed_AfterFieldChange(ByVal sender As object,
ByVal args As DataColumnChangeEventArgs) Handles
OrderHed_Column.ColumnChanged

Select Case args.Column.ColumnName
Case "NeedByDate"
msgbox("A new date has been entered")
Case Else
End Select
End Sub

This will work regardless if it is a Base Control or Custom Control.

Percy Perez


--- In vantage@yahoogroups.com, Percy Perez <therealhackercat@...>
wrote:
>
> Hello Everyone,
>
> hopefully someone can help. I am trying to access the
> Ship Date value in Order Entry. if it changes its
> value, ultimately I would like to compare it to
> another field, finish by.
>
> I tried accessing the field by doing
>
> Private WithEvents edvShipDate As EpiDateTimeEditor
>
> edvShipDate =
> CType(csm.GetNativeControlReference("47b19f90-8d13-4fd9-8310-
ab75ad6f8224"),
> EpiDateTimeEditor)
>
> Private Sub edvShipDate_ValueChanged(ByVal Sender As
> Object, ByVal Args As System.EventArgs) Handles
> edvShipDate.ValueChanged
> '// ** Place Event Handling Code Here **
> MsgBox("I lost focus from Ship Date",
> MsgBoxStyle.Critical, "title")
> End Sub
>
> Can anyone see why the above code is not working?
> Also, does anyone know where I can find the various
> events available for control type EpiDateTimeEditor?
>
> I went to http://www.infragistics.com but the
> information on this control was a little lacking.
>
> thanks.
>
> Percy
>
>
>
>
______________________________________________________________________
______________
> Need a vacation? Get great deals
> to amazing places on Yahoo! Travel.
> http://travel.yahoo.com/
>
Hello Everyone,

hopefully someone can help. I am trying to access the
Ship Date value in Order Entry. if it changes its
value, ultimately I would like to compare it to
another field, finish by.

I tried accessing the field by doing

Private WithEvents edvShipDate As EpiDateTimeEditor

edvShipDate =
CType(csm.GetNativeControlReference("47b19f90-8d13-4fd9-8310-ab75ad6f8224"),
EpiDateTimeEditor)

Private Sub edvShipDate_ValueChanged(ByVal Sender As
Object, ByVal Args As System.EventArgs) Handles
edvShipDate.ValueChanged
'// ** Place Event Handling Code Here **
MsgBox("I lost focus from Ship Date",
MsgBoxStyle.Critical, "title")
End Sub

Can anyone see why the above code is not working?
Also, does anyone know where I can find the various
events available for control type EpiDateTimeEditor?

I went to http://www.infragistics.com but the
information on this control was a little lacking.

thanks.

Percy



____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/