<?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 Re: webscript API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239875#M193005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you see something wrong or missing with the wiki then please go ahead and fix it rather than commenting here.&amp;nbsp;&amp;nbsp;&amp;nbsp; Then its fixed for the next person.&amp;nbsp;&amp;nbsp; That's how the community documentation will get better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2009 08:01:08 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2009-06-19T08:01:08Z</dc:date>
    <item>
      <title>webscript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239872#M193002</link>
      <description>Hi team,I have gone through wiki on webscripts.There i got some knowledge on webscripts.There they have explained all most.But i just got a confusion in the hello world exaple they have used like below.&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;helloworld&amp;gt;&amp;nbsp; &amp;lt;from&amp;gt;${person.properties.us</description>
      <pubDate>Fri, 19 Jun 2009 06:56:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239872#M193002</guid>
      <dc:creator>mialfresco</dc:creator>
      <dc:date>2009-06-19T06:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: webscript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239873#M193003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two ways to get computed values into a freemarker response template&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either directly through code or passing in a value in the "model" object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;person.properties.userName is a call to the "person" object of Alfresco Script&amp;nbsp;&amp;nbsp;&amp;nbsp; (See &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_JavaScript_API#Root_Scope_Objects" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_JavaScript_API#Root_Scope_Objects&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To find the properties defined for a person you look in the contentModel.xml file which is where the definition is.&amp;nbsp;&amp;nbsp;&amp;nbsp; To answer your specific question there is a lastName property so its person.properties.lastName.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;toWho is an example of passing in an object in the model which is then displayed by the template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model.toWho = (args.to != null) ? args.to : person.properties.userName;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 07:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239873#M193003</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-06-19T07:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: webscript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239874#M193004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;More useful if you mentioned this in wiki itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 07:27:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239874#M193004</guid>
      <dc:creator>mialfresco</dc:creator>
      <dc:date>2009-06-19T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: webscript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239875#M193005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you see something wrong or missing with the wiki then please go ahead and fix it rather than commenting here.&amp;nbsp;&amp;nbsp;&amp;nbsp; Then its fixed for the next person.&amp;nbsp;&amp;nbsp; That's how the community documentation will get better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 08:01:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-api/m-p/239875#M193005</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-06-19T08:01:08Z</dc:date>
    </item>
  </channel>
</rss>

