Aware IM User Forums Forum Index Aware IM User Forums
Discussions, questions, ideas, opinions about Aware IM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AwareApp.runQueryWithParams

 
Post new topic   Reply to topic    Aware IM User Forums Forum Index -> Problem reports
View previous topic :: View next topic  
Author Message
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Thu Feb 23, 2012 9:27 pm    Post subject: AwareApp.runQueryWithParams Reply with quote

I have created a search form with a single input, the query runs find, but always returns all results, the ask later never seems to connect.

Could not figure out what I is wrong with this, so I looked at the CRM app. Seems the search in the banner is not working either, although the results I get on that one are really odd and might not be related.

Am I doing something wrong, is this a defect, both?

<input type="text" name="Goals" id="Goals" size="20" title="Enter Goal Name, Owner, or Record ID">

<input type="button" onclick="var params = {}; params ['Parameter'] = document.getElementById ('Goals').value; AwareApp.runQueryWithParams('Fast_Find_Goals', params, 'new_tab'); return false;" value="Go" name="B1" title="Click to start search">
Back to top
View user's profile Send private message
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Thu Feb 23, 2012 9:35 pm    Post subject: Reply with quote

Also the find in library app seems to have the same behavior as CRM.
Back to top
View user's profile Send private message
aware_support



Joined: 24 Apr 2005
Posts: 4671

PostPosted: Fri Feb 24, 2012 3:35 am    Post subject: Reply with quote

Seems to work fine for us. How do you reproduce the problem in the CRM app?
_________________
Aware IM Support Team
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Fri Feb 24, 2012 4:25 am    Post subject: Reply with quote

log in to the live smaple of CRM app as staff member - from the find by customer the name search in the banner frame, hit search with no value, you should get a 2 page list. Find Rosemary Flint on the list.

repeat search for Flint - I get no results

repeat search for Rosemary - I get no results

repeat search for F - I get 3 results but not rosemary flint

According to the Query definition this should be doing a contains on customer.firstname and customer.lastname. I do not know what it is running, but but it is not that...
Back to top
View user's profile Send private message
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Fri Feb 24, 2012 4:29 am    Post subject: Reply with quote

Same for library app, search for Harry. The first HP book is on the list, but is not in the results.
Back to top
View user's profile Send private message
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Fri Feb 24, 2012 12:57 pm    Post subject: Reply with quote

Ok, I figured it out. The sample query parameters are case sensitive...
Back to top
View user's profile Send private message
nlarson



Joined: 14 Apr 2011
Posts: 393

PostPosted: Fri Feb 24, 2012 2:12 pm    Post subject: Reply with quote

also figured out my issue, YAY!

I had to change the query using the Rule Form from

FIND Goals WHERE Goals.Summary CONTAINS ?Summary AND Goals.Inactive<>'Yes'

To

FIND Goals WHERE Goals.Summary CONTAINS ?Parameter AND Goals.Inactive<>'Yes'

The way I found this was by looking at the Rule Form SQL of the CRM Sample Query 'Correspondence using single parameter', but ft you compare the simple form view to the query I had, then it looked exactly the same. In hind sight this seems logical, but was not intuitive for me to stumble upon so I was thinking this might be worth noting in the documentation (unless I missed it!!).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aware IM User Forums Forum Index -> Problem reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group