<?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: Chart-Level Script - Add Load in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Chart-Level-Script-Add-Load/m-p/1940836#M77546</link>
    <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the code you are basing this off is unfortunately wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sense is looking for x and y in your inline data and failing to find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what you are after here is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Add Load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;x as Year,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;y as [Sales Amount]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Inline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;x,y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;2023,10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;2024,20000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Which will load into your data model 2 fields named Year and Sales Amount with the values you have put in place&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 08:52:41 GMT</pubDate>
    <dc:creator>Andrew_Delaney</dc:creator>
    <dc:date>2022-06-08T08:52:41Z</dc:date>
    <item>
      <title>Chart-Level Script - Add Load</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Level-Script-Add-Load/m-p/1937607#M77278</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;So, after the impressive Qlik in 60 video on Chart-Level scripting, I thought I'd jump right in and experiment a little.&lt;/P&gt;
&lt;P&gt;There isn't much in the way of walkthrough demos, so I've been using Qlik's developer guide to try a few things out.&lt;/P&gt;
&lt;P&gt;I'm have trouble at the first hurdle, with the seemly simple task of adding some new data to that already loaded in the bar chart object I'm working with. I keep getting a "Unexpected Dynamic Script Error".&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;
&lt;P&gt;Add Load&lt;BR /&gt;x as Year,&lt;BR /&gt;y as [Sales Amount]&lt;BR /&gt;Inline&lt;BR /&gt;[&lt;BR /&gt;Year,SalesAmount&lt;BR /&gt;2023,10000000&lt;BR /&gt;2024,20000000&lt;BR /&gt;]&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here's the code from the Qlik documentation:&lt;/P&gt;
&lt;P&gt;Add Load&lt;BR /&gt;x as Dates,&lt;BR /&gt;y as Sales&lt;BR /&gt;Inline&lt;BR /&gt;[&lt;BR /&gt;Dates,Sales&lt;BR /&gt;2001/09/1,1000&lt;BR /&gt;2001/09/10,-300&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 08:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Level-Script-Add-Load/m-p/1937607#M77278</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2022-05-31T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chart-Level Script - Add Load</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-Level-Script-Add-Load/m-p/1940836#M77546</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the code you are basing this off is unfortunately wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sense is looking for x and y in your inline data and failing to find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what you are after here is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Add Load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;x as Year,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;y as [Sales Amount]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Inline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;x,y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;2023,10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;2024,20000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Which will load into your data model 2 fields named Year and Sales Amount with the values you have put in place&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-Level-Script-Add-Load/m-p/1940836#M77546</guid>
      <dc:creator>Andrew_Delaney</dc:creator>
      <dc:date>2022-06-08T08:52:41Z</dc:date>
    </item>
  </channel>
</rss>

