<?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 Mashup API - Detecting Calculation Condition in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-API-Detecting-Calculation-Condition/m-p/42244#M644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display a message below my line chart, but only if the calculation condition has been met, i.e. the chart is displayed and not the custom message.&amp;nbsp; I have been able to determine that Qlik uses the class "object-error" for the div that shows the 'error' and so I am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.createList({&lt;/P&gt;&lt;P&gt;"qDef": {&lt;/P&gt;&lt;P&gt;"qFieldDefs": [&lt;/P&gt;&lt;P&gt;"[Marketing Year]"&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"qInitialDataFetch": [{&lt;/P&gt;&lt;P&gt;qTop : 0,&lt;/P&gt;&lt;P&gt;qLeft : 0,&lt;/P&gt;&lt;P&gt;qHeight : 100,&lt;/P&gt;&lt;P&gt;qWidth : 1&lt;/P&gt;&lt;P&gt;}]&lt;/P&gt;&lt;P&gt;}, function(reply) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;console.log('Marketing Year changed');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;changeVisibilityAxisLabel();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function &lt;STRONG&gt;changeVisibilityAxisLabel()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var intErrorMessage = $('.object-error').length;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(intErrorMessage!=0)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$('#imgLineYearComparisonAxisLabel').hide();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;else&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$('#imgLineYearComparisonAxisLabel').show();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I wonder whether there is&amp;nbsp; better way, since I am having to use a timeout to cope with the synchronisation issues between the filter being selected and the chart updating to display the chart or error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 12:32:00 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2018-02-02T12:32:00Z</dc:date>
    <item>
      <title>Qlik Sense Mashup API - Detecting Calculation Condition</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-API-Detecting-Calculation-Condition/m-p/42244#M644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display a message below my line chart, but only if the calculation condition has been met, i.e. the chart is displayed and not the custom message.&amp;nbsp; I have been able to determine that Qlik uses the class "object-error" for the div that shows the 'error' and so I am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.createList({&lt;/P&gt;&lt;P&gt;"qDef": {&lt;/P&gt;&lt;P&gt;"qFieldDefs": [&lt;/P&gt;&lt;P&gt;"[Marketing Year]"&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"qInitialDataFetch": [{&lt;/P&gt;&lt;P&gt;qTop : 0,&lt;/P&gt;&lt;P&gt;qLeft : 0,&lt;/P&gt;&lt;P&gt;qHeight : 100,&lt;/P&gt;&lt;P&gt;qWidth : 1&lt;/P&gt;&lt;P&gt;}]&lt;/P&gt;&lt;P&gt;}, function(reply) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;console.log('Marketing Year changed');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;changeVisibilityAxisLabel();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function &lt;STRONG&gt;changeVisibilityAxisLabel()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var intErrorMessage = $('.object-error').length;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(intErrorMessage!=0)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$('#imgLineYearComparisonAxisLabel').hide();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;else&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$('#imgLineYearComparisonAxisLabel').show();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I wonder whether there is&amp;nbsp; better way, since I am having to use a timeout to cope with the synchronisation issues between the filter being selected and the chart updating to display the chart or error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-Mashup-API-Detecting-Calculation-Condition/m-p/42244#M644</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-02-02T12:32:00Z</dc:date>
    </item>
  </channel>
</rss>

