<?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 truncated variable via script in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/truncated-variable-via-script/m-p/1128785#M5293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;I am trying to load a set of variable via script. But, loading, it truncates each time a portion of the variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;The variable load is a formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=&lt;SPAN style="color: #ff0000;"&gt;$(=$(vAnnéeInJour)-$1)&lt;/SPAN&gt;"}&amp;gt;}[Coût financier Tra])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;In my scrip I tested several methods:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET [vStock € A-x] ='sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=$(=$(vAnnéeInJour)-$1)"}&amp;gt;}[Coût financier Tra])' ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;SET [vStock € A-x] =sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=$(=$(vAnnéeInJour)-$1)"}&amp;gt;}[Coût financier Tra]) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;In both cases, it removes the parts of the formula I or reference variables. I ended up with the text:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;="}&amp;gt;}[Coût financier Tra])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Note: If I manually created the variable, it works flawlessly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Does anyone know how to get around this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 13:28:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-11T13:28:06Z</dc:date>
    <item>
      <title>truncated variable via script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/truncated-variable-via-script/m-p/1128785#M5293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;I am trying to load a set of variable via script. But, loading, it truncates each time a portion of the variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;The variable load is a formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=&lt;SPAN style="color: #ff0000;"&gt;$(=$(vAnnéeInJour)-$1)&lt;/SPAN&gt;"}&amp;gt;}[Coût financier Tra])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;In my scrip I tested several methods:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET [vStock € A-x] ='sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=$(=$(vAnnéeInJour)-$1)"}&amp;gt;}[Coût financier Tra])' ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;SET [vStock € A-x] =sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;=$(=$(vAnnéeInJour)-$1)"}&amp;gt;}[Coût financier Tra]) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;In both cases, it removes the parts of the formula I or reference variables. I ended up with the text:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TST_ID={0,1},[Type article Art]=-{"S*"},[AAAA DP]={"&amp;lt;="}&amp;gt;}[Coût financier Tra])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Note: If I manually created the variable, it works flawlessly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;Does anyone know how to get around this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: 'Times New Roman', serif; color: #212121;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: black;"&gt;thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 13:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/truncated-variable-via-script/m-p/1128785#M5293</guid>
      <dc:creator />
      <dc:date>2016-07-11T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: truncated variable via script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/truncated-variable-via-script/m-p/1128786#M5294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue is with Dollar sign getting evaluated in the script... try this approach mentioned by Stefan here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1062225"&gt;Re: Expression as a variable with $-sign expansion&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/truncated-variable-via-script/m-p/1128786#M5294</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-12T10:30:10Z</dc:date>
    </item>
  </channel>
</rss>

