BPM: Change the value of a field

Thanks Rob.



I tried that too and it didn't work. For the heck of it, I tried
wrapping it in a FOR EACH ttPart statement and it worked.



I ended up with:

FOR EACH ttPart NO-LOCK.



IF ttPart.OnHold = FALSE THEN

assign ttPart.ShortChar01 = "".

ELSE

assign ttPart.ShortChar01 = DCD-USERID.



END.



I assumed I didn't need to do this where I was only going to be working
with one record. Chaulk it up to being a newbie at this 4GL stuff.



Joe



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Rob Bucek
Sent: Friday, July 10, 2009 2:26 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] BPM: Change the value of a field








Try...

IF ttPart.OnHold = FALSE THEN

Assign ttPart.ShortChar01 = "". ELSE
assign ttPart.ShortChar01 = DCD-USERID.

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Rojas, Joe
Sent: Friday, July 10, 2009 1:17 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] BPM: Change the value of a field

Hi All,

Vantage 8.03.305K

I'm trying to create a BPM that will store the user's id in
Part.ShortChar01 whenever someone puts the part on hold and clears out
Part.ShortChar01 when someone takes it off of hold.

I created a Pre-Processing BPM on Part.Update that has conditions that
check to see if ttPart.OnHold goes from FALSE to TRUE or TRUE to FALSE.

My action is to execute the 4GL code below.

When I test the BPM out, I get an error stating that an unexpected error
was encountered to check the appserver logs.

My 4GL is as follows (This validates when I click the validate button):

IF ttPart.OnHold = FALSE THEN ttPart.ShortChar01 = "". ELSE
ttPart.ShortChar01 = DCD-USERID.

Any ideas on what I'm missing?

Also, where are those appserver logs?

Joe Rojas

Information Technology Manager

Symmetry Medical New Bedford

P: 508.998.4575

M:508.838.4717

F:508.995.9597

joe.rojas@... <mailto:joe.rojas%40symmetrynb.com>
<mailto:joe.rojas%40symmetrynb.com>

[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]
Hi All,



Vantage 8.03.305K



I'm trying to create a BPM that will store the user's id in
Part.ShortChar01 whenever someone puts the part on hold and clears out
Part.ShortChar01 when someone takes it off of hold.



I created a Pre-Processing BPM on Part.Update that has conditions that
check to see if ttPart.OnHold goes from FALSE to TRUE or TRUE to FALSE.

My action is to execute the 4GL code below.

When I test the BPM out, I get an error stating that an unexpected error
was encountered to check the appserver logs.



My 4GL is as follows (This validates when I click the validate button):

IF ttPart.OnHold = FALSE THEN ttPart.ShortChar01 = "". ELSE
ttPart.ShortChar01 = DCD-USERID.



Any ideas on what I'm missing?

Also, where are those appserver logs?





Joe Rojas

Information Technology Manager

Symmetry Medical New Bedford

P: 508.998.4575

M:508.838.4717

F:508.995.9597

joe.rojas@...





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





IF ttPart.OnHold = FALSE THEN

Assign ttPart.ShortChar01 = "". ELSE
assign ttPart.ShortChar01 = DCD-USERID.





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Rojas, Joe
Sent: Friday, July 10, 2009 1:17 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BPM: Change the value of a field





Hi All,

Vantage 8.03.305K

I'm trying to create a BPM that will store the user's id in
Part.ShortChar01 whenever someone puts the part on hold and clears out
Part.ShortChar01 when someone takes it off of hold.

I created a Pre-Processing BPM on Part.Update that has conditions that
check to see if ttPart.OnHold goes from FALSE to TRUE or TRUE to FALSE.

My action is to execute the 4GL code below.

When I test the BPM out, I get an error stating that an unexpected error
was encountered to check the appserver logs.

My 4GL is as follows (This validates when I click the validate button):

IF ttPart.OnHold = FALSE THEN ttPart.ShortChar01 = "". ELSE
ttPart.ShortChar01 = DCD-USERID.

Any ideas on what I'm missing?

Also, where are those appserver logs?

Joe Rojas

Information Technology Manager

Symmetry Medical New Bedford

P: 508.998.4575

M:508.838.4717

F:508.995.9597

joe.rojas@... <mailto:joe.rojas%40symmetrynb.com>

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





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