<?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: QlikView as a search engine for SQL database data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393359#M564337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points 2 &amp;amp; 4 works perfectly. WHere as point 3 didn't work for me.It says 'No matches found in search'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in Point 4, is there any way I can modify the 'Label' for the table object field. As I have used Qualify *. table names are coming in the field names. I want to replace the tablename. with "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 11:15:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-06T11:15:01Z</dc:date>
    <item>
      <title>QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393353#M564331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got a requirement to create a search engine in QlikView to browse through the data that is available in our data warehouse tables (around 150 tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is what I have managed to do till date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Load all tables data with 'Qualify'. That way they are not joined to each other (and I dont want them to be joined)&lt;/P&gt;&lt;P&gt;2. A list box on the top which displays the list of table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to do the below, but not sure what is the best way to do the same&lt;/P&gt;&lt;P&gt;3. Create a search object and assign it with the fields of the selected table (from the list box defined in step 2 above)&lt;/P&gt;&lt;P&gt;4. Create a table object which will display all columns of the selected table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want both point 3 &amp;amp; 4 to change dynamically based on table selected in step 2 above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible in QlikView?&amp;nbsp; if YES then please help me to understand the best way to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 11:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393353#M564331</guid>
      <dc:creator />
      <dc:date>2013-02-01T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393354#M564332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get to the database schema using SQLTABLES, SQLCOLUMNS and SQLTYPES.&amp;nbsp; I use these commands to load the schema into tables, but you may have to do it a certain way via resident tables if you need to filter them. Something like ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBC CONNECT TO ???;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AllODBCTables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQLCOLUMNS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBCDataTypes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQLTYPES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISCONNECT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AllTables: // for investigation into all available tables&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //TABLE_QUALIFIER as All.tblQualifier, //no data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE_OWNER as All.tblOwner,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE_NAME as All.tblName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COLUMN_NAME as All.tblColName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_TYPE as All.tblColDataType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //TYPE_NAME as All.tblColTypeName, //no data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRECISION as All.tblColPrecision,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LENGTH as All.tblColLength,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCALE as All.tblColScale,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RADIX as All.tblColRadix,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULLABLE as All.tblColNullble,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //REMARKS as tblColRmrks, //no data &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //EXTENDED_ID as tblColExtID, //no data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_SOURCE as All.tblDSource&lt;/P&gt;&lt;P&gt;resident AllODBCTables &lt;/P&gt;&lt;P&gt;left join (AllTables)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtDataType as All.tblColDataType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtTypeNameList as All.dtTypeNameList&lt;/P&gt;&lt;P&gt;resident ODBCTypes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then want to interrogate data within the fields, you can probably build a macro to do SQL interrogation via ADODB based on user selections or maybe the new Direct Discovery can help there.&amp;nbsp; Another way is to just loop through each table in the load script with Qualify (as you stated) and load * (but this might create a very large file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 12:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393354#M564332</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-02-01T12:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393355#M564333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data inside the tables are not that huge so the size is not a problem. I have used the Qualify * and is loading the data as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge that I am having is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to dynamically assign columns of a selected SQL table to 'QlikView table object'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 12:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393355#M564333</guid>
      <dc:creator />
      <dc:date>2013-02-01T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393356#M564334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. Add a listbox and add the system field $Table&lt;/P&gt;&lt;P&gt;3. Create a search object and select Search in List of Fields and use the expression =GetFieldSelections([$Field])&lt;/P&gt;&lt;P&gt;4. You'll have to use a macro if you want to dynamically create a table box with all the columns of a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ReplaceTBFields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Fields = ActiveDocument.Fields("$Field").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set tb= ActiveDocument.GetSheetObject("TB07")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb.addfield "$Field"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 0 to tb.getcolumncount -1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb.removefield(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 0 to Fields.Count -1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb.AddField Fields(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tb.removefield(0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change TB07 with the ID of your table box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 12:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393356#M564334</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-01T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393357#M564335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, understand it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create yourself the following variables ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objFieldList = Concat($Field,';')&amp;nbsp; -- assumes none of your fields have ';' char in them&lt;/P&gt;&lt;P&gt;objField1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;SPAN style="text-decoration: line-through;"&gt;RangeMaxString(&lt;/SPAN&gt;subField(objFieldList,';',1)&lt;SPAN style="text-decoration: line-through;"&gt;,0)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- or use a space instead of zero&lt;/P&gt;&lt;P&gt;objField2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;SPAN style="text-decoration: line-through;"&gt;RangeMaxString(&lt;/SPAN&gt;subField(objFieldList,';',2)&lt;SPAN style="text-decoration: line-through;"&gt;,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;... and repeat until enough variables for fields as required.&amp;nbsp; This could easily be created in a loop in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in a chart object create calculated dimensions and a dummy expression (=1) as ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(objField1)&lt;/P&gt;&lt;P&gt;=$(objField2) .. etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Ignore the RangeMaxString above, you need to wrap some control around the Calculated dimension to hide the column when that variable is not relevant - will work that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393357#M564335</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-02-01T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393358#M564336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try that again ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objFieldList = Concat($Field,';') &lt;/P&gt;&lt;P&gt;objField1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = subField(objFieldList,';',1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;objField2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = subField(objFieldList,';',2)&lt;/P&gt;&lt;P&gt;... and repeat until enough variables for fields as required.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$(objField1)'&lt;/P&gt;&lt;P&gt;='$(objField2)' .. etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393358#M564336</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-02-01T13:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView as a search engine for SQL database data</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393359#M564337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points 2 &amp;amp; 4 works perfectly. WHere as point 3 didn't work for me.It says 'No matches found in search'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in Point 4, is there any way I can modify the 'Label' for the table object field. As I have used Qualify *. table names are coming in the field names. I want to replace the tablename. with "".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 11:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-as-a-search-engine-for-SQL-database-data/m-p/393359#M564337</guid>
      <dc:creator />
      <dc:date>2013-02-06T11:15:01Z</dc:date>
    </item>
  </channel>
</rss>

