BPM help: ** Unable to update ttJobHead Field. (142)

Jose, that is a very clear explanation, thank you.



----- Original Message ----
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Thu, June 30, 2011 11:02:20 AM
Subject: Re: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)

Pre happens before the BO method call is executed so for example if you are
trying to set value X to a field when you run update, you want to do that in
pre-processing since the value will be set and then the update method will
be called. (thus your data will be committed to the data-set and your UI
will be updated accordingly)

If you try this in post processing you can run into the all to annoying
(someone else modified this error)


When you want to use post is when the BO itself generates the data you want
to modify say CreateOrder from Quote, if you are trying to modify some value
on the Order that is generated that data will not be available to you in
pre-processing (since the order has not yet been generated)
However it will be there on post processing.


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Jun 30, 2011 at 11:54 AM, Tony Hughes <thughes281@...> wrote:

> **
>
>
> Thank you Kevin.
> I have always been a little confused on when was best for pre, and when was
> best
> for post.
>
> Example, I have some modifications to the order release in SalesOrderUpdate
> and
> only way I could get it to work was on post.
>
> I'll try what you suggest, thanks!
>
> ________________________________
> From: Kevin Simon <ksimon@...>
> To: vantage@yahoogroups.com
> Sent: Thu, June 30, 2011 10:35:16 AM
> Subject: RE: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)
>
>
> Tony,
>
> I'm not sure why you're doing this in a post routine. I'd recommend you do
> it in a pre-routine.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of
> Tony Hughes
> Sent: Thursday, June 30, 2011 11:28 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)
>
> I am testing a BPM that sets jobhead.userdate1 field to today's date when
> the
> job is released.
>
> The directive is the preChangeJobHeadJobRelease.
> Pre conditions: none
> Pre actions: enable dependent post process directives
> Post conditions: Directive has been enabled...
> Post actions: synchronously execute 4GL, output to c:\test.txt
>
> The 4Gl code is sparse at the moment, this is still just being worked out,
> but
> is basically just:
>
> assign ttJobHead.UserDate1 = Today.
>
> The output file says: ** Unable to update ttJobHead Field. (142)
>
> Anyone know what this means?
>
> [Non-text portions of this message have been removed]
>
> [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
I am testing a BPM that sets jobhead.userdate1 field to today's date when the
job is released.

The directive is the preChangeJobHeadJobRelease.
Pre conditions: none
Pre actions: enable dependent post process directives
Post conditions: Directive has been enabled...
Post actions: synchronously execute 4GL, output to c:\test.txt

The 4Gl code is sparse at the moment, this is still just being worked out, but
is basically just:

assign ttJobHead.UserDate1 = Today.

The output file says: ** Unable to update ttJobHead Field. (142)

Anyone know what this means?
Tony,



I'm not sure why you're doing this in a post routine. I'd recommend you do
it in a pre-routine.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Tony Hughes
Sent: Thursday, June 30, 2011 11:28 AM
To: vantage@yahoogroups.com
Subject: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)





I am testing a BPM that sets jobhead.userdate1 field to today's date when
the
job is released.

The directive is the preChangeJobHeadJobRelease.
Pre conditions: none
Pre actions: enable dependent post process directives
Post conditions: Directive has been enabled...
Post actions: synchronously execute 4GL, output to c:\test.txt

The 4Gl code is sparse at the moment, this is still just being worked out,
but
is basically just:

assign ttJobHead.UserDate1 = Today.

The output file says: ** Unable to update ttJobHead Field. (142)

Anyone know what this means?





[Non-text portions of this message have been removed]
Thank you Kevin.
I have always been a little confused on when was best for pre, and when was best
for post.

Example, I have some modifications to the order release in SalesOrderUpdate and
only way I could get it to work was on post.

I'll try what you suggest, thanks!





________________________________
From: Kevin Simon <ksimon@...>
To: vantage@yahoogroups.com
Sent: Thu, June 30, 2011 10:35:16 AM
Subject: RE: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)


Tony,

I'm not sure why you're doing this in a post routine. I'd recommend you do
it in a pre-routine.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Tony Hughes
Sent: Thursday, June 30, 2011 11:28 AM
To: vantage@yahoogroups.com
Subject: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)

I am testing a BPM that sets jobhead.userdate1 field to today's date when
the
job is released.

The directive is the preChangeJobHeadJobRelease.
Pre conditions: none
Pre actions: enable dependent post process directives
Post conditions: Directive has been enabled...
Post actions: synchronously execute 4GL, output to c:\test.txt

The 4Gl code is sparse at the moment, this is still just being worked out,
but
is basically just:

assign ttJobHead.UserDate1 = Today.

The output file says: ** Unable to update ttJobHead Field. (142)

Anyone know what this means?

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




[Non-text portions of this message have been removed]
Pre happens before the BO method call is executed so for example if you are
trying to set value X to a field when you run update, you want to do that in
pre-processing since the value will be set and then the update method will
be called. (thus your data will be committed to the data-set and your UI
will be updated accordingly)

If you try this in post processing you can run into the all to annoying
(someone else modified this error)


When you want to use post is when the BO itself generates the data you want
to modify say CreateOrder from Quote, if you are trying to modify some value
on the Order that is generated that data will not be available to you in
pre-processing (since the order has not yet been generated)
However it will be there on post processing.


*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Jun 30, 2011 at 11:54 AM, Tony Hughes <thughes281@...> wrote:

> **
>
>
> Thank you Kevin.
> I have always been a little confused on when was best for pre, and when was
> best
> for post.
>
> Example, I have some modifications to the order release in SalesOrderUpdate
> and
> only way I could get it to work was on post.
>
> I'll try what you suggest, thanks!
>
> ________________________________
> From: Kevin Simon <ksimon@...>
> To: vantage@yahoogroups.com
> Sent: Thu, June 30, 2011 10:35:16 AM
> Subject: RE: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)
>
>
> Tony,
>
> I'm not sure why you're doing this in a post routine. I'd recommend you do
> it in a pre-routine.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of
> Tony Hughes
> Sent: Thursday, June 30, 2011 11:28 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] BPM help: ** Unable to update ttJobHead Field. (142)
>
> I am testing a BPM that sets jobhead.userdate1 field to today's date when
> the
> job is released.
>
> The directive is the preChangeJobHeadJobRelease.
> Pre conditions: none
> Pre actions: enable dependent post process directives
> Post conditions: Directive has been enabled...
> Post actions: synchronously execute 4GL, output to c:\test.txt
>
> The 4Gl code is sparse at the moment, this is still just being worked out,
> but
> is basically just:
>
> assign ttJobHead.UserDate1 = Today.
>
> The output file says: ** Unable to update ttJobHead Field. (142)
>
> Anyone know what this means?
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>


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