<?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: search engine in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294555#M1189537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your help, we gonna try if this works.&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Van: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Verzonden: woensdag 24 augustus 2011 17:08&lt;/P&gt;&lt;P&gt;Aan: Wolfers, Ronald&lt;/P&gt;&lt;P&gt;Onderwerp: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: search engine in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: search engine in script&lt;/P&gt;&lt;P&gt;created by swuehl&amp;lt;http://community.qlik.com/people/swuehl&amp;gt; in New to QlikView - View the full discussion&amp;lt;http://community.qlik.com/message/143769#143769&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 15:05:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-25T15:05:15Z</dc:date>
    <item>
      <title>search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294551#M1189533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this community and like to ask a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our database we have a variable with an description of products. What we miss is a variable with Brandname.&lt;/P&gt;&lt;P&gt;In QV I can use the search option (loupe) to find the associating brands. But I cannot do this for multiple brands or at least I don't know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to make a script in which I 'automatically' appoint a brand in a new variable 'Brand' from an other variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Ronald &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294551#M1189533</guid>
      <dc:creator />
      <dc:date>2011-08-23T16:09:00Z</dc:date>
    </item>
    <item>
      <title>search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294552#M1189534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome, Ronald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I fully understand your question. Could you post an example of product descriptions and how you want to generate brands out of that (or am I totally off?)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how you can search for brands with the search function in the front end if you don't have the information in the tables. Or are brand names part of the description?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we understand how you search for brands with the search function, it should/might be possible to generate a new field in the script, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 19:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294552#M1189534</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-23T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294553#M1189535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear  Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our database we have the product description in the variable ‘art_artikel_oms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some examples in our database and how we like to rearrange into brands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You notice that e.g. BOSS as well as H.Boss as well as Hugo Boss as well as Hugo must direct to Hugo Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And both C.Klein as well as CK must direct to Calvin Klein,&lt;/P&gt;&lt;P&gt;But HAJENIUS KLEINE TUITKNAP with ‘KLEIN’ in description is NOT Calvin Klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ART_ARTIKEL_OMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOSSBL M belt, 85, dk brown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOSSOL M t-shirt, L, Green&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bvlgari Man                    Edtsp 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bvlgari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.Klein CK One                 Edtsp 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calvin Klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C.Klein Eternity Men           Ash   100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calvin Klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chanel Vitalumiere Aqua Spf15 Found BR20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chanel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CK M bw bottom, L, Black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calvin Klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&amp;amp;G The One Gentleman          Ash   100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&amp;amp;G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.Karan DKNY Women             Edpsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Donna Karan DKNY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davidoff Champion              Deost  70&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davidoff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAVIDOFF EXQUISITOS 10 ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davidoff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dior Miss Dior Cherie          Edpsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.Lauder Pure Color            Lipgl  03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estee Lauder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.Armani Code Women            Edpsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giorgio Armani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gucci Guilty                   Edtsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gucci&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H.Boss Boss Bottled Night      Ash    50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAJENIUS KLEINE TUITKNAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hajenius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=cigar, no calvin klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo Boss Femme by Boss        Edpsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo Element                   Deost  75&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J WALKER BLACK LABEL 40%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johnny Walker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenzo Flower Women             Parsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenzo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KLEINBRILJANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=diamond, no calvin klein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lancome Miracle                Edpsp  50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lancome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L'Oréal Resist&amp;amp;Shine Titanium  Nailp 501&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L'Oreal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O'Neill Moya pink 39&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O' Neill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prada LR Metal Brn PS162   PS50M 4AC 6S1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prada&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOUTH CHARDONNAY ORGANIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=wine, no Donna Karan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YSL La Nuit                    Parsp 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves Saint Laurent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Van: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Verzonden: dinsdag 23 augustus 2011 21:06&lt;/P&gt;&lt;P&gt;Aan: Wolfers, Ronald&lt;/P&gt;&lt;P&gt;Onderwerp: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: search engine in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: search engine in script&lt;/P&gt;&lt;P&gt;created by swuehl&amp;lt;http://community.qlik.com/people/swuehl&amp;gt; in New to QlikView - View the full discussion&amp;lt;http://community.qlik.com/message/143375#143375&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 09:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294553#M1189535</guid>
      <dc:creator />
      <dc:date>2011-08-24T09:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294554#M1189536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ronald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at your data and noticed that at the beginning of each description ART_ARTIKEL_OMS, there we find the brand identification tag, is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach has four steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Build a table with a matching relation between the identification tag and the brand name (I think we can't live without something like that), like&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;BOSS, Hugo Boss&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;to match both BOSSOL and BOSSBL and link to Hugo Boss. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Sort this table by descending Tag length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Read in a ART_ARTIKEL_OMS and for each read record, loop though all matching tags and compare the left part of ART_ARTIKEL_OMS with the matching tag, if these match, we have found a brand. break this loop if all tags are compared or we have found a brand and continue with next ART_ARTIKEL_OMS&lt;/P&gt;&lt;P&gt;(Here comes the sorting of the tags into play: If you would have two tags like BOSS and BOSSOL, I would like to compare first the more significant (i.e. longer) tag to the ART_ARTIKEL_OMS, if these match, remember we break the loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Now we have to remove all the rows with no match, load the table again with an where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I missed something more simple, but that's how it should work assuming your ART_ARTIKEL_OMS start with a brand identification. If they don't always do, we might could easily change the comparision to a match() function or similar, but we could run into deep trouble if there are matches that don't indicate a brand (like in some of your example rows (with Donna, Klein tags))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached sample for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294554#M1189536</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-24T15:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294555#M1189537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your help, we gonna try if this works.&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Ronald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Van: swuehl &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Verzonden: woensdag 24 augustus 2011 17:08&lt;/P&gt;&lt;P&gt;Aan: Wolfers, Ronald&lt;/P&gt;&lt;P&gt;Onderwerp: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: search engine in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: search engine in script&lt;/P&gt;&lt;P&gt;created by swuehl&amp;lt;http://community.qlik.com/people/swuehl&amp;gt; in New to QlikView - View the full discussion&amp;lt;http://community.qlik.com/message/143769#143769&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 15:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294555#M1189537</guid>
      <dc:creator />
      <dc:date>2011-08-25T15:05:15Z</dc:date>
    </item>
    <item>
      <title>search engine in script</title>
      <link>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294556#M1189538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just curious...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got it working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-engine-in-script/m-p/294556#M1189538</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-09T09:58:10Z</dc:date>
    </item>
  </channel>
</rss>

