Single instance in Query result

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
pixerp
Posts: 180
Joined: Sun Jan 28, 2007 7:12 pm

Single instance in Query result

Post by pixerp »

Is there a way to avoid displaying a query result table when there is only one instance (record) ?

See sample Library app, in the left pane you have an HTML to do searches (runQuery.do?...). If I type 'john' in First Name, I'd like John's Member details form to open directly in the main pane instead of the query result table, showing only one record to select !
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

If you use PICK FROM action there is an option to specify NO CONFIRMATION FOR ONE, which is what you want (check Rule Language document)
Aware IM Support Team
pixerp
Posts: 180
Joined: Sun Jan 28, 2007 7:12 pm

Post by pixerp »

I know the PICK FROM action.

But it always starts by displaying a criterion entry form whereas I'd like to use the runQuery.do from a custom HTML pane exactly as in the Library left pane...

Thanks.
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Post by pbrad »

Hi,

Was there any resolution to this? I need to do exactly the same thing.

Thanks,
Pete
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

If you are using hypelinks you can try specifying noConfirmationForOne=true parameter:

runQuery.do?actionMethod=displayForm...&noConfirmationForOne=true
Aware IM Support Team
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Post by pbrad »

Hi,

Sorry to report back that it didn't work using the following code:

<form class=search_form method="POST" target="main"
action="../runQuery.do?actionMethod=displayForm&paramsInRequest=true&name=Client&nameMeaning=0&noConfirmationForOne=true
">

Cheers,
Pete
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Could you please try noConfirmationForOne=on instead?

Sorry, this is just a suggestion - we haven't tested it ourselves yet. It may or may not work.
Aware IM Support Team
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Post by pbrad »

Hi,

No luck on that one either I am afraid. This is not a critical issue, just a 'nice to have'.

cheers,
Pete
Post Reply