<?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 Dynamics AX  qlikview Ocx embeded control (auto refresh data) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182445#M48098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sort of Part answer for Dynamic ax form with qlikview ocx on it&lt;/P&gt;&lt;P&gt;on the init method of the form --load the quickview doc into the OCX control&lt;/P&gt;&lt;P&gt;public void init()&lt;BR /&gt;{&lt;BR /&gt; super();&lt;BR /&gt; activex.OpenDocument("c:\\qlik_sales.qvw");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then refresh the data by calling the controls relaod method (from a button on the form)&lt;/P&gt;&lt;P&gt;void clicked()&lt;BR /&gt;{&lt;BR /&gt; com doc;&lt;/P&gt;&lt;P&gt;super();&lt;BR /&gt; doc=activex.ActiveDocument();&lt;BR /&gt; doc.reload();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;What I really want to do is advoid having to go out all around the houses using oledb and sql to get my data.&lt;/P&gt;&lt;P&gt;I would like to stream it directly into the ocx control from AX&lt;/P&gt;&lt;P&gt;is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jan 2011 08:28:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-25T08:28:20Z</dc:date>
    <item>
      <title>Dynamics AX  qlikview Ocx embeded control (auto refresh data)</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182444#M48097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;Have you a tutorial on how to use the quikview ocx control.&lt;/P&gt;&lt;P&gt;In particular how to automatically refresh the data from outside (in this case AX.)&lt;/P&gt;&lt;P&gt;I would like to be able to automatically upload the data into the control rather than having to do a reload.&lt;/P&gt;&lt;P&gt;of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;CONNECT&lt;/B&gt; TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Retail;Data Source=RIVER-SQL1\QA;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=ROV-RIV-WSDHIL;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;CONNECT&lt;/B&gt; TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Retail;Data Source=RIVER-SQL1\QA;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=ROV-RIV-WSDHIL;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;CONNECT&lt;/B&gt; TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Retail;Data Source=RIVER-SQL1\QA;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=ROV-RIV-WSDHIL;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;SELECT * &lt;P&gt;FROM Retail.dbo."qlik_customers";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;SELECT * &lt;P&gt;FROM Retail.dbo."qlik_products";&lt;/P&gt;SELECT * &lt;P&gt;FROM Retail.dbo."qlik_orders";&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 17:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182444#M48097</guid>
      <dc:creator />
      <dc:date>2011-01-24T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Dynamics AX  qlikview Ocx embeded control (auto refresh data)</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182445#M48098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sort of Part answer for Dynamic ax form with qlikview ocx on it&lt;/P&gt;&lt;P&gt;on the init method of the form --load the quickview doc into the OCX control&lt;/P&gt;&lt;P&gt;public void init()&lt;BR /&gt;{&lt;BR /&gt; super();&lt;BR /&gt; activex.OpenDocument("c:\\qlik_sales.qvw");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then refresh the data by calling the controls relaod method (from a button on the form)&lt;/P&gt;&lt;P&gt;void clicked()&lt;BR /&gt;{&lt;BR /&gt; com doc;&lt;/P&gt;&lt;P&gt;super();&lt;BR /&gt; doc=activex.ActiveDocument();&lt;BR /&gt; doc.reload();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;What I really want to do is advoid having to go out all around the houses using oledb and sql to get my data.&lt;/P&gt;&lt;P&gt;I would like to stream it directly into the ocx control from AX&lt;/P&gt;&lt;P&gt;is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 08:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182445#M48098</guid>
      <dc:creator />
      <dc:date>2011-01-25T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Dynamics AX  qlikview Ocx embeded control (auto refresh data)</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182446#M48099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only other way I can think of would be to use the Document.DynamicUpdateCommand method to add/update your data in your tables. You'll need to have an already existing data model though, as you won't be able to create or alter tables with this method. Here are the 3 examples from the QV api guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="font-style: italic; margin: 0px"&gt;&lt;CODE&gt;sub Update&lt;BR /&gt; SET Result = ActiveDocument.DynamicUpdateCommand ("UPDATE * SET Discount = if(Discount &amp;gt;= 35, 0, if (City='Stockholm', Discount + 5, Discount + 2)) WHERE Country = 'SE'")&lt;BR /&gt; if Result = false then&lt;BR /&gt; MsgBox Result.ErrorMessage&lt;BR /&gt; end if&lt;BR /&gt; end sub&lt;BR /&gt;&lt;BR /&gt;sub Insert&lt;BR /&gt; SET Result = ActiveDocument.DynamicUpdateCommand ("INSERT INTO * (Country, City) VALUES (DK, Copenhagen), (NO, Oslo)")&lt;BR /&gt; if Result = false then&lt;BR /&gt; MsgBox Result.ErrorMessage&lt;BR /&gt; end if&lt;BR /&gt; end sub&lt;BR /&gt;&lt;BR /&gt;sub Delete&lt;BR /&gt; SET Result = ActiveDocument.DynamicUpdateCommand ("DELETE FROM CITY WHERE IsNull (Discount)")&lt;BR /&gt; if Result = false then&lt;BR /&gt; MsgBox Result.ErrorMessage&lt;BR /&gt; end if&lt;BR /&gt; end sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 09:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamics-AX-qlikview-Ocx-embeded-control-auto-refresh-data/m-p/182446#M48099</guid>
      <dc:creator />
      <dc:date>2011-01-25T09:44:44Z</dc:date>
    </item>
  </channel>
</rss>

