<?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 Extensions - property panel - How to replicate the Columns item - &amp;quot;Show column if...&amp;quot; in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1773375#M13687</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to define the property panel in so that it replicates the table visualization properties?&amp;nbsp; I am particularly interested in how to include the "Show column if..." item, but the "Background color expression", etc. would also be useful.&lt;/P&gt;&lt;P&gt;Column property panel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table property panel.PNG" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46758i2ADAB46D27421C42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table property panel.PNG" alt="Table property panel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I know how to add dimensions (and measures), so that the dimension property panel looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dimension property panel.PNG" style="width: 246px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46759i33602C0605E59EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dimension property panel.PNG" alt="Dimension property panel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But this does not give me everything I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help gratefully received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:50:47 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2024-11-16T00:50:47Z</dc:date>
    <item>
      <title>Extensions - property panel - How to replicate the Columns item - "Show column if..."</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1773375#M13687</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to define the property panel in so that it replicates the table visualization properties?&amp;nbsp; I am particularly interested in how to include the "Show column if..." item, but the "Background color expression", etc. would also be useful.&lt;/P&gt;&lt;P&gt;Column property panel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table property panel.PNG" style="width: 256px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46758i2ADAB46D27421C42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Table property panel.PNG" alt="Table property panel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I know how to add dimensions (and measures), so that the dimension property panel looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dimension property panel.PNG" style="width: 246px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46759i33602C0605E59EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dimension property panel.PNG" alt="Dimension property panel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But this does not give me everything I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help gratefully received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1773375#M13687</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2024-11-16T00:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extensions - property panel - How to replicate the Columns item - "Show column if..."</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1773657#M13696</link>
      <description>&lt;P&gt;I found the answer here:&amp;nbsp;&lt;A href="https://extendingqlik.upper88.com/some-useful-patterns-for-your-qlik-sense-extension-property-panel/" target="_self"&gt;https://extendingqlik.upper88.com/some-useful-patterns-for-your-qlik-sense-extension-property-panel/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Big thanks to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6966"&gt;@ErikWetterberg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can effectively overload an existing property by adding items to, for example, the standard dimensions or measures panels.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measures: {
  uses: "measures",
  min: 1,
  max: 6,
  items: {
    type: {
      ref: "qDef.type",
      type: "string",
      label: "Type",
      component: "dropdown",
      options: [
        { value: "line", label: "Line" },
        { value: "area", label: "Area" },
        { value: "column", label: "Bar" },
        { value: "none", label: "None" }
      ],
      defaultValue: "line"
    }
  }
}	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example above adds a dropdown list to the measures panel and for&amp;nbsp; my case, where I wanted to add&amp;nbsp; "Show column if..." and "Show as link if..." expressions, I used this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var dimensions = {
		uses: "dimensions",
		min: 2,
		items: {
			hide: {
			  ref: "qDef.hideColumn",
			  type: "string",
			  label: "Hide field if...?",
			  type: "string",
			  expression: "optional"
			},
			showaslink: {
			  ref: "qDef.showAsLink",
			  type: "string",
			  label: "Show as link if...?",
			  type: "string",
			  expression: "optional"
			}
			
		  }
    };

...
...
var myCustomSection = {
		// not necessary to define the type, component "expandable-items" will automatically
		// default to "items"
		// type: "items"
		component: "expandable-items",
		label: "Custom Table Settings",
		items: {
				
				dimensions: {
				type: "items",
				label: "Dimensions",
				items: {
					textdesc: propText,
                    dimensions: dimensions
                    }
                },
		....
		...
              
...
...
return {
		type: "items",
		component: "accordion",
		items: {
			customSection: myCustomSection,
			appearance: appearanceSection
		}
	};&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Jan 2021 10:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1773657#M13696</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-01-12T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extensions - property panel - How to replicate the Columns item - "Show column if..."</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1774379#M13706</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you want the new item(s) to be accessible for every row, you will need to set the ref attribute type to qAttributeExpressions, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var dimensions = {
		uses: "dimensions",
		min: 1,
		items:{
			hidecolumn: {
				type: "string",  
				label: "Hide field if...?",
				ref: "qAttributeExpressions.0.qExpression",
				expression: "always",
				defaultValue: ""
			},
			showaslink: {
				ref: "qAttributeExpressions.1.qExpression",
			  	label: "Show as link if...?",
			  	type: "string",
				expression: "always",
				defaultValue: ""  
			}
			
		  }
	};&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 13:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extensions-property-panel-How-to-replicate-the-Columns-item-quot/m-p/1774379#M13706</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2021-01-14T13:16:58Z</dc:date>
    </item>
  </channel>
</rss>

