Grzegorz,
BPM 4GL code is run on the server, so if you have it pop up a message it
will arrive on the server if at all.
To pop up messages, you will need to use customizations. These run on
the client and will allow you to pop up messages. The process is
covered well in the Tools Guide.
If the pop up is just to confirm that the record is available, I expect
that I have solved that mystery in my last off list post to you.
Let us all know if the solution worked.
Aaron Hoyt
Vantage Plastics
phoenix wrote:
BPM 4GL code is run on the server, so if you have it pop up a message it
will arrive on the server if at all.
To pop up messages, you will need to use customizations. These run on
the client and will allow you to pop up messages. The process is
covered well in the Tools Guide.
If the pop up is just to confirm that the record is available, I expect
that I have solved that mystery in my last off list post to you.
Let us all know if the solution worked.
Aaron Hoyt
Vantage Plastics
phoenix wrote:
>[Non-text portions of this message have been removed]
> Rob,
>
> It will be very usefull if you can post 4GL code that can pop up a
> message box. Regarding ttCustomer.CustID - I was trying the most
> simple version like:
>
> OUTPUT TO "/usr/local/epicor/mfgsys803/bpm/GS/cus_u.txt".
> EXPORT ttCustomer.CustID.
> OUTPUT CLOSE.
>
> and the file cus_u.txt was created, inside the file was only the below
> information
>
> ** No ttCustomer record is available. (91)
>
> So it seems like ttCustomer table with some reasons is not available.
> As someone mentioned there is also possibility that Vantage doesn't
> commit the full write to DB, so I was trying also put into the file
> ttCustomer.Name which I changed before saving. The result was the same.
>
> The code which I paste above it is the whole code that I put into 4GL
> action, selecting "Execute code below" check box.
>
> Grzegorz Szczepañski
>
> Dnia Tue, 24 Jun 2008 16:15:13 -0700 (PDT)
> Robert Brown <robertb_versa@...
> <mailto:robertb_versa%40yahoo.com>> napisał(a):
>
> > Grzegorz,
> >
> > 4GL supports a pop up message box. I'm on vacation and don't have any
> > handy guide as to the syntax but it exists (as we've used it to debug
> > & build BPMs).
> >
> > The fact that you say ttCustomer.CustID set as an exception wasn't an
> > empty string suggest to me your concatenation code is at fault. It
> > could be as simple as requiring parenthesis around your
> >
> > STRING(NOW)+ "Base Customer.Update( )" + ttCustomer.CustID
> >
> > statement.
> >
> > You didn't list the full code so it is not possible to see if the
> > order of statements is causing your problem.
> >
> > I agree with using BPM over VB customizations. A single BPM can
> > impact multiple applications that trigger the same event (versus
> > having to customize multiple apps to get the same total effect).
> >
> > Rob Brown
> >
> >
> >
> > --- On Tue, 6/24/08, phoenix <phoenix_@...
> <mailto:phoenix_%40wp.pl>> wrote:
> > From: phoenix <phoenix_@... <mailto:phoenix_%40wp.pl>>
> > Subject: Re: [Vantage] 4GL in BPM (or .NET method)
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Date: Tuesday, June 24, 2008, 5:23 PM
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I was already trying to use BEFORE Customer.Update but
> > the result was
> >
> > the same. Regarding Message Box. I am using 4GL code, and I can't
> >
> > display any graphical notification at this level.
> >
> >
> >
> > But I raised exception with ttCustomer.CustID field as parameter and
> > it
> >
> > wasn't empty string.
> >
> >
> >
> > So two actions. The first one output to file information that
> >
> > ttCustomer.CustID is empty and the 2'nd is showing me that data.
> >
> > Strange for me.
> >
> >
> >
> > The build in Vantage ChangeLog doesn't handle all the fields. The
> >
> > structure of this changeLog is also not good for further processing.
> >
> >
> >
> > The way with using customisation and grab data after customer "update"
> >
> > adapter was invoked is also one of my aproach but is seems to be less
> >
> > clear than having everything in one place (BPM).
> >
> >
> >
> > Grzegorz Szczepański
> >
> >
> >
> > Dnia Mon, 23 Jun :22: (PDT)
> >
> > Robert Brown <robertb_versa@ yahoo.com> napisał(a):
> >
> >
> >
> > > Try executing BEFORE the update actually occurs. The tt data may be
> >
> > > null after update as it may only reflect in-app-session changes to
> >
> > > data that are then used to update the db in a full commit write.
> > > With
> >
> > > the inconsistencies I've seen in VB.NET object method & property
> >
> > > polling behavior, I suspect some apps don't carry a full copy of the
> >
> > > data set in the tt data.
> >
> > >
> >
> > > Also: Just to be sure it isn't a syntax issue with your
> > > concatenation
> >
> > > of multiple values (or with your export file), try to display
> >
> > > ttCustomer.CustID in a message box window to see if you still get
> > > the
> >
> > > error message.
> >
> > >
> >
> > > If that works, try displaying your concatenated string in the
> > > message
> >
> > > box (and if that works, try exporting it to your file).
> >
> > >
> >
> > > It looks like you are doing nothing more than creating a change log
> >
> > > file.
> >
> > >
> >
> > > Why not just use Vantage's built in change log?
> >
> > >
> >
> > > RE: Doing this with VB.NET customization: You can probably trap the
> >
> > > after customer adapter 'update' method and grab the updated value
> >
> > > from the record open on screen. (Trapping both before and after
> >
> > > update would give you the old value and the new changed-to value if
> >
> > > that is your goal.)
> >
> > >
> >
> > > Rob Brown
> >
> > >
> >
> > > --- On Mon, 6/23/08, phoenix <phoenix_@wp. pl> wrote:
> >
> > > From: phoenix <phoenix_@wp. pl>
> >
> > > Subject: [Vantage] 4GL in BPM (or .NET method)
> >
> > > To: vantage@yahoogroups .com
> >
> > > Date: Monday, June 23, 2008, 3:15 AM
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > Hi,
> >
> > >
> >
> > >
> >
> > >
> >
> > > I am trying to use 4GL code in BPM to get data from Vantage and put
> > > it
> >
> > >
> >
> > > into file. I want to do this each time Customer.Update method is
> >
> > >
> >
> > > executed.
> >
> > >
> >
> > >
> >
> > >
> >
> > > Please take a look at code I am executing
> >
> > >
> >
> > >
> >
> > >
> >
> > > OUTPUT TO "/path/to/my/ file.txt" .
> >
> > >
> >
> > > EXPORT STRING(NOW)+ "Base Customer.Update( )" + ttCustomer.CustID.
> >
> > >
> >
> > > OUTPUT CLOSE.
> >
> > >
> >
> > >
> >
> > >
> >
> > > Unfortunately the ttCustomer is temp table and in output file I get
> >
> > >
> >
> > > "** No ttCustomer record is available. (91)"
> >
> > >
> >
> > >
> >
> > >
> >
> > > Can anyone know how can I have an access to data of Customer being
> >
> > >
> >
> > > updated? or maybe someone have an example of .NET method that I can
> >
> > >
> >
> > > modify?
> >
> > >
> >
> > >
> >
> > >
> >
> > > Grzegorz Szczepañski
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>