BPM Help! Blank Title 70527

OK. Main problem is that I added the code in the conditions area not in the actions area.

Thanks for the suggestions

--- In vantage@yahoogroups.com, Waffqle Driggers <waffqle@...> wrote:
>
> Not sure, but is there a reason why you're doing it this way instead of just
> putting a condition on the BPM?
> Not really an answer, I know, but I imagine it might fix your problem.
>
> On Thu, Nov 18, 2010 at 2:48 PM, CarlH <carl.heeder@...> wrote:
>
> >
> >
> > What's wrong with this BPM code?
> > It executes the action no matter what the value of checkbox01 is
> >
> > find first ttorderdtl where lookup(ttorderdtl.rowmod,"A","U")>0 no-lock
> > no-error.
> > if available ttorderdtl then do:
> > find first customer where customer.CustNum = ttorderdtl.CustNum no-lock
> > no-error.
> > if available customer then do:
> > message "found customer" + customer.Name + ": checkbox value:" +
> > string(customer.CheckBox01).
> >
> > if not (customer.CheckBox01 ) then do:
> >
> > {&CALL_DESIGNED_CONDITIONS}
> >
> > end.
> > end.
> > end.
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
Vantage 8.03.406

Ok, I am probably over my head on this one, but thought I would throw
it out anyway to see if someone can get me headed in the right
direction.

We have problems where we are not getting material issued to the Job.
I thought to create a BPM that would email when time or quantity is
posted against the first machining operation and no material has been
issued.

Before you ask... can't get the buy-in to backflush raw material. I am
backflushing some items, which would need to be considered. We do not
have MES, so labor is posted manually.

Any thoughts?

Jeff
What's wrong with this BPM code?
It executes the action no matter what the value of checkbox01 is

find first ttorderdtl where lookup(ttorderdtl.rowmod,"A","U")>0 no-lock no-error.
if available ttorderdtl then do:
find first customer where customer.CustNum = ttorderdtl.CustNum no-lock no-error.
if available customer then do:
message "found customer" + customer.Name + ": checkbox value:" + string(customer.CheckBox01).

if not (customer.CheckBox01 ) then do:

{&CALL_DESIGNED_CONDITIONS}

end.
end.
end.
Not sure, but is there a reason why you're doing it this way instead of just
putting a condition on the BPM?
Not really an answer, I know, but I imagine it might fix your problem.

On Thu, Nov 18, 2010 at 2:48 PM, CarlH <carl.heeder@...> wrote:

>
>
> What's wrong with this BPM code?
> It executes the action no matter what the value of checkbox01 is
>
> find first ttorderdtl where lookup(ttorderdtl.rowmod,"A","U")>0 no-lock
> no-error.
> if available ttorderdtl then do:
> find first customer where customer.CustNum = ttorderdtl.CustNum no-lock
> no-error.
> if available customer then do:
> message "found customer" + customer.Name + ": checkbox value:" +
> string(customer.CheckBox01).
>
> if not (customer.CheckBox01 ) then do:
>
> {&CALL_DESIGNED_CONDITIONS}
>
> end.
> end.
> end.
>
>
>


[Non-text portions of this message have been removed]
One problem I see is that I think you want lookup(ttorderdtl.rowmod,"A,U")>0




________________________________
From: CarlH <carl.heeder@...>
To: vantage@yahoogroups.com
Sent: Thu, November 18, 2010 2:48:36 PM
Subject: [Vantage] BPM Help!

Â
What's wrong with this BPM code?
It executes the action no matter what the value of checkbox01 is

find first ttorderdtl where lookup(ttorderdtl.rowmod,"A","U")>0 no-lock
no-error.
if available ttorderdtl then do:
find first customer where customer.CustNum = ttorderdtl.CustNum no-lock
no-error.
if available customer then do:
message "found customer" + customer.Name + ": checkbox value:" +
string(customer.CheckBox01).

if not (customer.CheckBox01 ) then do:

{&CALL_DESIGNED_CONDITIONS}

end.
end.
end.







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