1 Reply Latest reply on May 8, 2012 12:43 PM by Sasha

    Auto-refresh in Latitude Studio, from an external search

      Problem Description:

      We are using endeca latitude 2.1.1 version.
      We want to operate search from a different environment using instance of search box portlet. Below is the overview of my task.
      1. My latitude frontend is having search box, result list, breadcrumb, guided navigation etc portlets.
      2. Our Application requires a search box on its home page which is built in a coldfusion technology.
      3. We were trying to bring search box on our applications home page using code present under sharing facility of search box portlet.

      <script src="http://nlwsl5018.ddns.slb.atosorigin-asp.com:8080/html/js/liferay/widget.js" type="text/javascript"></script>
      <script type="text/javascript">
      Liferay.Widget({ url: 'http://nlwsl5018.ddns.slb.atosorigin-asp.com:8080/widget/web/guest/home/-/endecasearchboxportlet_WAR_endecasearchboxportlet_INSTANCE_2wCR'});

      We are able to search from the search box on home page but not getting respective results on latitude frontend without refreshing the page. We get results only after manual refresh of latitude page.
      When we do a search from latitude page itself, the respective portlets get refreshed as expected.

      Is there any way to overcome this problem?

        • 1. Re: Auto-refresh in Latitude Studio, from an external search
          It sounds like you're trying to build an integration with a feature outside of the Studio/Endeca application that directs the user into the application with a specific search filter applied. I think a decent option might be for you to use the Deep Link feature. Take a look at Chapter 16 of the Studio User's Guide: http://docs.oracle.com/cd/E29805_01/StudioUsersGuide.pdf. The feature allows you to construct a URL, targeting a specific page in your Studio application, and specifying one or more filters to apply to a relevant data source. In your case, you'd code your external search box to submit the search term (with the appropriate match mode, search interface, etc.) in the deep link parameter. Something like:

          http://host:port/web/guest/home?deeplink=[{"default":{"queryFunctions":[{"class":"SearchFilter","searchInterface":"All","terms":"foo bar baz","matchMode":"allpartial"}]}}]

          - Sasha