<?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 Cannot able to call API Webscript in lastest version alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302498#M255628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I create new page follow link : &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/tasks/tutorial-share-add-page.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/tasks/tutorial-share-add-page.html&lt;/A&gt;&lt;SPAN&gt; and add a file to call API in file js, but I am trying to run a webscript using the [var connector = remote.connect(”http”)]; but i cannot able to call the webscript it throws the following error: "ReferenceError: "remote" is not defined." as exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added the "remote" entry to the scriptsObjects in the endpoint tag :&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="webscripts.container" class="org.alfresco.repo.web.scripts.TenantRepositoryContainer" parent="webscripts.abstractcontainer" init-method="setup"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry key="remote" value-ref="webscripts.script.remote" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is some config webscript-framework-config.xml…bla bla. I think file doesn´t exist in this version&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you any idea ???????????&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 09:10:44 GMT</pubDate>
    <dc:creator>kimryan</dc:creator>
    <dc:date>2014-05-23T09:10:44Z</dc:date>
    <item>
      <title>Cannot able to call API Webscript in lastest version alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302498#M255628</link>
      <description>I create new page follow link : http://docs.alfresco.com/4.1/tasks/tutorial-share-add-page.html and add a file to call API in file js, but I am trying to run a webscript using the [var connector = remote.connect(”http”)]; but i cannot able to call the webscript it throws the following error: "Refere</description>
      <pubDate>Fri, 23 May 2014 09:10:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302498#M255628</guid>
      <dc:creator>kimryan</dc:creator>
      <dc:date>2014-05-23T09:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot able to call API Webscript in lastest version alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302499#M255629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Remote" object is defined in org\springframework\extensions\surf\spring-surf-application-context.xml file in package spring-surf-***-SNAPSHOT,It is still available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So there must be something wrong with your code ,please paste it here .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 12:23:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302499#M255629</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-05-23T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot able to call API Webscript in lastest version alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302500#M255630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The remote object is available in all contexts. Now I am not certain about my context names but there is Share and Alfresco and remote is not available in Share (I think).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do however know from experience where it is an isn't available and can describe the contexts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are creating a dashlet then in the dashlet javascript code that is run when the page is created the remote object is available. If you are ajax back to a webscript to get data from a dashlet once it has been displayed in a browser the remote object is not available, nor is it available in rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone reading this can straighten me out my context names, I would appreciate it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 10:20:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302500#M255630</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-05-24T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot able to call API Webscript in lastest version alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302501#M255631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember "remote" object is &amp;lt;strong&amp;gt; server-side object ,not client side &amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By default it is only available in share but not repository,but by configuring webscripts.container bean in spring we also can enable remote endpoint in repository&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 14:25:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-able-to-call-api-webscript-in-lastest-version-alfresco/m-p/302501#M255631</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-05-24T14:25:36Z</dc:date>
    </item>
  </channel>
</rss>

