<?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: calling subroutine in UI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515168#M748616</link>
    <description>&lt;P&gt;Hey Gysbert Thanks for replay.&lt;/P&gt;&lt;P&gt;both the post good when we are loading same file or multiple files with same filtering.&lt;/P&gt;&lt;P&gt;good learning for me though this will not solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my requirement is&amp;nbsp;&lt;/P&gt;&lt;P&gt;there 22-25 files i have to load each file has different headers &amp;amp; diff process of sanitizing the data&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;means some may have required columns some may not have for some files will have to filter out some data some wont..&amp;nbsp; and all the files wont be available each time... like wise &amp;amp; so on...&lt;/P&gt;&lt;P&gt;currently i have created 22-25 QVWs to process each file. to get rid of opening of each file &amp;amp; running code&lt;/P&gt;&lt;P&gt;i want something centralize so that on a click of button or something which will run file no 1 or file no 10 or file no 25.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Dec 2018 09:28:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-01T09:28:20Z</dc:date>
    <item>
      <title>calling subroutine in UI</title>
      <link>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515156#M748614</link>
      <description>&lt;P&gt;I Want&amp;nbsp;to call subroutine on click of a button on UI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg IF i click on&amp;nbsp;East East Sub should run, if i click on Central then Central Sub should run like wise..&lt;/P&gt;&lt;P&gt;i don't want to comment uncomment each time in script.&lt;/P&gt;&lt;P&gt;i have attached just sample data in actual its complex script with diff headers conditions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515156#M748614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T21:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: calling subroutine in UI</title>
      <link>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515163#M748615</link>
      <description>&lt;P&gt;See this discussion:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Creating-Analytics/Transfer-selection-to-variable/m-p/450708" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Creating-Analytics/Transfer-selection-to-variable/m-p/450708&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or this one:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Reload-Data-based-on-a-selected-value/m-p/391388#287233" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Reload-Data-based-on-a-selected-value/m-p/391388#287233&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 08:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515163#M748615</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-01T08:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: calling subroutine in UI</title>
      <link>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515168#M748616</link>
      <description>&lt;P&gt;Hey Gysbert Thanks for replay.&lt;/P&gt;&lt;P&gt;both the post good when we are loading same file or multiple files with same filtering.&lt;/P&gt;&lt;P&gt;good learning for me though this will not solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my requirement is&amp;nbsp;&lt;/P&gt;&lt;P&gt;there 22-25 files i have to load each file has different headers &amp;amp; diff process of sanitizing the data&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;means some may have required columns some may not have for some files will have to filter out some data some wont..&amp;nbsp; and all the files wont be available each time... like wise &amp;amp; so on...&lt;/P&gt;&lt;P&gt;currently i have created 22-25 QVWs to process each file. to get rid of opening of each file &amp;amp; running code&lt;/P&gt;&lt;P&gt;i want something centralize so that on a click of button or something which will run file no 1 or file no 10 or file no 25.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 09:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515168#M748616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-01T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: calling subroutine in UI</title>
      <link>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515666#M748617</link>
      <description>&lt;P&gt;The "normal" way would be to use the Qlik server and to create appropriate tasks which runs all your qvw's in scheduled task-chains.&lt;/P&gt;&lt;P&gt;But you could use something like this to update all the qvw's you like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sub AutomaticReload&lt;BR /&gt;&lt;BR /&gt;dim doc,obj, iRow, app, path, newApp, newdoc&lt;BR /&gt;set doc = ActiveDocument&lt;BR /&gt;set obj = doc.GetSheetObject("TB01")&lt;BR /&gt;&lt;BR /&gt;for iRow = 1 to obj.GetRowCount - 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set app = obj.GetCell(iRow, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set path = obj.GetCell(iRow, 1)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set newApp = ActiveDocument.GetApplication&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set newdoc = newApp.OpenDoc (path.Text &amp;amp; app.Text,"","")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;newdoc.Reload&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;newdoc.Save&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;newdoc.closedoc&lt;BR /&gt;next&lt;BR /&gt;&lt;BR /&gt;set obj = nothing&lt;BR /&gt;set app = nothing&lt;BR /&gt;set path = nothing&lt;BR /&gt;set newApp = nothing&lt;BR /&gt;set newdoc = nothing&lt;BR /&gt;&lt;BR /&gt;end sub&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The routine just runs through a tablebox and reads from there the paths and filenames (you need to load them in any way maybe within an inline-load or an Excel or creates the list with a filelist() loop - with the needed order as far as there are any dependencies between them) and which open/reload/save/close one application after another.&lt;/P&gt;&lt;P&gt;It's quite simple but if you need several task-chains with dependencies and/or any kind of error-handling or some other advanced measures it could become quite difficult and a server-solution (with a publisher) might be far more suitable.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calling-subroutine-in-UI/m-p/1515666#M748617</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-03T14:51:56Z</dc:date>
    </item>
  </channel>
</rss>

