<?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: How to add a code dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187062#M383974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enthu,&lt;/P&gt;&lt;P&gt;You can add a variable, and concatenate with last value of the same variable if the new input value doen't exists on it, for example:&lt;/P&gt;&lt;P&gt;If(Len(YourVarName)=0,InputBoxValue,&lt;/P&gt;&lt;P&gt;If(SubStringCount(YourVarName,InputBoxValue)=0,YourVarName&amp;amp;','&amp;amp;chr(39)&amp;amp;InputBoxValue&amp;amp;chr(39),YourVarName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on your expression, &lt;SPAN style="font-size: 13.3333px;"&gt;If(Match(Book, &lt;STRONG&gt;'$(YourVarName)'&lt;/STRONG&gt;) and Year(RecordDate) = '2016', '1') as BookRecordFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 06:23:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-19T06:23:39Z</dc:date>
    <item>
      <title>How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187059#M383971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scipt which is,&lt;/P&gt;&lt;P&gt;If(Match(Book, '101', '102', '103') and Year(RecordDate) = '2016', '1') as BookRecordFlag&lt;/P&gt;&lt;P&gt;I want to use a input box to dynamically add more data in this statement and store as &lt;SPAN style="font-size: 13.3333px;"&gt;BookRecordFlag. If I enter 110 in the input box, it should add that value in the match statement where the statement will look like this &lt;SPAN style="font-size: 13.3333px;"&gt;If(Match(Book, '101', '102', '103', '110') and Year(RecordDate) = '2016', '1') as BookRecordFlag. I am pulling this &lt;SPAN style="font-size: 13.3333px;"&gt;BookRecordFlag in a frontend object and I want this object to reflect the new code. Is it possible?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 17:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187059#M383971</guid>
      <dc:creator />
      <dc:date>2016-09-17T17:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187060#M383972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(Match(Book, '101', '102', '103', &lt;STRONG&gt;'$(vInputboxVariable)'&lt;/STRONG&gt;) and Year(RecordDate) = '2016', '1') as BookRecordFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 07:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187060#M383972</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-18T07:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187061#M383973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcos, I tried this but it did not work. I created a input box and entered a value for &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vInputboxVariable, it does not show the entered value. is there any other way?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 06:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187061#M383973</guid>
      <dc:creator />
      <dc:date>2016-09-19T06:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187062#M383974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enthu,&lt;/P&gt;&lt;P&gt;You can add a variable, and concatenate with last value of the same variable if the new input value doen't exists on it, for example:&lt;/P&gt;&lt;P&gt;If(Len(YourVarName)=0,InputBoxValue,&lt;/P&gt;&lt;P&gt;If(SubStringCount(YourVarName,InputBoxValue)=0,YourVarName&amp;amp;','&amp;amp;chr(39)&amp;amp;InputBoxValue&amp;amp;chr(39),YourVarName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on your expression, &lt;SPAN style="font-size: 13.3333px;"&gt;If(Match(Book, &lt;STRONG&gt;'$(YourVarName)'&lt;/STRONG&gt;) and Year(RecordDate) = '2016', '1') as BookRecordFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 06:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187062#M383974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T06:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187063#M383975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What didn't work? Which client do you use? How do you execute the reloal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 06:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187063#M383975</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-20T06:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187064#M383976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus solution solution should work&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: 13.3333px;"&gt;If(Match(Book, '101', '102', '103', &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'$(vInputboxVariable)'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;) and Year(RecordDate) = '2016', '1') as BookRecordFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Have you created this variable on your machine &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vInputboxVariable?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;OR Else please share more information which part you stucked after using Marcus solutions&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 07:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-code-dynamically/m-p/1187064#M383976</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-20T07:31:37Z</dc:date>
    </item>
  </channel>
</rss>

