I had one in MES that triggered 3-4 times and needed to reduce the time so I
tried a boolean variable approach.
Something like this in the module level variable section:
Dim IsRun As Boolean = False
In the EpiViewNotification try something like this:
If IsRun = False Then
(Your Code)
IsRun = True
End If
This works great when you are opening and closing a form once per session.
If the form is open for multiple actions maybe you could reset IsRun to
false after a GetList or GetByID method...whatever makes sense in your
workflow.
As Bernie said, it is pretty benign with light code. If you have a lot
going on (like calling busy subroutines) it does make a difference.
Just some thoughts.
Ross
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
bw2868bond
Sent: Wednesday, April 07, 2010 2:16 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: E9 - Customization: Which Form Event?
It has a tendency to do that (the multiple times part) as long as you arent
making intensive queries as a result it seems pretty harmless.
I really haven't found a better way
tried a boolean variable approach.
Something like this in the module level variable section:
Dim IsRun As Boolean = False
In the EpiViewNotification try something like this:
If IsRun = False Then
(Your Code)
IsRun = True
End If
This works great when you are opening and closing a form once per session.
If the form is open for multiple actions maybe you could reset IsRun to
false after a GetList or GetByID method...whatever makes sense in your
workflow.
As Bernie said, it is pretty benign with light code. If you have a lot
going on (like calling busy subroutines) it does make a difference.
Just some thoughts.
Ross
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
bw2868bond
Sent: Wednesday, April 07, 2010 2:16 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: E9 - Customization: Which Form Event?
It has a tendency to do that (the multiple times part) as long as you arent
making intensive queries as a result it seems pretty harmless.
I really haven't found a better way
--- In vantage@yahoogroups.com, Joe Rojas <jrojas@...> wrote:
>
> Thank you!
>
> This worked but I have a follow up question.
>
> I put a MessageBox in there to see when this code is triggered.
>
> As the part is loading and as you move from part to part, the code is
> executed 4 times.
>
> Is this just the nature of the beast or is there anything I can do to
> "streamline" this?
>
> My code is pretty quick but if it wasn't, this might add too much time.
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of bw2868bond
> Sent: Wednesday, April 07, 2010 2:49 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: E9 - Customization: Which Form Event?
>
>
>
>
>
> I typically use epidataview notification
> If eventtype is initialize and row count > -1 then you have data
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Joe
> Rojas <jrojas@> wrote:
> >
> > Hi All,
> >
> >
> >
> > I am creating a customization for the Part Maintenance form.
> >
> > I would like to add code that triggers after part details are
> retrieved.
> > My code is dependent on a value in a specific field so the code would
> > need to be triggered after the data is loaded.
> >
> >
> >
> > Which form event (is it a form event?) should I use?
> >
> >
> >
> > A couple of scenarios that I can picture where the code needs to be
> > trigger is:
> >
> > 1) Part form is opened, user enters or searches for a part number,
> > data is retrieved/loaded, code is triggered.
> >
> > 2) A user selects more than one part number when searching, user
> > moves from one part to another, data is loaded, code is triggered.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Joe Rojas | Director of Information Technology | Mats Inc
> > dir: 781-573-0291 | cell: 781-408-1264 | fax: 781-341-5694
> > jrojas@ | www.matsinc.com Ask us about our clean, green and
> beautiful matting and flooring
> >
> >
> > This message is intended only for the individual named. If you are not
> the named addressee you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately by e-mail if you have
> received this e-mail by mistake. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company.
> >
> >
> > [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/.
(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