PICK FROM requires WHERE for Business Objects

If you think that something doesn't work in Aware IM post your message here
Post Reply
baskosi
Posts: 50
Joined: Fri Sep 29, 2006 9:15 pm
Location: Slovenia
Contact:

PICK FROM requires WHERE for Business Objects

Post by baskosi »

Hi,

It seems to me that rules in Processes require WHERE clause to be added when using PICK FROM <business object>.

If PostCode is a BO, following doesn't work:

PICK FROM PostCode

It says: "rule '' uses query 'PostCode' which has not been found"

It looks like it is interpreting PostCode to be a query name. When I add WHERE clause it doesn't complain:

PICK FROM PostCode WHERE PostCode.ID IS DEFINED

I have no problem adding WHERE. It is much easier than creating all those queries I wrote before realizing this :D
Borut
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

If you want to pick from all instances of a BO you should write your rule as:

PICK FROM ALL PostCode

Otherwise the name is interpreted as query name.
Aware IM Support Team
baskosi
Posts: 50
Joined: Fri Sep 29, 2006 9:15 pm
Location: Slovenia
Contact:

Post by baskosi »

Thanks.

User Guide doesn't mention this option but it looks familiar now that you wrote it. Maybe I've read it in some other manual.
Borut
Post Reply