<?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 Using the Office Add-In Search and customizing it in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198267#M151397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to use the &lt;/SPAN&gt;&lt;STRONG&gt;Office Add-In searc&lt;/STRONG&gt;&lt;SPAN&gt;h as a sample and able to customize it according to my requirements. The problem I wanted to set the authentication to 'none' , but it gives an error as&amp;nbsp; 500 error as&amp;nbsp; 'companyhome' is not initialised .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The .desc.xml is something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;shortname&amp;gt;CCIL Document Search (Month Wise)&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;description&amp;gt;Generate the CCIL Add-In Search page (Month Wise)&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;url&amp;gt;/abc/abcMonthSearch?p={path?}&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;authentication&amp;gt;none&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When I make the &amp;lt;authentication&amp;gt; as 'user' it asks for a valid uid /pwd (which is OK , but I do not want that)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the snippet of .ftl file is something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#if args.p?exists&amp;gt;&amp;lt;#assign path=args.p&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign path=""&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;#if args.n?exists&amp;gt;&amp;lt;#assign node=args.n&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign node=companyhome&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;#if args.e?exists&amp;gt;&amp;lt;#assign extn=args.e&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign extn="doc"&amp;gt;&amp;lt;/#if&amp;gt;&amp;lt;#assign extnx=extn+"x"&amp;gt;&lt;BR /&gt;&amp;lt;#if args.n?exists&amp;gt;&amp;lt;#assign nav=args.n&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign nav=""&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;#if (args.maxresults?exists)&amp;gt;&amp;lt;#assign maxResults=args.maxresults&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign maxResults="5"&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;#if (args.month1?exists)&amp;gt;&amp;lt;#assign month1=args.month1&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign month1=""&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;#if (args.year1?exists)&amp;gt;&amp;lt;#assign year1=args.year1&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign year1="2008"&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;#if (args.catg?exists)&amp;gt;&amp;lt;#assign catg=args.catg&amp;gt;&amp;lt;#else&amp;gt;&amp;lt;#assign catg=""&amp;gt;&amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;lt;#assign defaultQuery="?p=" + path?url + "&amp;amp;e=" + extn + "&amp;amp;n=" + nav&amp;gt;&lt;BR /&gt;&amp;lt;#assign searchCommand="OfficeSearch.runSearch('${url.serviceContext}/abc/abcMonthSearchResults', '${defaultQuery}'" &amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;CCIL Month wise Search&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;link rel="stylesheet" type="text/css" href="${url.context}/css/monthSearch.css" /&amp;gt;&lt;BR /&gt;&amp;lt;!–[if IE 6]&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="${url.context}/css/monthSearch_ie6.css" /&amp;gt;&lt;BR /&gt;&amp;lt;![endif]–&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="${url.context}/scripts/ajax/mootools.v1.11.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script type="text/javascript" src="${url.context}/scripts/office/office_addin.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script type="text/javascript" src="${url.context}/scripts/office/abc_monthsearch.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;//&amp;lt;![CDATA[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OfficeAddin.defaultQuery = '${defaultQuery}';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the error is something like(if I set the authentication as none) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;500 Description: An error inside the HTTP server which prevented it from fulfilling the request.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Message: Error during processing of the template 'Error on line 2, column 48 in abcMonthSearch.get.html.ftl companyhome is undefined. It cannot be assigned to node'. Please contact your system administrator.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Exception: freemarker.core.InvalidReferenceException - Error on line 2, column 48 in abcLMonthSearch.get.html.ftl companyhome is undefined. It cannot be assigned to node&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or Pointers are welcome ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 05:20:37 GMT</pubDate>
    <dc:creator>abirb</dc:creator>
    <dc:date>2008-11-11T05:20:37Z</dc:date>
    <item>
      <title>Using the Office Add-In Search and customizing it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198267#M151397</link>
      <description>I am trying to use the Office Add-In search as a sample and able to customize it according to my requirements. The problem I wanted to set the authentication to 'none' , but it gives an error as&amp;nbsp; 500 error as&amp;nbsp; 'companyhome' is not initialised .The .desc.xml is something like &amp;lt;webscript&amp;gt;&amp;nbsp; &amp;lt;s</description>
      <pubDate>Tue, 11 Nov 2008 05:20:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198267#M151397</guid>
      <dc:creator>abirb</dc:creator>
      <dc:date>2008-11-11T05:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Office Add-In Search and customizing it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198268#M151398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't have no authentication and access to the Repository at the same time. Your best option is to use "guest" authentication and then append "guest=true" to the request URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 08:32:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198268#M151398</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-11-11T08:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Office Add-In Search and customizing it</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198269#M151399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks again Mike, I need to do some testing .. till now its fine with passing it with the URL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 11:33:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-the-office-add-in-search-and-customizing-it/m-p/198269#M151399</guid>
      <dc:creator>abirb</dc:creator>
      <dc:date>2008-11-11T11:33:29Z</dc:date>
    </item>
  </channel>
</rss>

