<?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: Peek in TextBox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791078#M279725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make me some examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 13:22:10 GMT</pubDate>
    <dc:creator>marco_puccetti</dc:creator>
    <dc:date>2015-03-12T13:22:10Z</dc:date>
    <item>
      <title>Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791063#M279710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, when i try to use this function: =peek('PRODOTTO', 1,'FATTI') in a TextBox or in a Variable, the sintax checker return error.&lt;/P&gt;&lt;P&gt;Is there anything i have done wrong?&lt;/P&gt;&lt;P&gt;PRODOTTO is the field, 1 is the record and FATTI is the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791063#M279710</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-03-12T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791064#M279711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we can not write peek function in text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791064#M279711</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2015-03-12T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791065#M279712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() is a script function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791065#M279712</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-03-12T10:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791066#M279713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() is inter record function &amp;amp; it is use in back end scripting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791066#M279713</guid>
      <dc:creator>mukesh24</dc:creator>
      <dc:date>2015-03-12T10:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791067#M279714</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;As said above Peek function is a script function can't be used in UI. However, if you explain what you want to achieve may be someone might point you in right path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are just debugging and wanting to know what the peek function (variable) would return. Then insert EXIT SCRIPT after the peek, reload and go to UI put the variable in a Text box. Dollar sign expand it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791067#M279714</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-03-12T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791068#M279715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the first record from the that field name, you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SubField(Concat(DISTINCT &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRODOTTO, '|'), '|', 1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only issue is that the Concat will do a ascending order concatenation and instead of getting the very first entry from that table, you will get first value in the ascending order. To fix this you will have to add a column in your script which would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;FATTI:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD PRODOTTO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and so on...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM XYZ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;=SubField(Concat(DISTINCT &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;PRODOTTO, '|', ID), '|', 1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you concat function will be based on the ID field and your SubField will give you the very first entry from your PRODOTTO field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791068#M279715</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-12T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791069#M279716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this let function in scripting and then use variable in text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FATTI:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(PRODOTTO)&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;PRODOTTO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resident&lt;/STRONG&gt; main_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let variable=peek('PRODOTTO', 0,'FATTI') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;krish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791069#M279716</guid>
      <dc:creator />
      <dc:date>2015-03-12T11:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791070#M279717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Peek function is not supported in Textbox then how have you used it in textbox. You&amp;nbsp; may tell the description of task you want to do then only any of us may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791070#M279717</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-12T11:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791071#M279718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FieldValue() like below in Text box&lt;/P&gt;&lt;P&gt;=FieldValue('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PRODOTTO&lt;/SPAN&gt;',1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791071#M279718</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-12T11:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791072#M279719</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;anbu's suggestion is correct, &lt;EM&gt;providing PRODOTTO is not a key field &lt;/EM&gt;(ie present in more than one table in the table viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If PRODOTTO is a key field, you will need to do something in the load script to mark the record with a flag field, or Peek() it into a variable which you can then use in your expression. This also works if it is not a key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791072#M279719</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-12T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791073#M279720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried with this: Let m_Prod = peek('PRODOTTO', 0,'FATTI');&lt;/P&gt;&lt;P&gt;and debugging the script it returns the first data of the column PRODOTTO (that is prod A), but if i insert the $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;m_Prod&lt;/SPAN&gt;) in the text field it will return this error: "Error Garbage after expression: A".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791073#M279720</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-03-12T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791074#M279721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you put &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;m_Prod &lt;/STRONG&gt;(without the $ and parenthesis) in a text object?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791074#M279721</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-12T12:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791075#M279722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, but is not always necessary the $ expansion before each variable reading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791075#M279722</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-03-12T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791076#M279723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestion from &lt;A href="https://community.qlik.com/qlik-users/155731"&gt;anbu cheliyan&lt;/A&gt; worked if you need to access distinct fieldvalues. If you need to access a fieldvalue from a certain table-record you need to extend these table with a rowno() ID which you then could use within the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt; RowNoID = {1}&amp;gt;} PRODOTTO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791076#M279723</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-12T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791077#M279724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, $() is used when you have to evaluate a variable. If you just need the value from the variable without evaluating it, you don't use $().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, when you used Peek function it spits out a value which can then be used without the $().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791077#M279724</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-12T12:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791078#M279725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make me some examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791078#M279725</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-03-12T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791079#M279726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the attached qvw. You might find this helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: there are two variables and both will give you different result for with and without $()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791079#M279726</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-12T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Peek in TextBox</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791080#M279727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 08:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-in-TextBox/m-p/791080#M279727</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-03-16T08:33:46Z</dc:date>
    </item>
  </channel>
</rss>

