<?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: Smart Folder Template query with multiple values property in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113829#M31654</link>
    <description>&lt;P&gt;I don't see any multi-value property in your model.&lt;/P&gt;&lt;P&gt;Can you show us&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;my:dossierCodes&lt;/PRE&gt;&lt;P&gt;sample value in node browser?&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 16:28:03 GMT</pubDate>
    <dc:creator>venzia</dc:creator>
    <dc:date>2019-11-14T16:28:03Z</dc:date>
    <item>
      <title>Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113822#M31647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a folder with a multiple property called &lt;STRONG&gt;my:dossierCodes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to see inside a smart folder all dossiers that has one of my codes, so I'm trying to apply this Smart Folder Template:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"language": "fts-alfresco",&lt;BR /&gt;"query": "+TYPE:'my:dossierType' AND =my:dossierCode:'&amp;lt;&lt;STRONG&gt;my:&lt;/STRONG&gt;&lt;STRONG&gt;dossierCodes&lt;/STRONG&gt;&amp;gt;'"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I have no results.&lt;/P&gt;&lt;P&gt;It's the first time I use multiple-value properties. How does they work in FTS queries?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:07:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113822#M31647</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-11-14T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113823#M31648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you post the real value used to perform the query?&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:16:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113823#M31648</guid>
      <dc:creator>venzia</dc:creator>
      <dc:date>2019-11-14T12:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113824#M31649</link>
      <description>&lt;P&gt;The real value of&amp;nbsp;&lt;STRONG&gt;my:dossierCodes&lt;/STRONG&gt; is the array: ["1234", "4321"].&lt;/P&gt;&lt;P&gt;If I try to do this query:&lt;/P&gt;&lt;P&gt;+TYPE:"my:dossierType" AND =my:dossierCode&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;"1234" OR "4321")&lt;/P&gt;&lt;P&gt;I get 3 nodes.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:06:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113824#M31649</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-11-14T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113825#M31650</link>
      <description>&lt;P&gt;Try with :&lt;/P&gt;&lt;PRE&gt;+TYPE:"my:dossierType" AND (=my:dossierCode:"1234" OR =my:dossierCode:"4321")&lt;/PRE&gt;&lt;P&gt;(maybe you will need to scape " characters)&lt;/P&gt;&lt;P&gt;Multivalued props are text props at the end.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:46:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113825#M31650</guid>
      <dc:creator>venzia</dc:creator>
      <dc:date>2019-11-14T13:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113826#M31651</link>
      <description>&lt;P&gt;This query do the same of yours, and it works fine for me:&lt;/P&gt;&lt;PRE&gt;+TYPE:"my:dossierType" AND =my:dossierCode:("1234" OR "4321")&lt;/PRE&gt;&lt;P&gt;It rapresents the result that I want to have on my smart folder.&lt;/P&gt;&lt;P&gt;I need to know how I could parameterize my multi-value property in the smart folder template to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:56:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113826#M31651</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-11-14T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113827#M31652</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;I need to know how I could parameterize my multi-value property in the smart folder template to do this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think you are doing wrong assumptions, because, extracted from&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.0/concepts/sf-ref-template-guidance.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.0/concepts/sf-ref-template-guidance.html&lt;/A&gt; :&lt;/P&gt;&lt;PRE&gt;Use angle brackets, for example, &amp;lt;cm:name&amp;gt;, to inherit property values from the physical parent folder. Used for inheritance in a filing rule and in a query.&lt;/PRE&gt;&lt;P&gt;So, basically brackets are used to inherit parent properties in nested json entries queries for smart folder templates.&lt;/P&gt;&lt;P&gt;Can you explain your use case in detail?&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113827#M31652</guid>
      <dc:creator>venzia</dc:creator>
      <dc:date>2019-11-14T15:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113828#M31653</link>
      <description>&lt;P&gt;&lt;BR /&gt;This is my data model:&lt;/P&gt;&lt;PRE&gt;&amp;lt;type name="my:dossierType"&amp;gt;
	&amp;lt;parent&amp;gt;cm:folder&amp;lt;/parent&amp;gt;
	&amp;lt;properties&amp;gt;
		&amp;lt;property name="my:dossierCode"&amp;gt;
			&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
			&amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
		&amp;lt;/property&amp;gt;
	&amp;lt;/properties&amp;gt;
&amp;lt;/type&amp;gt;
..
..
..
&amp;lt;aspect name="my:dossierViewAspect"&amp;gt;
	&amp;lt;properties&amp;gt;
		&amp;lt;property name="my:dossierCodes"&amp;gt;
			&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt; &lt;BR /&gt;                        &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;                        &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
		&amp;lt;/property&amp;gt;
	&amp;lt;/properties&amp;gt;
&amp;lt;/aspect&amp;gt;&lt;/PRE&gt;&lt;P&gt;I've got 3 nodes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Called First, with my:dossierType and my:dossierCode:"1234"&lt;/LI&gt;&lt;LI&gt;Called Second, with my:dossierType and my:dossierCode:"4321"&lt;/LI&gt;&lt;LI&gt;Called View, a cm:folder the aspect my:dossierViewAspect and my:dossierCodes:["1234","4321"]&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I want to see on the node called View the dossiers with the codes matching with one of my:dossierCodes values.&lt;/P&gt;&lt;P&gt;To do this, I added to the View node this smart folder template:&lt;/P&gt;&lt;PRE&gt;{
  "nodes": [
    {
      "search": {
        "query": "+TYPE:'my:dossierType' AND =my:dossierCode:'&amp;lt;my:dossierCodes&amp;gt;'",
        "language": "fts-alfresco"
      },
      "name": "Dossiers"
    }
  ],
  "name": "Dossiers"
}&lt;/PRE&gt;&lt;P&gt;As you see, I'm already using brackets on &amp;lt;my:dossierCodes&amp;gt;, but in the guide there's any reference about what happens when a multi-value property is inherited.&lt;/P&gt;&lt;P&gt;The other query I wrote on my previous post is only a sample to make you understand which result I want to receive in the View node in the end.&lt;/P&gt;&lt;P&gt;Thanks in &lt;SPAN class="ILfuVd"&gt;&lt;SPAN class="e24Kjd"&gt;advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:14:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113828#M31653</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-11-14T16:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113829#M31654</link>
      <description>&lt;P&gt;I don't see any multi-value property in your model.&lt;/P&gt;&lt;P&gt;Can you show us&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;my:dossierCodes&lt;/PRE&gt;&lt;P&gt;sample value in node browser?&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:28:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113829#M31654</guid>
      <dc:creator>venzia</dc:creator>
      <dc:date>2019-11-14T16:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113830#M31655</link>
      <description>&lt;P&gt;So sorry!!!&lt;/P&gt;&lt;P&gt;I missed it doing copy/paste&amp;nbsp; &lt;img id="mansad" class="emoticon emoticon-mansad" src="https://connect.hyland.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&lt;/P&gt;&lt;P&gt;This is the right aspect definition:&lt;/P&gt;&lt;PRE&gt;&amp;lt;aspect name="my:dossierViewAspect"&amp;gt;
	&amp;lt;properties&amp;gt;
		&amp;lt;property name="my:dossierCodes"&amp;gt;
			&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
			&amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
			&amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
		&amp;lt;/property&amp;gt;
	&amp;lt;/properties&amp;gt;
&amp;lt;/aspect&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:39:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113830#M31655</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-11-14T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Folder Template query with multiple values property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113831#M31656</link>
      <description>&lt;P&gt;Ok, I guess its passing all values as object.&lt;/P&gt;&lt;P&gt;So, View entry is "the parent" of First and Second node in json template structure, right?&lt;/P&gt;&lt;P&gt;Quick answer : I don't think its possible to do what you are thinking.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:49:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/smart-folder-template-query-with-multiple-values-property/m-p/113831#M31656</guid>
      <dc:creator>venzia</dc:creator>
      <dc:date>2019-11-14T16:49:05Z</dc:date>
    </item>
  </channel>
</rss>

