<?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 Como hacer referencia a companyhome? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85943#M58051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buenos dias,&lt;/P&gt;&lt;P&gt;estoy practicando modelos de contenido de la docs de alfresco pero me encuentro con un inconveniente a la hora de probar mi modelo de contenido, en la docs se hace un test a traves de un webscript con un controlador js que crea un nodo&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #888888; margin: 0px 0px 20px; padding: 2px;"&gt;&lt;SPAN class="" style="color: #000088;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; contentType &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #008800;"&gt;"my:whitepaper"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000088;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; documentName &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; url&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;templateArgs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;documentName&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000088;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; document &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; companyhome&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;createNode&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;documentName&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; contentType&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000088;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;document &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;!=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #000088;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;){&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;document &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; document&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;msg &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #008800;"&gt;"Created OK!"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000088;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;model&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;msg &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #008800;"&gt;"Failed to create document!"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;pero al ejecutar el webscript me arroja una excepción&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #515d6b;"&gt;'classpath*:alfresco/extension/templates/webscripts/alfresco/test/modeltest.get.js': 02140021 ReferenceError: "companyhome" is not defined.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;agradezco su ayuda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2018 17:59:59 GMT</pubDate>
    <dc:creator>andersonmercado</dc:creator>
    <dc:date>2018-03-14T17:59:59Z</dc:date>
    <item>
      <title>Como hacer referencia a companyhome?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85943#M58051</link>
      <description>Buenos dias,estoy practicando modelos de contenido de la docs de alfresco pero me encuentro con un inconveniente a la hora de probar mi modelo de contenido, en la docs se hace un test a traves de un webscript con un controlador js que crea un nodo&amp;nbsp;var contentType = "my:whitepaper";var documentName =</description>
      <pubDate>Wed, 14 Mar 2018 17:59:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85943#M58051</guid>
      <dc:creator>andersonmercado</dc:creator>
      <dc:date>2018-03-14T17:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Como hacer referencia a companyhome?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85944#M58052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No lo he probado, pero creo que no se puede crear un nodo en "companyhome".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prueba con algo así:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;var node = companyhome.childByNamePath("Sitios/swsdp");&amp;nbsp;&lt;BR /&gt;node.createNode(documentName, contentType);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85944#M58052</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-03-14T19:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Como hacer referencia a companyhome?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85945#M58053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;igual me manda la excepción&amp;nbsp;&lt;SPAN style="color: #515d6b;"&gt;02140019 ReferenceError: "companyhome" is not defined.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:24:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85945#M58053</guid>
      <dc:creator>andersonmercado</dc:creator>
      <dc:date>2018-03-14T19:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Como hacer referencia a companyhome?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85946#M58054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Puedes compartir el archivo desc.xml?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;El objeto company home solo se puede utilizar si el webscript está configurado para autenticado.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 00:45:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/como-hacer-referencia-a-companyhome/m-p/85946#M58054</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2018-03-15T00:45:09Z</dc:date>
    </item>
  </channel>
</rss>

