Customizing a Handheld screen

Can you use the Leave event on that text box? It will fire the instant
the user tabs or clicks outside that text box, before any data gets
updated... might be too soon for your needs.



Brian.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Tom J. Christie
Sent: Monday, October 08, 2012 11:49 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Customizing a Handheld screen





I am working on customizing a handheld screen and have an odd situation.
On the start production activity screen, there is a field for the jobnum
that is tied to an epicordataview called start. The underlying table
record that gets generated by the form when closed is a labordtl record.
I would like to be able to populate a few readonly textboxes when the
user leaves the jobnum textbox. If I use an afterfield change it does
not fire until the screen is closed (as the labordtl record is not
created until then). Any suggestions on how to get a OnExit event from
an Epicor base textbox?

Once I have a trigger that hits when the user leaves the field I can do
all the work of pulling the required data and populating the custom text
boxes.

Tom Christie

Manufacturing Engineer

AGM Container Controls
3526 E Ft. Lowell Road
Tucson, AZ 85716
PH: 520-881-2130
FX: 520-881-4983
www.AGMcontainer.com<http://www.agmcontainer.com/>

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





[Non-text portions of this message have been removed]
I am working on customizing a handheld screen and have an odd situation. On the start production activity screen, there is a field for the jobnum that is tied to an epicordataview called start. The underlying table record that gets generated by the form when closed is a labordtl record. I would like to be able to populate a few readonly textboxes when the user leaves the jobnum textbox. If I use an afterfield change it does not fire until the screen is closed (as the labordtl record is not created until then). Any suggestions on how to get a OnExit event from an Epicor base textbox?

Once I have a trigger that hits when the user leaves the field I can do all the work of pulling the required data and populating the custom text boxes.

Tom Christie

Manufacturing Engineer

AGM Container Controls
3526 E Ft. Lowell Road
Tucson, AZ 85716
PH: 520-881-2130
FX: 520-881-4983
www.AGMcontainer.com<http://www.agmcontainer.com/>



[Non-text portions of this message have been removed]
Epicor/Vantage is standard .net so adding an event is pretty straight forward. Code from memory and some quick cut and pastes so syntax may need adjusting.

adding a leave/exit event is the same for an epitextbox as for any .net control.

The existing control can not be referenced directly so we need to add an EpiTextBox declaration in the global area, use csm.GetNativeControlReference to point the new epiTextBox to the existing text box and then add the event.

Dim myJobNum as EpiTextBox ' in global area

' in initialize area
Dim GUID as String
GUID = "the GUID from the property of the existing EpiTextBox"
myJobNum = Ctype(csm.GetNativeControlReference(GUID),EpiTextBox)

AddHandler myJobNum.Leave, AddressOf Script.myJobNum_Leave

Jim Kinneman
Encompass Solutions, Inc.

--- In vantage@yahoogroups.com, "Tom J. Christie" <tchristie@...> wrote:
>
> I am working on customizing a handheld screen and have an odd situation. On the start production activity screen, there is a field for the jobnum that is tied to an epicordataview called start. The underlying table record that gets generated by the form when closed is a labordtl record. I would like to be able to populate a few readonly textboxes when the user leaves the jobnum textbox. If I use an afterfield change it does not fire until the screen is closed (as the labordtl record is not created until then). Any suggestions on how to get a OnExit event from an Epicor base textbox?
>
> Once I have a trigger that hits when the user leaves the field I can do all the work of pulling the required data and populating the custom text boxes.
>
> Tom Christie
>
> Manufacturing Engineer
>
> AGM Container Controls
> 3526 E Ft. Lowell Road
> Tucson, AZ 85716
> PH: 520-881-2130
> FX: 520-881-4983
> www.AGMcontainer.com<http://www.agmcontainer.com/>
>
>
>
> [Non-text portions of this message have been removed]
>