OK. Main problem is that I added the code in the conditions area not in the actions area.
Thanks for the suggestions
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]
>