<?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: Store global settings into a txt-file for include-statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347529#M619165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The single quotes which appear in the field Setting cause the whole field value to be wrapped in double quotes causing the load problem. You could just load three fields - Action (LET or SET), Variable (Name), and Value as separate fields direct from the database table and iterate over the rows something like this (I'm using an xls file as a source) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GlobalVariables:&lt;/P&gt;&lt;P&gt;LOAD Action, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM [GlobalVariables.xls] (biff, embedded labels, table is Sheet1$); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('GlobalVariables')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let Variable = peek('Variable',$(i),'GlobalVariables');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let Value = peek('Value',$(i),'GlobalVariables');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If peek('Action',$(i),'GlobalVariables') = 'LET' then&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET $(Variable) = $(Value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp; SET $(Variable) = $(Value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i = Nothing;&lt;/P&gt;&lt;P&gt;Let Variable = Nothing;&lt;/P&gt;&lt;P&gt;Let Value = Nothing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 15:32:30 GMT</pubDate>
    <dc:creator>flipside</dc:creator>
    <dc:date>2017-05-16T15:32:30Z</dc:date>
    <item>
      <title>Store global settings into a txt-file for include-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347526#M619162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9.0pt; mso-ansi-language: EN-GB; font-family: 'Verdana','sans-serif';"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; line-height: 115%; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: #222222; mso-ansi-language: EN-GB;"&gt;We want to maintain the base of our Qlikviewdocument-settings on one central location, so in &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9.0pt; mso-ansi-language: EN-GB; font-family: 'Verdana','sans-serif';"&gt;our DWH we have created a file GlobalVariables with settings for those Qlikview Documents.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9.0pt; mso-ansi-language: EN-GB; font-family: 'Verdana','sans-serif';"&gt;In a Qlikview Document (see attach document) I create a table &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; line-height: 115%; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;GlobalVariables&lt;/SPAN&gt;&lt;SPAN style="line-height: 115%; color: #000000; font-size: 9.0pt; mso-ansi-language: EN-GB; font-family: 'Verdana','sans-serif';"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;GlobalVariables:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon; mso-ansi-language: EN-GB;"&gt;VariableName&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon; mso-ansi-language: EN-GB;"&gt;VariableContent&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon; mso-ansi-language: EN-GB;"&gt;VariableDescription&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;SQL&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt; SELECT *&lt;BR /&gt; FROM "QlikView_Repository".dbo.GlobalVariables;&lt;BR /&gt; &lt;BR /&gt; ToTXTfile:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;NoConcatenate&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon; mso-ansi-language: EN-GB;"&gt;VariableContent&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon; mso-ansi-language: EN-GB;"&gt;Setting&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt; GlobalVariables;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;This table ToTXTfile I store as a TXT-file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;Store&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt; ToTXTfile &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;Into&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: gray; mso-ansi-language: EN-GB;"&gt;$(DataPathTxt)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;GlobalVariables.txt (&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;txt&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue; mso-ansi-language: EN-GB;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt; ';'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;The txt-file I get, I cannot use in an included statement like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: gray; mso-ansi-language: EN-GB;"&gt;$(Include=c:\qlikview\datasources\txt\globalvariables.txt)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;because I get load-failures and so the txt-file is not like expected:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;Setting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathExcel = 'C:\Qlikview\Datasources\excel\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathTxt =&amp;nbsp; 'C:\Qlikview\Datasources\txt\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathImages =&amp;nbsp; 'C:\Qlikview\Datasources\images\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathQvd =&amp;nbsp; 'C:\Qlikview\Datasources\qvd\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DATADIR = 'E:\QlikView\Datasources\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathExcel = 'E:\QlikView\Datasources\excel\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathTxt&amp;nbsp; = 'E:\QlikView\Datasources\txt\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathImages =&amp;nbsp; 'E:\QlikView\Datasources\images\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET DataPathQvd = 'E:\QlikView\QVD_Files\';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodStartYear = (year(date(now()))-3);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodStartMonth = (month(date(now()))-3);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodStartMonthNum = num(month(date(now()))-3);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodStartDate =&amp;nbsp; MakeDate((year(date(now()))-3), 1, 1);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurrentYear= (year(date(now())));"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurrentMonth = (month(date(now())));"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurrentMonthNum = num(month(today()));"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurrentDateNum = num(today());"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodEndYear = (year(date(now()))+2);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodEndMonth = (month(date(now()))+2);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodEndMonthNum = num(month(date(now()))+2);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vPeriodEndDate = MakeDate((year(date(now()))+2), 12, 31);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vMonthYear = (month(date(now()))) &amp;amp;'-'&amp;amp;(year(date(now())));"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vInActiveCol = RGB(48/65/82);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vActiveCol = RGB (0/85/165) ;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vActiveColText = RGB (0/0/0) ;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vAccentCol = RGB (206/212/219);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET #LANGUAGE = 'German';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vLanguage = '= Minstring(#LANGUAGE)';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vSelectedLangKey = Only(LangKey);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurrency = 'EUR';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vExcRate = 1;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"LET vCurSign = Only(CurrencySign);"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vOneOrder='=GetPossibleCount(SalesInvoiceNumber)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vOneCustomer='=GetPossibleCount(CustomerNumber)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vProductGroup='=GetPossibleCount(ProductGroup)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vYearNumber='=GetPossibleCount(Year)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vMonthNumber='=GetPossibleCount(MonthShortName)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;"SET vMounting='=GetPossibleCount(Mountinggroup)=1';"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;When I use the txt-file in n included statement and give a reload, the reload has problems with the VariableContent and "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;My questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;Is it possible to create a txt-file which can be used in an included statement?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;When Yes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;: what should be changed in the store statement to get the right txt-file for the include statement?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;When NO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black; mso-ansi-language: EN-GB;"&gt;: is there another possible solution to get the settings from the DWH into a Qlikview Document and use them as &lt;STRONG&gt;Settings&lt;/STRONG&gt; not as a &lt;STRONG&gt;Table?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 14:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347526#M619162</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-05-15T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Store global settings into a txt-file for include-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347527#M619163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you only need to erase the "s when loading.&lt;/P&gt;&lt;P&gt;REPLACE (Mytext, '"', '')&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 14:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347527#M619163</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-05-15T14:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Store global settings into a txt-file for include-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347528#M619164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution does not give the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can load the created txt file as a normal text file and then I get a table of text without ", but if I load the file with the include command ($(Include=c:\qlikview\datasources\txt\globalvariables.txt);), I keep the error message, especially since the Label &lt;STRONG&gt;Setting&lt;/STRONG&gt; is also loaded&lt;IMG alt="2017-05-16 16_38_04-Script Error.jpg" class="jive-image image-1" src="/legacyfs/online/163581_2017-05-16 16_38_04-Script Error.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And I have to use the inclue-load because the Settings are important for the document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Court&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 14:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347528#M619164</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-05-16T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Store global settings into a txt-file for include-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347529#M619165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The single quotes which appear in the field Setting cause the whole field value to be wrapped in double quotes causing the load problem. You could just load three fields - Action (LET or SET), Variable (Name), and Value as separate fields direct from the database table and iterate over the rows something like this (I'm using an xls file as a source) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GlobalVariables:&lt;/P&gt;&lt;P&gt;LOAD Action, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM [GlobalVariables.xls] (biff, embedded labels, table is Sheet1$); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('GlobalVariables')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let Variable = peek('Variable',$(i),'GlobalVariables');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let Value = peek('Value',$(i),'GlobalVariables');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If peek('Action',$(i),'GlobalVariables') = 'LET' then&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET $(Variable) = $(Value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp; SET $(Variable) = $(Value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i = Nothing;&lt;/P&gt;&lt;P&gt;Let Variable = Nothing;&lt;/P&gt;&lt;P&gt;Let Value = Nothing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347529#M619165</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2017-05-16T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Store global settings into a txt-file for include-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347530#M619166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution. I will test it and come back to you with the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Court &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 06:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-global-settings-into-a-txt-file-for-include-statement/m-p/1347530#M619166</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-05-17T06:47:05Z</dc:date>
    </item>
  </channel>
</rss>

