<?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: Search data load scripts in all apps for specific table names in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989300#M81763</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14703"&gt;@abelmottac&lt;/a&gt; .&amp;nbsp; No, I have not received a solution to this question.&amp;nbsp; If this capability is not currently in Qlik I am hoping that Qlik will see this post and consider it to be an enhancement request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 22:22:56 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2022-10-05T22:22:56Z</dc:date>
    <item>
      <title>Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912697#M75231</link>
      <description>&lt;P&gt;I would like to know if there is a way to search for key words, such as a source table name, in all data load scripts across all apps.&amp;nbsp; I'm trying to determine which apps use specific tables from our data warehouse in order to clean up the tables that are not being used by any apps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 18:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912697#M75231</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2022-03-31T18:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912743#M75238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49220"&gt;@mikegrattan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can load all your QVD in one application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but while loading the QVD select xml from the type.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_0-1648755349704.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75895i352E6AADDEDFE566/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_0-1648755349704.png" alt="abhijitnalekar_0-1648755349704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After loading the QVD.&lt;/P&gt;
&lt;P&gt;you can select the table name from the field list&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhijitnalekar_1-1648755498392.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75896i92F089330B1A4B31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhijitnalekar_1-1648755498392.png" alt="abhijitnalekar_1-1648755498392.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can load all the QVD which have been generated from all the apps .&amp;nbsp; and get the table list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 19:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912743#M75238</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2022-03-31T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912767#M75244</link>
      <description>&lt;P&gt;Abhijit,&lt;/P&gt;
&lt;P&gt;Thanks for the reply, but my requirement is to search all data load scripts for a table or tables with specific names and specific data sources; these are ODBC connections and not QVD files.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1648757457349.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75898i4C819A35866F0BA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1648757457349.png" alt="mikegrattan_0-1648757457349.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to search data load scripts across all applications for the CCITEMMAST table and get a list of which applications are using that table in a data load.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 20:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1912767#M75244</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2022-03-31T20:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989292#M81762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49220" target="_blank"&gt;@mikegrattan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm with a similar need that you raise.&lt;/P&gt;
&lt;P&gt;Have you got yourself any solution for your problem?&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Abel&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 21:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989292#M81762</guid>
      <dc:creator>abelmottac</dc:creator>
      <dc:date>2022-10-05T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989300#M81763</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14703"&gt;@abelmottac&lt;/a&gt; .&amp;nbsp; No, I have not received a solution to this question.&amp;nbsp; If this capability is not currently in Qlik I am hoping that Qlik will see this post and consider it to be an enhancement request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 22:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989300#M81763</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2022-10-05T22:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989674#M81806</link>
      <description>&lt;P&gt;Thanks, Mike, for your answer.&lt;/P&gt;
&lt;P&gt;I think the same, this would be an&amp;nbsp;&lt;SPAN&gt;enhancement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1989674#M81806</guid>
      <dc:creator>abelmottac</dc:creator>
      <dc:date>2022-10-06T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1999611#M82787</link>
      <description>&lt;P&gt;Searching for the same.&amp;nbsp; So I vote for&amp;nbsp; adding this feature&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/1999611#M82787</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2022-11-02T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search data load scripts in all apps for specific table names</title>
      <link>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/2014836#M83853</link>
      <description>&lt;P&gt;Working with Qlik You have to be creative &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; As it lacks a lot of administering options (sadly).&lt;/P&gt;
&lt;P&gt;First I've created txt file in some folder connection location (lets say lib://Scripts).&lt;/P&gt;
&lt;P&gt;It contains those lines:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LET vAppId = DocumentName();
LET vAppName = DocumentTitle();

Trace APP_ID|$(vAppId)|APP_NAME|$(vAppName);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the script I use in ALL of my application in Qlik instalations (ETLs, CALCs, visialisation APPS, etc). So You have to inject it at the beginning of each APP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$(Include=[lib://Scripts/AppNameTrace.txt]);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I've made special appliacation when I keep track of those things. It loads all the script load log files:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for each FoundFile in filelist( 'lib://LogsFolder' &amp;amp; '\Script\*.log' )

if $(vMinFileDate) &amp;lt; FileTime('$(FoundFile)') then

trace $(FoundFile);

FileList_TMP:

Load distinct
  Text(left(Right('$(FoundFile)', len('$(FoundFile)') -index('$(FoundFile)','/',-1)),36)) as App_ID,
  if(upper(@1) like '*STORE*','STORE','READ') as QVD_ACCESS_TYPE,
  Replace(@1,'/','\') as QVD_FILES,
  FileTime('$(FoundFile)') as ReloadTime

FROM '$(FoundFile)'

(txt, utf8, no labels, delimiter is '\t', msq)

where Upper(@1) like '*.QVD*';


AppNames_TMP:
Load distinct
  Text(SubField(@1, '|', 2)) as App_ID,
  SubField(@1, '|', 4) as App_NAME
  
FROM '$(FoundFile)'

(txt, utf8, no labels, delimiter is '\t', msq)

where 
	Upper(@1) like '*APP_NAME*' and 
    not Upper(@1) like '*TRACE*' and 
    not Upper(@1) like '*UPPER*';

end if;

next FoundFile;

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that this is only for very recent scripts. If You want full history You have to also repeat above for each archive logs folder for each node in Your environment.&lt;/P&gt;
&lt;P&gt;Last but not least some formatting for better App &amp;amp; QVDs names:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FILE_QVD_TABLE:
NoConcatenate
load 
	App_ID,
    QVD_ACCESS_TYPE,
    replace(replace(left(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)),len(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)))-1), 'qvd] (qvd','qvd'), 'qvd](qvd','qvd') as QVD_FILE,
    Date(floor(max(ReloadTime))) as LAST_RELOAD
Resident 
	FileList_TMP
where 
    upper(replace(left(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)),len(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)))-1), 'qvd] (qvd','qvd')) like '*QVD'
    and not replace(left(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)),len(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)))-1), 'qvd] (qvd','qvd') like '*''*'
group by 
	App_ID,
    QVD_ACCESS_TYPE,
    replace(replace(left(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)),len(Right(QVD_FILES,len(QVD_FILES)-Index(QVD_FILES,'\',-1)))-1), 'qvd] (qvd','qvd'), 'qvd](qvd','qvd');

join (FILE_QVD_TABLE)
Load 
	distinct 
    App_ID,
    App_NAME
RESIDENT AppNames_TMP
WHERE not App_NAME like '*''*';

Drop Table FileList_TMP, AppNames_TMP;


&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll leave visualisations for Yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Search-data-load-scripts-in-all-apps-for-specific-table-names/m-p/2014836#M83853</guid>
      <dc:creator>BeeGees</dc:creator>
      <dc:date>2022-12-09T14:57:46Z</dc:date>
    </item>
  </channel>
</rss>

