<?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: How to access system objects inside extension object script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341520#M1239639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexander. I will take a look at the links, but if it only gives access to the user's PC I dont think that will work. Once the user enters text into the text box I need to store it somewhere on the server and associate the text with a key value (eg. postcode), so I can retreieve it when the user selects that key value again. If I cant define a connection to a database or file on the server in the javascript, then perhaps I will have to reference the extension object text from a macro. Do you have any idea how to do that? As it is an extension object I expect all of the standard methods available in the API for interacting with objects do not apply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2012 06:02:45 GMT</pubDate>
    <dc:creator>Lee_Matthews</dc:creator>
    <dc:date>2012-06-12T06:02:45Z</dc:date>
    <item>
      <title>How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341518#M1239634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating an extension object to display some text in a scrollable box in QlikView - just like an HTML textarea element. The text in the box will be populated from an external source, and the user will be able to edit the text and click a button to save it back to the source. To start with I am trying to get the text from (and store it) in an xml document or even just a text file. But I am finding that when I try to instantiate a filesystem object or xmldom object in the script it does not work. I assume a DB connection object would be the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the extension object javascript be able to reference system objects such as ActiveX, ADO and FileSystem? &lt;/P&gt;&lt;P&gt;I have set the module security to allow System Access, but does that also relate to extension objects or is there some other configuration I have missed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lee Matthews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341518#M1239634</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341519#M1239637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general no. JavaScript running in a browser are in a sandbox mode are not able to reference local system resources. The module security settings do not affect extenstion objects since it only relates to macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, with the html5 spec things changed (No I know the File API is a stand alone spec). You can now work with local file storage on the client to avoid to old cookie hacks you had to do to preserve state for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read: &lt;A href="http://www.html5rocks.com/en/tutorials/file/dndfiles/"&gt;http://www.html5rocks.com/en/tutorials/file/dndfiles/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But do you really need to store the text in a file? Can't you just insert the text as a textnode in the DOM of your object? Make sure you don't repaint for every update and it should persist until the user switches sheets or the application times out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to take the File route here is a very good demo to do something similar: &lt;A href="http://html5demos.com/contenteditable"&gt;http://html5demos.com/contenteditable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You would have to send the data out to a server based resource to update your source system.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or instance a ADO object through the ActiveX object but that is really really ugly...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341519#M1239637</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-06-11T07:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341520#M1239639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexander. I will take a look at the links, but if it only gives access to the user's PC I dont think that will work. Once the user enters text into the text box I need to store it somewhere on the server and associate the text with a key value (eg. postcode), so I can retreieve it when the user selects that key value again. If I cant define a connection to a database or file on the server in the javascript, then perhaps I will have to reference the extension object text from a macro. Do you have any idea how to do that? As it is an extension object I expect all of the standard methods available in the API for interacting with objects do not apply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 06:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341520#M1239639</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2012-06-12T06:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341521#M1239642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it can't be done by only javascript running in a browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your client side code, the extension object, would have to talk with a server component.&lt;/P&gt;&lt;P&gt;This could be asp, php, javascript, ruby, python etc etc that resides server side and can handle your request.&lt;/P&gt;&lt;P&gt;Reading a file can easily be done with a ajax call in javascript and then having a php-script to handle write back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you posted an example of a soap webservice call in macro form quite recently, port that over to javascript and you have your solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well we do provide a couple of different APIs. The automation API is the one you usually work with over COM to write macros for the desktop and IE-plugin client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the AJAX-client, extensions and web deployments we have the JavaScript API and you do have similar functionality even if the automation api is a bit more advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a good write up on what Javascript CAN'T do (even if the local file sitution is solved with html5) &lt;A class="loading" href="http://javascript.about.com/od/reference/a/cannot.htm"&gt;http://javascript.about.com/od/reference/a/cannot.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 09:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341521#M1239642</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-06-13T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341522#M1239644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We put out a Google BigQuery integration app called American Birth Statistics this morning.&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://eu.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs/American%20Birth%20Statistics.qvw"&gt;http://eu.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs/American%20Birth%20Statistics.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has a good example in it on doing both ajax calls and xhr requests.&lt;/P&gt;&lt;P&gt;Check the myfunctions.js, from line 260-350 it showcases how to get data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 07:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341522#M1239644</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-06-15T07:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341523#M1239646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Alexander.&lt;/P&gt;&lt;P&gt;I should have realised that the javascript environment was limited to client side. But I have seen some examples of customisations where things seemed to be operating on the server side as well. (The R integration Elif did for example has an extension object embedded but it also calls a COM object that is sitting on the server in macro code). I am still working out how these various components interact together, and taking some time to pull apart working examples is a big help. I will have a look at how the BigQuery example works as well. Thanks very much for the feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 08:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341523#M1239646</guid>
      <dc:creator>Lee_Matthews</dc:creator>
      <dc:date>2012-06-15T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341524#M1239648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;P&gt;How do we see the myfunctions.js. I see no option allowing download anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341524#M1239648</guid>
      <dc:creator />
      <dc:date>2012-06-15T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341525#M1239649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you dig around the source you can find myfunctions.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://eu.demo.qlik.com//QvAjaxZfc/QvsViewClient.aspx?public=only&amp;amp;name=Extensions/GoogleBigQuery/MyFunctions.js"&gt;http://eu.demo.qlik.com//QvAjaxZfc/QvsViewClient.aspx?public=only&amp;amp;name=Extensions/GoogleBigQuery/MyFunctions.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't ask me how it works though!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 00:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341525#M1239649</guid>
      <dc:creator />
      <dc:date>2012-06-19T00:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341526#M1239650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That link does not work...&amp;nbsp; Can you post the entire extension in a zip file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link give the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XML page cannot be displayed&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cannot view XML input using style sheet. Please correct the error and then click the &lt;A href="https://community.qlik.com/" target="_self"&gt;Refresh&lt;/A&gt; button, or try again later.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid at the top level of the document. Error processing resource &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341526#M1239650</guid>
      <dc:creator />
      <dc:date>2012-06-19T12:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341527#M1239651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just right mouse click on the link, select "Save as...", save it to your PC, and open the file with WordPad or some other text reader.&amp;nbsp; If you simply click on the link your browser will try to interpret the Javascript and give you an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341527#M1239651</guid>
      <dc:creator />
      <dc:date>2012-06-19T13:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341528#M1239652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how helpful it's going to be to simply look at the extension itself.&amp;nbsp; It was built quickly and the code is probably not as tight and easy to navigate as it should be since it ended up being touched by a lot of different people.&amp;nbsp; The basic idea is that you first send a POST AJAX call to the BigQuery API which queries the data set.&amp;nbsp; In this demos case it's something like this: &lt;/P&gt;&lt;P&gt;&lt;SPAN class=" "&gt;&lt;/SPAN&gt;&lt;CODE class="focusRow subFocusRow "&gt;SELECT mother_race, mother_married, COUNT(*) as count FROM [publicdata:samples.natality] WHERE&amp;nbsp;&amp;nbsp; (mother_race&lt;/CODE&gt;&lt;CODE class="focusRow subFocusRow "&gt; in (0, 1, 2, 3, 4, 5, 6, 7, 9, 18, 28, 38, 48, 58, 68, 78)) GROUP BY mother_race, mother_married ORDER&lt;/CODE&gt;&lt;CODE class="focusRow subFocusRow "&gt; BY mother_race;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;These numbers and what they mean and why we had to use them gets extremely convoluted and isn't really important, but it was the nature of the data.&amp;nbsp; But in general, this is a pretty standard syntax for querying data.&amp;nbsp; Then, the code waits about a second or so while BigQuery gets the results, then sends a GET AJAX call to retrieve the results.&amp;nbsp; The data comes back in JSON notation, and the extension then parses through all of the code.&lt;/P&gt;&lt;P&gt;So the part that shows the bar chart is not as important to the demo since it's just using a 3rd parting JS visualization library to display the data.&amp;nbsp; You could use anything you want to display the data in the extension.&amp;nbsp; The important piece is that it's going out to BigQuery and retrieving results based on a huge data set and bringing it into the extension.&amp;nbsp; Beyond that it's just like creating any other extension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341528#M1239652</guid>
      <dc:creator>Brian_Munz</dc:creator>
      <dc:date>2012-06-19T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341529#M1239653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked for getting the myfunction.js file... Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 14:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341529#M1239653</guid>
      <dc:creator />
      <dc:date>2012-06-19T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341530#M1239654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A downloadable example would be excellent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 21:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341530#M1239654</guid>
      <dc:creator>Michael_Reese</dc:creator>
      <dc:date>2012-06-22T21:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to access system objects inside extension object script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341531#M1239655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;Can any tell me how to access the chart in the current document from the extension script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sampath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 06:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-access-system-objects-inside-extension-object-script/m-p/341531#M1239655</guid>
      <dc:creator />
      <dc:date>2012-12-03T06:51:00Z</dc:date>
    </item>
  </channel>
</rss>

