<?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 Qlik Sense Extension custom measure property Show / Hide in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1705343#M12812</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm adding 2 custom properties on measures but I only want to display the second property based on the selection in the first, I have used show in appearance properties passing in data but not sure how I'd do that in measure custom properties, here is my code so far that works when you comment the show part:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;measures: {
uses: "measures",
min: 1,
max: 10,
items: {
measuretype: {
type: "boolean",
component: "switch",
label: "Bar / Line",
ref: "qDef.measure.type",
options: [
{
value: true,
label: "Bar",
},
{
value: false,
label: "Line",
},
],
defaultValue: true,
},
measureaxis: {
type: "boolean",
component: "switch",
label: "Secondary Axis",
ref: "qDef.measure.axis",
options: [
{
value: false,
label: "Primary axis",
},
{
value: true,
label: "Secondary axis",
},
],
defaultValue: false,
show: function () {
if (!qDef.measure.type) {
return true;
}
},
},

},&lt;/LI-CODE&gt;&lt;P&gt;Hopefully&amp;nbsp; you can see what I'm trying to do?&amp;nbsp; Please can you advise what I need to do to get this to work?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:19:33 GMT</pubDate>
    <dc:creator>Domski74</dc:creator>
    <dc:date>2024-11-16T02:19:33Z</dc:date>
    <item>
      <title>Qlik Sense Extension custom measure property Show / Hide</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1705343#M12812</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm adding 2 custom properties on measures but I only want to display the second property based on the selection in the first, I have used show in appearance properties passing in data but not sure how I'd do that in measure custom properties, here is my code so far that works when you comment the show part:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;measures: {
uses: "measures",
min: 1,
max: 10,
items: {
measuretype: {
type: "boolean",
component: "switch",
label: "Bar / Line",
ref: "qDef.measure.type",
options: [
{
value: true,
label: "Bar",
},
{
value: false,
label: "Line",
},
],
defaultValue: true,
},
measureaxis: {
type: "boolean",
component: "switch",
label: "Secondary Axis",
ref: "qDef.measure.axis",
options: [
{
value: false,
label: "Primary axis",
},
{
value: true,
label: "Secondary axis",
},
],
defaultValue: false,
show: function () {
if (!qDef.measure.type) {
return true;
}
},
},

},&lt;/LI-CODE&gt;&lt;P&gt;Hopefully&amp;nbsp; you can see what I'm trying to do?&amp;nbsp; Please can you advise what I need to do to get this to work?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1705343#M12812</guid>
      <dc:creator>Domski74</dc:creator>
      <dc:date>2024-11-16T02:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Extension custom measure property Show / Hide</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1706852#M12825</link>
      <description>&lt;P&gt;The show function has parameters that containg the current values of the properties, so you need to check the content of those.&lt;/P&gt;&lt;P&gt;I don't think the parameters are well documented, so a first step would be to simple check the contents, like this:&lt;/P&gt;&lt;P&gt;show: function (data){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;console.log('show', data);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 07:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1706852#M12825</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2020-05-31T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Extension custom measure property Show / Hide</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1710010#M12883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/63112"&gt;@Domski74&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here this is a solution for your issue&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;BR /&gt;show: function (e) {&lt;BR /&gt;if (e.qDef.measure.type) {&lt;BR /&gt;return true;&lt;BR /&gt;}else{&lt;BR /&gt;return false&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 02:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1710010#M12883</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2020-06-11T02:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Extension custom measure property Show / Hide</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1710075#M12885</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks Ajay, I'd actually already figured this based on Erik's answer, but your answer is absolutely correct, thank you.&amp;nbsp; I'll mark yours as correct.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 06:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Extension-custom-measure-property-Show-Hide/m-p/1710075#M12885</guid>
      <dc:creator>Domski74</dc:creator>
      <dc:date>2020-06-11T06:44:05Z</dc:date>
    </item>
  </channel>
</rss>

