Hello,
The reason I didn't try this is because I assumed that only queries
could go in there as opposed to conditional statements.
What I was trying to achieve was something like this:
If CUR-WORKSTATIONID = " " then
Return True
Else
Return False
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Waffqle
Sent: Wednesday, January 19, 2011 1:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: BPM: Writing code for Conditions
Use the
'number of rows in the DESIGNED QUERY is EQUAL TO #'
you should be able to do what you need with that.
If it's giving you trouble, perhaps you could give us some specifics of
the condition you want to implement?
The reason I didn't try this is because I assumed that only queries
could go in there as opposed to conditional statements.
What I was trying to achieve was something like this:
If CUR-WORKSTATIONID = " " then
Return True
Else
Return False
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Waffqle
Sent: Wednesday, January 19, 2011 1:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: BPM: Writing code for Conditions
Use the
'number of rows in the DESIGNED QUERY is EQUAL TO #'
you should be able to do what you need with that.
If it's giving you trouble, perhaps you could give us some specifics of
the condition you want to implement?
On Tue, Jan 18, 2011 at 9:46 PM, Joe Rojas <jrojas@...> wrote:
>
>
> Thanks Carl,
>
> In this case though, I wanted to use the canned action of calling a
> BPM Data Form if the condition is true.
>
> The problem is that all of the canned conditions do not meet my needs
> so I was hoping to write an advanced condition.
>
> From: vantage@yahoogroups.com <vantage%40yahoogroups.com> [mailto:
> vantage@yahoogroups.com <vantage%40yahoogroups.com>] On Behalf Of
> CarlH
> Sent: Tuesday, January 18, 2011 9:38 PM
> To: vantage@yahoogroups.com <vantage%40yahoogroups.com>
> Subject: [Vantage] Re: BPM: Writing code for Conditions
>
>
> Sorry - got cut off somehow:
>
> I've had better results in writing the custom condition in the actions
> section.
>
> It looks something like this:
>
> find first ttorderhed where orderhed.rowmod = "U" or
> ttorderhed.rowmod="A"
> no-lock no-error.
> if available ttorderhed then do:
> if orderhed.custnum=4 then do: /* or any condition that you want */
>
> /* action item */
>
> end.
> end.
>
> --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <mailto:
> vantage%40yahoogroups.com <vantage%2540yahoogroups.com>> ,
>
> "CarlH" <carl.heeder@...> wrote:
> >
> > I've had better results in writing the custom condition in the
> > actions
> section.
> >
> > It looks something like this:
> >
> > find first ttorderhed where orderhed.rowmod = "U" or
> ttorderhed.rowmod="A" no-lock no-error.
> > if available ttorderhed then do:
> >
> >
> >
> > --- In vantage@yahoogroups.com <vantage%40yahoogroups.com> <mailto:
> vantage%40yahoogroups.com <vantage%2540yahoogroups.com>> ,
>
> Joe Rojas <jrojas@> wrote:
> > >
> > > Hi All,
> > >
> > >
> > >
> > > In a BPM, it looks like I can write separate code blocks for both
> the
> > > Conditions and Actions of a BPM.
> > >
> > >
> > >
> > > I'd like to be able to write code for the conditions portions and
> use a
> > > canned action.
> > >
> > > How do I write the conditions portions to determine if the Actions
> will
> > > run? Meaning, what is the structure needed for the code in order
> > > to
> pass
> > > back a true or a false?
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... <jrojas%40matsinc.com> | www.matsinc.com Ask us
> about our clean, green and beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not
> the named addressee you should not disseminate, distribute or copy
this e-mail.
> Please notify the sender immediately by e-mail if you have received
> this e-mail by mistake. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company.
>
>
> [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