Queries with User Input.

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Angarato
Posts: 29
Joined: Thu Feb 08, 2007 1:06 am

Queries with User Input.

Post by Angarato »

Hello Everybody!

Just a quick question. What if I have a standard query which requires
user criteria to be defined at the run time and don't want query to run
and return all records in case user doesn't provide any input value(s)
or parameter(s)? Is it possible to configure the query parameter input
form the way it wouldn't allow user to leave the input field(s) blank or
if user leaves input fields blank then not to return any records instead of
returning the whole list of corresponding BOs?

Thank you!
Angarato.
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

No, currently it will always return all records (rather, the first 20 or however many the query is configured to return)
Aware IM Support Team
greg
Posts: 124
Joined: Sat Apr 23, 2005 12:46 am

Post by greg »

I think you can do it but not in a simple query form. You need to create a non persistent BO, then set up a process with the first rule to ENTER NEW ThatBO and after that put a rule If BO.Attribute1 AND all the others UNDEFINED Then REPORT ERROR '...' or DISPLAY MESSAGE '...' Else proceed to your re-written query.
Post Reply