Query Filtering - Query by Form

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
eyeargan
Posts: 55
Joined: Sat Mar 17, 2007 2:42 am

Query Filtering - Query by Form

Post by eyeargan »

Hello,

Here is my problem:
I need to allow users to query by form, but I need to filter OUT all instances where object.attribute <> blah.

In my process, I FIND using a query by form, then I CREATE a new instance of a temporary object (non-persist) where I INSERT the instances returned by the query. Then I DISPLAY using another query that filters the instances placed in the temporary object.

This doesn't work - it skips the query form completely.

I'm sure there is a correct way to do this...

Thanks,
Erik
Hubertus
Posts: 153
Joined: Sat Feb 11, 2006 2:11 pm
Location: Austria
Contact:

Post by Hubertus »

IMHO you could use a query with both predefined and ask-at-runtime WHERE statements.
Attribute1 = 'blah'
Attribute2 = (Ask at runtime)
Attribute3 = (Ask at runtime)
and so on.
The only insufficiency is that you cannot control the layout of the input form. Which means that the imput fields are placed one after the other.

Hope it helps,
Hubertus
eyeargan
Posts: 55
Joined: Sat Mar 17, 2007 2:42 am

Post by eyeargan »

I have used that approach in other cases, but here my forms include several drop-down combo boxes and ask-at-runtime only provides blank text boxes.

Thanks though,
Erik
Post Reply