<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic search root object not functioning in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-root-object-not-functioning/m-p/303856#M256986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the "search" root object in javascript that execute in the Alfresco web client (specifically: object-finder-min.js).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My code line goes like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var node = search.luceneSearch("ID: \"workspace://SpacesStore/1fb68100-cf63-4e96-b366-0ecefc28cdca\"");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I debug my code, I get to this line and it blows up, without displaying any error in firebug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody has a clue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 12:35:56 GMT</pubDate>
    <dc:creator>hammerguy</dc:creator>
    <dc:date>2013-11-06T12:35:56Z</dc:date>
    <item>
      <title>search root object not functioning</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-root-object-not-functioning/m-p/303856#M256986</link>
      <description>HiI am using the "search" root object in javascript that execute in the Alfresco web client (specifically: object-finder-min.js).My code line goes like this:var node = search.luceneSearch("ID: \"workspace://SpacesStore/1fb68100-cf63-4e96-b366-0ecefc28cdca\"");When I debug my code, I get to this line</description>
      <pubDate>Wed, 06 Nov 2013 12:35:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-root-object-not-functioning/m-p/303856#M256986</guid>
      <dc:creator>hammerguy</dc:creator>
      <dc:date>2013-11-06T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: search root object not functioning</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-root-object-not-functioning/m-p/303857#M256987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a distinct difference in Alfresco between client-side JavaScript and server-side JavaScript.&amp;nbsp; The file that you're referencing (object-finder-min.js) is a client-side JS file.&amp;nbsp; It executes in the browser the way that you're used to in most web applications.&amp;nbsp; The root objects (including "search") are only available when writing server-side JavaScript.&amp;nbsp; Most often, Alfresco server-side JS is used when writing custom web scripts.&amp;nbsp; At the end of the day, server-side JavaScript is translated into Java code and runs on the server.&amp;nbsp; The advantage of writing web scripts using server-side JS instead of Java is that updates can be deployed without a full server restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, if you need to run a search and then display the results in the user interface, your client-side JS should be making an AJAX call to either an out-of-the-box Alfresco web script, or you can write a custom web script if the out-of-the-box services don't meet your needs.&amp;nbsp; There is no way to directly access the repository through client-side JS.&amp;nbsp; You need to make AJAX calls to server-side services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some additional resources:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server-side JS: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Scripts: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 03:34:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-root-object-not-functioning/m-p/303857#M256987</guid>
      <dc:creator>parzgnat</dc:creator>
      <dc:date>2013-11-07T03:34:28Z</dc:date>
    </item>
  </channel>
</rss>

