<?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 Root scope objects inside Javascript Debugger in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257983#M211113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I use the root scope objects inside the Alfresco Javascript Debugger (available at &lt;/SPAN&gt;&lt;EM&gt;http://[hostname]:[port]/share/page/api/javascript/debugger&lt;/EM&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Scripting_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Scripting_API&lt;/A&gt;&lt;SPAN&gt; reports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Alfresco JavaScript API provides a rich set of scriptable Java objects that are available to the script writer. Many "root" scope objects (see below) are provided by default, such as access to the user home folder, company home folder, WCM Web Projects, search, People API…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;but although I am able to use the root scope objects executing a script inside Alfresco, just using it direclty &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;groups.getGroup(groupName);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; I can't figure out how to use/import that objects in a script tested with the Debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 00:47:50 GMT</pubDate>
    <dc:creator>acarpine</dc:creator>
    <dc:date>2012-04-16T00:47:50Z</dc:date>
    <item>
      <title>Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257983#M211113</link>
      <description>How can I use the root scope objects inside the Alfresco Javascript Debugger (available at http://[hostname]:[port]/share/page/api/javascript/debugger)?http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Scripting_API reports:The Alfresco JavaScript API provides a rich set of scriptable Java objects th</description>
      <pubDate>Mon, 16 Apr 2012 00:47:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257983#M211113</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-04-16T00:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257984#M211114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need to import them, they're there by default for Alfresco, Alfresco adds those objects when the script gets executed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the debugger you should be able to use it as well&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 09:45:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257984#M211114</guid>
      <dc:creator>amandaluniz_z</dc:creator>
      <dc:date>2012-04-16T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257985#M211115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Executing a simple code like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;groups.getAllRootGroups()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;the debugger throws a popup with the exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;org.mozilla.javascript.EcmaError: ReferenceError: "groups" is not defined&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;and I obtain the same result with other root objects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 13:14:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257985#M211115</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-04-16T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257986#M211116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Executing a simple code like &lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;groups.getAllRootGroups()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;the debugger throws a popup with the exception&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;org.mozilla.javascript.EcmaError: ReferenceError: "groups" is not defined&lt;/BLOCKQUOTE&gt;and I obtain the same result with other root objects.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no "groups" root scope object, you have to use the "people" root scope object which handles groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#People_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#People_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 13:18:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257986#M211116</guid>
      <dc:creator>bengrah</dc:creator>
      <dc:date>2012-04-16T13:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257987#M211117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The section "Root Scope Objects" of &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Scripting_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Scripting_API&lt;/A&gt;&lt;SPAN&gt; reports &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;groups &amp;nbsp;&amp;nbsp;&amp;nbsp;The root of group authorities. Providing access to groups Groups&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;and when I use that object from a script inside Alfresco all works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway trying to use people I obtain the same Exception &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;org.mozilla.javascript.EcmaError: ReferenceError: "people" is not defined&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 13:56:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257987#M211117</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-04-16T13:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Root scope objects inside Javascript Debugger</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257988#M211118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hoped to test Javacript using the debugger option to load an external javascript file and see the result directly in the debug before to load it in Alfresco but I understand now that this is out of the scope of the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tks anyway&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:32:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/root-scope-objects-inside-javascript-debugger/m-p/257988#M211118</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-04-19T19:32:08Z</dc:date>
    </item>
  </channel>
</rss>

