<?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: Paint function layout - no custom property for default value in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795675#M2621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To get this behaviour, you need to group by items lists :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;definition: { type: "items", component: "accordion", items: { settings: { uses: "settings", type : "items", items : { firstGroup : { label : "Group 1", type : "items", items:{ testProp1: { ref: "testProp1", type: "string", label: "Property 1", defaultValue: "default1" } } }, secondGroup : { label : "Group 2", type : "items", items:{ optionalProp: { ref: "optionalProp", type: "boolean", label: "Optional Property", defaultValue: false }, testProp2: { ref: "testProp2", type: "string", label: "Property 2", defaultValue: "default2", show: function(layout) { return layout.optionalProp } }, testProp3: { ref: "testProp3", type: "string", label: "Property 3", defaultValue: "default3", show: function(layout) { return layout.optionalProp } } } } } } } },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sorry I lost indentations, but it works :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="80999" alt="custom properties.PNG" class="image-1 jive-image" src="/legacyfs/online/80999_custom properties.PNG" style="height: auto;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 14:58:39 GMT</pubDate>
    <dc:creator>yblake</dc:creator>
    <dc:date>2015-03-17T14:58:39Z</dc:date>
    <item>
      <title>Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795666#M2612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since v1.1 we do not get a property created in paint function layout object for the custom property if its value is left to default value. Only if we change the property value in accordeon the property gets created in layout object. Is this an issue or feature? If it's a feature, how we can access the default value then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to add that I'm using a show condition for the property but doesn't matter if it's true or false..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 16:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795666#M2612</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-03-12T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795667#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/3136"&gt;rbecher&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for reporting this behavior, but unfortunately I do not fully get it ...&lt;/P&gt;&lt;P&gt;Can you ellaborate a bit more or post some code sample explaining what you want to see and what's happening, then I'll have a look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 17:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795667#M2613</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-03-12T17:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795668#M2614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cannot reproduce it. Must be a glitch (caching issue?) while extending custom properties in existing and used extension. However I attached a sample which shows how you can use "show" property to switch optional properties on another boolean property (would have been nice to find an example in the online help..).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 18:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795668#M2614</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-03-12T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795669#M2615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;agree that there should be a demo in the online help to show how it works.&lt;/P&gt;&lt;P&gt;But your example works perfect for me and code looks straighforward (as expected to be).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 19:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795669#M2615</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-03-12T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795670#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to nest properties in accordeon with the switch component like with the chart color settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 19:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795670#M2616</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-03-12T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795671#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, don't get it again &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean this setting or something else, because this is working exactly the same way as your previously posted example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart_ColorSettings.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80619_Chart_ColorSettings.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 20:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795671#M2617</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-03-12T20:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795672#M2618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have it like in common settings where we have a switch and nested properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="general_properties.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80621_general_properties.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In my example I have a tab/dropdown per property:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="optional_properties.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/80622_optional_properties.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 20:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795672#M2618</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-03-12T20:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795673#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, will work on an example and publish it ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 20:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795673#M2619</guid>
      <dc:creator>Stefan_Walther</dc:creator>
      <dc:date>2015-03-12T20:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795674#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure to get a value, you may set an initial default value in the &lt;STRONG&gt;initialProperties&lt;/STRONG&gt; object, to be the default value when user first time drop the extension on the sheet :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialProperties: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; version: 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;optionalProp: false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; qHyperCubeDef: {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also check for undefined properties, like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return (layout.optionalProp === undefined ? false : layout.optionalProp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will ensure to get a default value, i.e. if the user open an old app with a previous release of the extension that didn't had yet this property defined. But this may also solve your missing default value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795674#M2620</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2015-03-17T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795675#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To get this behaviour, you need to group by items lists :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;definition: { type: "items", component: "accordion", items: { settings: { uses: "settings", type : "items", items : { firstGroup : { label : "Group 1", type : "items", items:{ testProp1: { ref: "testProp1", type: "string", label: "Property 1", defaultValue: "default1" } } }, secondGroup : { label : "Group 2", type : "items", items:{ optionalProp: { ref: "optionalProp", type: "boolean", label: "Optional Property", defaultValue: false }, testProp2: { ref: "testProp2", type: "string", label: "Property 2", defaultValue: "default2", show: function(layout) { return layout.optionalProp } }, testProp3: { ref: "testProp3", type: "string", label: "Property 3", defaultValue: "default3", show: function(layout) { return layout.optionalProp } } } } } } } },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sorry I lost indentations, but it works :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG __jive_id="80999" alt="custom properties.PNG" class="image-1 jive-image" src="/legacyfs/online/80999_custom properties.PNG" style="height: auto;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795675#M2621</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2015-03-17T14:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function layout - no custom property for default value</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795676#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, this helps for grouping. Unfortunately, in my case all labels are disappeared then. But I think this is a css issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 15:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-layout-no-custom-property-for-default-value/m-p/795676#M2622</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2015-03-17T15:50:54Z</dc:date>
    </item>
  </channel>
</rss>

