<?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: Property with 2 subproperties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261118#M214248</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;SPAN&gt;the easiest solution would be to use a d:text property &amp;amp; store your book prices as json, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;BR /&gt; default_price: 10,&lt;BR /&gt; special_prices:[&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; group: "group1",&lt;BR /&gt;&amp;nbsp; price : 5&lt;BR /&gt;},&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; group: "group2",&lt;BR /&gt;&amp;nbsp; price : 15&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&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;BR /&gt;&lt;SPAN&gt;it's dirty, but if you don't like to query this property it is a common workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 10:16:32 GMT</pubDate>
    <dc:creator>jpfi</dc:creator>
    <dc:date>2012-09-17T10:16:32Z</dc:date>
    <item>
      <title>Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261115#M214245</link>
      <description>Hello,I´m having problems trying to extend the model, and I don´t know if it´s possible what I want to do.I want to make something like a book´s shop, where a book can have some prices that will depend of the usergroup which user belongs to. For example, a book can cost 10 € to a user of group1 and</description>
      <pubDate>Mon, 17 Sep 2012 06:49:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261115#M214245</guid>
      <dc:creator>fmberqui</dc:creator>
      <dc:date>2012-09-17T06:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261116#M214246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A simple solution could be to store two or more properties (price_group1, price_group2 ecc..) in your custom type and create a custom webscript that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- checks current user and his groups&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- creates a custom response (json, xml…) with the correct value of property price&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 09:53:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261116#M214246</guid>
      <dc:creator>fmontinaro</dc:creator>
      <dc:date>2012-09-17T09:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261117#M214247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the groups will be created dinamically, so I need to store so many properties and list so many groups as groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont think if that is possible…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Salutes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 10:10:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261117#M214247</guid>
      <dc:creator>fmberqui</dc:creator>
      <dc:date>2012-09-17T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261118#M214248</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;SPAN&gt;the easiest solution would be to use a d:text property &amp;amp; store your book prices as json, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;BR /&gt; default_price: 10,&lt;BR /&gt; special_prices:[&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; group: "group1",&lt;BR /&gt;&amp;nbsp; price : 5&lt;BR /&gt;},&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; group: "group2",&lt;BR /&gt;&amp;nbsp; price : 15&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&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;BR /&gt;&lt;SPAN&gt;it's dirty, but if you don't like to query this property it is a common workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 10:16:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261118#M214248</guid>
      <dc:creator>jpfi</dc:creator>
      <dc:date>2012-09-17T10:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261119#M214249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You mean store it on xml model?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 10:20:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261119#M214249</guid>
      <dc:creator>fmberqui</dc:creator>
      <dc:date>2012-09-17T10:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261120#M214250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No its stored as text containing JSON.&amp;nbsp;&amp;nbsp; As Jan says above its dirty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative way to do it would be a "price" object.&amp;nbsp; So each book could have a collection of prices.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That may or may not fit your requirement better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 11:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261120#M214250</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-09-17T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Property with 2 subproperties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261121#M214251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Objects sounds good, but I´m new developing on Alfresco, can you give me some link where explain how to create objects? I suppose that they will be something like a bean where specific some properties, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for all the answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Salutes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 11:19:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/property-with-2-subproperties/m-p/261121#M214251</guid>
      <dc:creator>fmberqui</dc:creator>
      <dc:date>2012-09-17T11:19:49Z</dc:date>
    </item>
  </channel>
</rss>

