<?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 Storing system variables in a QVD. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194291#M55260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Não entendi o que é $Table e $Rows. Na verdade não entendi o que você está tentando fazer, mas aí vão algumas dicas, não é a resposta exata, mas que acho que pode ajudar:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET versus LET&lt;/P&gt;&lt;P&gt;SET is used for static data&lt;/P&gt;&lt;P&gt;SET vTest1 = 'XPTO' ;&lt;/P&gt;&lt;P&gt;Stores the string 'XPTO' into the variable vTest1&lt;/P&gt;&lt;P&gt;LET evaluates a function then stores the result into the variable&lt;/P&gt;&lt;P&gt;LET vTest2 = today();&lt;/P&gt;&lt;P&gt;Stores the result of the function Today() in the variable vTest2&lt;/P&gt;&lt;P style="font-weight: bold"&gt;AUTOGENERATE()&lt;/P&gt;&lt;P&gt;Generates a table and you can asing data and create columns as you wish.&lt;/P&gt;&lt;P&gt;Try this example to understand how it works&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;set v1 = 1;&lt;BR /&gt;let v2 = today();&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; '$(v1)' as V1,&lt;BR /&gt; '$(v2)' as V2&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 19:54:05 GMT</pubDate>
    <dc:creator>fernandotoledo</dc:creator>
    <dc:date>2010-06-18T19:54:05Z</dc:date>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194288#M55257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm putting together a fairly diverse data sources collector project.&lt;/P&gt;&lt;P&gt;Data is collected through specialized data generation QVCs that access each diverse type of databases (Firebird, MSSQLSERVER, DBII, EXCEL) and I would like to store some simple control information in a control QVD to be used later. Ideally this would be done in the load script it self; The information to be stored would be the table names, the number of rows of each table. I tried the following script that didn't work:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;B&gt;LET&lt;/B&gt; vTabelas = $Table ;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;B&gt;LET&lt;/B&gt; vRows = $Rows ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;B&gt;Load&lt;/B&gt; * &lt;B&gt;inline&lt;/B&gt; [ tabelas, nRows&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;$Table, $Rows ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should this be done ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;MM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 18:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194288#M55257</guid>
      <dc:creator />
      <dc:date>2010-06-18T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194289#M55258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load inline don´t support variables...&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load&lt;BR /&gt; '$(TableName)' as Tabela,&lt;BR /&gt; '$(NoRows)' as Linhas&lt;BR /&gt;Autogenerate (1);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;Brasil - zil - zil ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 18:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194289#M55258</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-18T18:44:22Z</dc:date>
    </item>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194290#M55259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fernando, but i didn't quite got it. Did you mean:&lt;/P&gt;&lt;P&gt;&lt;B&gt;LET vTabelas = $Table ;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vRows = $Rows ; &lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;d_tmp:&lt;/P&gt;&lt;P&gt;Load &lt;B&gt;&lt;I&gt;'$(vTabelas)'&lt;/I&gt;&lt;/B&gt; as Tabela, &lt;B&gt;&lt;I&gt;'$(vRows)'&lt;/I&gt;&lt;/B&gt; as Linhas &lt;B&gt;Autogenerate&lt;/B&gt; (1); &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;It doesn't work. What Am i doing wrong ?&lt;/P&gt;&lt;B&gt;&lt;I&gt;&lt;B&gt;&lt;/B&gt;&lt;/I&gt;&lt;/B&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;MM&lt;/P&gt;&lt;B&gt;&lt;I&gt;&lt;B&gt;&lt;/B&gt;&lt;/I&gt;&lt;/B&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194290#M55259</guid>
      <dc:creator />
      <dc:date>2010-06-18T19:07:11Z</dc:date>
    </item>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194291#M55260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Não entendi o que é $Table e $Rows. Na verdade não entendi o que você está tentando fazer, mas aí vão algumas dicas, não é a resposta exata, mas que acho que pode ajudar:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET versus LET&lt;/P&gt;&lt;P&gt;SET is used for static data&lt;/P&gt;&lt;P&gt;SET vTest1 = 'XPTO' ;&lt;/P&gt;&lt;P&gt;Stores the string 'XPTO' into the variable vTest1&lt;/P&gt;&lt;P&gt;LET evaluates a function then stores the result into the variable&lt;/P&gt;&lt;P&gt;LET vTest2 = today();&lt;/P&gt;&lt;P&gt;Stores the result of the function Today() in the variable vTest2&lt;/P&gt;&lt;P style="font-weight: bold"&gt;AUTOGENERATE()&lt;/P&gt;&lt;P&gt;Generates a table and you can asing data and create columns as you wish.&lt;/P&gt;&lt;P&gt;Try this example to understand how it works&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;set v1 = 1;&lt;BR /&gt;let v2 = today();&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; '$(v1)' as V1,&lt;BR /&gt; '$(v2)' as V2&lt;BR /&gt;AUTOGENERATE (1)&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194291#M55260</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-18T19:54:05Z</dc:date>
    </item>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194292#M55261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ola Fernando,&lt;/P&gt;&lt;P&gt;$Table e $Rows são built in variaveis de sistema do QV que retornam os nomes de toas as tabelas e o numero de linhas respectivamente.&lt;/P&gt;&lt;P&gt;A ideia era utilizar estas variaveis para guardar o registo de cada carregamento. Não tenho qualquer problema em exibi-lasnum Chart ou qq outro objecto de visualização. Só não consigo arranjar uma forma de aceder a elas no script e armazenar o seu valor num QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Um abraço,&lt;/P&gt;&lt;P&gt;MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 17:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194292#M55261</guid>
      <dc:creator />
      <dc:date>2010-06-21T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Storing system variables in a QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194293#M55262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opa,&lt;/P&gt;&lt;P&gt;Entendi agora!&lt;/P&gt;&lt;P&gt;No layout você pode usar os campos do sistema em qualquer tabela ou gráfico diretamente, sem ter que fazer nada no script!&lt;/P&gt;&lt;P&gt;Se você precisar deste tipo de informações no script, use as funções noOfRows() noOfTables() noOfFields()&lt;/P&gt;&lt;P&gt;Procure funçoes similares depois no help!&lt;/P&gt;&lt;P&gt;Um abraço&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Translating:&lt;/P&gt;&lt;P&gt;To access the structure information (such table names and number of rows / columns) you can use the sistem fields initiated by $ as $Field and $Table. You do not need any specific script code to do that.&lt;/P&gt;&lt;P&gt;Therefore you can access this kind of information in the script durning reload through TABLE FUNCTIONS like noOfRows() or noOfTables()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No script você tem funções que retornam estas informações na tabela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 21:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-system-variables-in-a-QVD/m-p/194293#M55262</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-21T21:45:23Z</dc:date>
    </item>
  </channel>
</rss>

