<?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: Web script returning form instances? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231684#M184814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for answering to my own post, but I found the option "Run Action —&amp;gt; Add aspect". This ables to add an aspect to the web form. I attached aspect titled "Someco Webable" with name "sc:webable". Now, when I write in the webscript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results = search.luceneSearch("ASPECT\\:Someco Webable");&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results = search.luceneSearch("ASPECT:\\sc:webable");&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;the resultset is always "undefined" What am I doin wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morf3usz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 11:35:19 GMT</pubDate>
    <dc:creator>morf3usz</dc:creator>
    <dc:date>2010-05-28T11:35:19Z</dc:date>
    <item>
      <title>Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231679#M184809</link>
      <description>Hi,I have following question. I'm totally fresh with alfresco web scripts. I have read a piece of tutorials, however I'm not smarter with my problem. Can someone show me, how shall look a webscript, that returns all instances of concrete WebForm? Let's suppose, we have a WebForm called MovieItem, an</description>
      <pubDate>Mon, 24 May 2010 10:37:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231679#M184809</guid>
      <dc:creator>morf3usz</dc:creator>
      <dc:date>2010-05-24T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231680#M184810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first thing you need to know is how do you identify web forms of type "Movie Item". Are they kept as a content type? An aspect on a standard cm:content? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to look at &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook#Find_all_XML_Forms_of_a_Specific_Type_and_Return_the_XML_content" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook#Find_all_XML_Forms_of_a_Specific_Type_and_Return_the_XML_content&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 15:57:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231680#M184810</guid>
      <dc:creator>invictus9</dc:creator>
      <dc:date>2010-05-25T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231681#M184811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the form are kept as "content". No aspects on them, just simple XML data. The name of the form is MovieItem. Here is the code of the form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;xs:schema xmlns:hbbtv="&lt;A href="http://hbbtv.mds.com" rel="nofollow noopener noreferrer"&gt;http://hbbtv.mds.com&lt;/A&gt;" elementFormDefault="qualified" targetNamespace="&lt;A href="http://hbbtv.mds.com" rel="nofollow noopener noreferrer"&gt;http://hbbtv.mds.com&lt;/A&gt;" xmlns:xs="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xs:element name="MovieItem"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xs:complexType&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xs:sequence&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;lt;xs:element name="Id" type="xs:long" /&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;lt;xs:element name="Title" type="xs:normalizedString" /&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;lt;xs:element name="Description" type="xs:string" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xs:sequence&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xs:complexType&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xs:element&amp;gt;&lt;BR /&gt;&amp;lt;/xs:schema&amp;gt;&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The target is to obtain all instances of the form, to display their content in an another webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morf3usz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 10:49:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231681#M184811</guid>
      <dc:creator>morf3usz</dc:creator>
      <dc:date>2010-05-26T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231682#M184812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I was hinting is that you need some form of tagging or associations to search effectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you add an aspect that allows the search engine to find "all documents with aspect my:movieitem", you could find things quickly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 16:01:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231682#M184812</guid>
      <dc:creator>invictus9</dc:creator>
      <dc:date>2010-05-26T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231683#M184813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;invictus9&lt;/STRONG&gt;&lt;SPAN&gt;, thanks for answer. However, could you give some example, how to attach an aspect to the web forms instance? I can't find any reasonable sample. The forms wizard does not have option "add aspect to a form", I also can't see such option while editing the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morf3usz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 10:17:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231683#M184813</guid>
      <dc:creator>morf3usz</dc:creator>
      <dc:date>2010-05-28T10:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231684#M184814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for answering to my own post, but I found the option "Run Action —&amp;gt; Add aspect". This ables to add an aspect to the web form. I attached aspect titled "Someco Webable" with name "sc:webable". Now, when I write in the webscript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results = search.luceneSearch("ASPECT\\:Someco Webable");&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results = search.luceneSearch("ASPECT:\\sc:webable");&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;the resultset is always "undefined" What am I doin wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morf3usz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 11:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231684#M184814</guid>
      <dc:creator>morf3usz</dc:creator>
      <dc:date>2010-05-28T11:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Web script returning form instances?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231685#M184815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The first thing you need to know is how do you identify web forms of type "Movie Item". Are they kept as a content type? An aspect on a standard cm:content? &lt;BR /&gt;&lt;BR /&gt;You might want to look at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook#Find_all_XML_Forms_of_a_Specific_Type_and_Return_the_XML_content" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook#Find_all_XML_Forms_of_a_Specific_Type_and_Return_the_XML_content&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Such a very amazing link! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you for the post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 08:13:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-returning-form-instances/m-p/231685#M184815</guid>
      <dc:creator>larryp7639</dc:creator>
      <dc:date>2010-06-09T08:13:46Z</dc:date>
    </item>
  </channel>
</rss>

