<?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 Validate Pasted Entries in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297010#M110171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following is a follow on from &lt;A _jive_internal="true" href="https://community.qlik.com/message/143579#143579"&gt;http://community.qlik.com/message/143579#143579&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of the forum I now have a report whereby the user can paste a list of customers into an input box and apply these as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would now like to do is validate this list against my customer table and report back any customer codes from the pasted list that are incorrect (do not exist).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 12:26:29 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2011-08-24T12:26:29Z</dc:date>
    <item>
      <title>Validate Pasted Entries</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297010#M110171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following is a follow on from &lt;A _jive_internal="true" href="https://community.qlik.com/message/143579#143579"&gt;http://community.qlik.com/message/143579#143579&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of the forum I now have a report whereby the user can paste a list of customers into an input box and apply these as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would now like to do is validate this list against my customer table and report back any customer codes from the pasted list that are incorrect (do not exist).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 12:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297010#M110171</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-08-24T12:26:29Z</dc:date>
    </item>
    <item>
      <title>Validate Pasted Entries</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297011#M110172</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;So far I have got the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help with the most important bit which is - how do I check the value variable against my table to see if it exists within vbScript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;sub Filter&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;' Get pasted values from input box and update strVariable&lt;BR /&gt;&lt;BR /&gt;set v = ActiveDocument.Variables("varCustomer")&lt;BR /&gt;strVariable = v.GetContent.String&lt;BR /&gt;&lt;BR /&gt;' Separate Data with Commas&lt;BR /&gt;&lt;BR /&gt;vOptions = ucase("'" &amp;amp; replace(strVariable, chr(32), "','") &amp;amp; "'")&lt;BR /&gt;&lt;BR /&gt;' Update varCustomer with comma separatated array&lt;BR /&gt;&lt;BR /&gt;v.SetContent vOptions,true&lt;BR /&gt;&lt;BR /&gt;' Validate Entries&lt;BR /&gt;&lt;BR /&gt;' Reset varCustomerCheck&lt;BR /&gt;&lt;BR /&gt;set vCheck = ActiveDocument.Variables("varCustomerCheck")&lt;BR /&gt;vCheck.SetContent "",true&lt;BR /&gt;&lt;BR /&gt;' Get updated varCustomerCheck variable and split&lt;BR /&gt;&lt;BR /&gt;varArray = v.GetContent.String&lt;BR /&gt;varValue = split(varArray,",")&lt;BR /&gt;&lt;BR /&gt;' Set Validation Field&lt;BR /&gt;&lt;BR /&gt;Set obj =ActiveDocument.Getfield("%CustomerKey")&lt;BR /&gt;obj.clear &lt;BR /&gt;&lt;BR /&gt;for i=lbound(varValue) to ubound(varValue)&lt;BR /&gt;&lt;BR /&gt;' How do I check the variabkle against my Customer Table?&lt;BR /&gt;&lt;BR /&gt;next&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;' Apply filter&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.ClearAll true&lt;BR /&gt;&lt;BR /&gt;Set C=ActiveDocument.Getfield("%CustomerKey")&lt;BR /&gt;C.Select "=match(%CustomerKey," &amp;amp; vOptions &amp;amp; ")"&lt;BR /&gt;&lt;BR /&gt;end sub &lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297011#M110172</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-08-24T15:18:38Z</dc:date>
    </item>
    <item>
      <title>Validate Pasted Entries</title>
      <link>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297012#M110173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 18:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Validate-Pasted-Entries/m-p/297012#M110173</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-08-24T18:31:33Z</dc:date>
    </item>
  </channel>
</rss>

