<?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 Loading inline data via automation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-inline-data-via-automation/m-p/155483#M713996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out whether the above is possible without even having access to the OCX (pending a license). So I've been perusing the documentation and API guide.&lt;/P&gt;&lt;P&gt;All I want to do is create a QlikView document and load it with some data, all in memory and independent of a server. Something like this would be ideal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;var document = ocxControl.CreateDocument();&lt;BR /&gt;&lt;BR /&gt;// this doesn't exist - is there an equivalent?&lt;BR /&gt;document.LoadInline(...);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I see no LoadInline API. I see a way to do it with the internal scripting engine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ...&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So maybe there's a way for me to pass an arbitrary script to the document for execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;var document = ocxControl.CreateDocument();&lt;BR /&gt;&lt;BR /&gt;// this doesn't exist - or does it?&lt;BR /&gt;document.Execute("LOAD * INLINE [ ... ];");&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can anyone tell me whether what I'm trying to achieve is even possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 16:32:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-22T16:32:49Z</dc:date>
    <item>
      <title>Loading inline data via automation</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-inline-data-via-automation/m-p/155483#M713996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out whether the above is possible without even having access to the OCX (pending a license). So I've been perusing the documentation and API guide.&lt;/P&gt;&lt;P&gt;All I want to do is create a QlikView document and load it with some data, all in memory and independent of a server. Something like this would be ideal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;var document = ocxControl.CreateDocument();&lt;BR /&gt;&lt;BR /&gt;// this doesn't exist - is there an equivalent?&lt;BR /&gt;document.LoadInline(...);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I see no LoadInline API. I see a way to do it with the internal scripting engine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ...&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So maybe there's a way for me to pass an arbitrary script to the document for execution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;var document = ocxControl.CreateDocument();&lt;BR /&gt;&lt;BR /&gt;// this doesn't exist - or does it?&lt;BR /&gt;document.Execute("LOAD * INLINE [ ... ];");&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can anyone tell me whether what I'm trying to achieve is even possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 16:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-inline-data-via-automation/m-p/155483#M713996</guid>
      <dc:creator />
      <dc:date>2010-10-22T16:32:49Z</dc:date>
    </item>
    <item>
      <title>Loading inline data via automation</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-inline-data-via-automation/m-p/155484#M713998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for something l that I found in the API Guide:&lt;/P&gt;&lt;P&gt;rem ** add new line to script **&lt;BR /&gt;set docprop = ActiveDocument.GetProperties&lt;BR /&gt;docprop.Script = docprop.Script &amp;amp; "Load * from abc.csv;"&lt;BR /&gt;ActiveDocument.SetProperties docprop&lt;/P&gt;&lt;P&gt;And then you can reload the document with:&lt;/P&gt;&lt;P&gt;ActiveDocument.Reload&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-inline-data-via-automation/m-p/155484#M713998</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-22T17:24:57Z</dc:date>
    </item>
  </channel>
</rss>

