CCA R2 with SharePoint Search

Aug 15, 2011 at 12:41 PM
Edited Aug 15, 2011 at 3:59 PM

Hi All,

 I tried to develop CCA web hosted example application using SharePoint 2010 site collection. Main requirement is to get the case title and do the SharePoint search using the title, when user clicked on workflow step(Search SharePoint) at CCA. But workflow activity (ControlFinder) is unable to find the search text box control using binding generated using inspector. Control Found(Out) is set to false, but ExecuteControlAction can trigger the search button default action. I tried with UIADataDrivenAdapter as well as WebDataDrivenAdapter.

But I was able to do the same thing using Bing Search and that example application is blogged here(http://dynamicscrmhelper.blogspot.com/2011/08/example-cca-hosted-web-application-with.html).

Can anyone please guess what could be the issue or give me some suggestions.?

 

Thanks in advance,

ThusharaM

Aug 16, 2011 at 11:21 AM
Edited Aug 17, 2011 at 10:55 AM

Interesting!... This is not something wrong in UII work flow activity and it sets the correct search text at search text box. SP site collection has inline java script in the search text box at OnKeyPress and OnFocus. Since those events are not fired when we set the values using UII workflow activity, when the application executed search button click event, inline javascript at search button click event, clears the value at search text box by looking at some hidden field value. That hidden field is not populated with correct value since OnKeyPress and OnFocus events are not fired.

Can Matt or someone please give me some suggestions to fix this issue?

Can we trigger the OnkeyPress and Onfocus event using automation?

Thanks,

ThusharaM

Aug 17, 2011 at 12:58 PM

do you actually have to automate the text box and search button?  why not just constuct a search URL with parameters instead?

e.g. http://intranet.contoso.com/CRM%20Team%20Site/_layouts/OSSSearchResults.aspx?k=crm%20procedure&cs=This%20Site&u=http%3A%2F%2Fintranet.contoso.com%2FCRM%20Team%20Site

this is from the CRM partner demo machine.  The search keywords are the "k=crm%20procedure" and the the search scope the "cs=This%20Site...."

Regan

Aug 18, 2011 at 11:02 AM

Good suggestion..Thanks..

I would like to know how we can do that, if we really wanted to trigger web button events other than click() using automation. If the company is looking for using CCA on their enterprise level MS CRM implementations, it really worth to find out how it supports to our requirements.

Uii Development guide talks about those events under “Using the HAT Software Factory >Data Driven Adapters (DDAs) >WebDDA >Control events”, but I am not clear how we can use them.

Thanks,

ThusharaM