<?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: Apply Map and for loop in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1884718#M72878</link>
    <description>&lt;P&gt;Hi Rob,&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I'll try to explain a little better.&lt;/P&gt;
&lt;P&gt;In my qvd-file I have &lt;STRONG&gt;statusId&lt;/STRONG&gt; which contains a number&lt;STRONG&gt; 1-31&lt;/STRONG&gt;. Each number corresponds to, for example, &lt;EM&gt;'reviewed', 'announced', 'invoiced'&lt;/EM&gt; that I have printed in an inline table to be able to match the number against significance.&lt;/P&gt;
&lt;P&gt;Then I have another qvd-file named OrderChange,&amp;nbsp;which contains, &amp;nbsp;&lt;EM&gt;'updated (time/date)', ' orderInvoiceId'&amp;nbsp;and &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;statusId'&lt;/EM&gt;.&amp;nbsp;&lt;/STRONG&gt;Today I have made a mapping for each number like this:&lt;/P&gt;
&lt;P&gt;Map_Reviewed2Invoice:&lt;BR /&gt;orderInvoiceId,&lt;BR /&gt;updated&lt;BR /&gt;RESIDENT OrderChange where statusId = 1; &amp;nbsp;//&amp;nbsp;Reviewed&lt;/P&gt;
&lt;P&gt;Map_Announced2Invoice:&lt;BR /&gt;orderInvoiceId,&lt;BR /&gt;updated&lt;BR /&gt;RESIDENT OrderChange where statusId = 2; &amp;nbsp;//&amp;nbsp;A&lt;EM&gt;nnounced&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;After that, I have the "main qvd-file" where I have fields like 'orderInvoiceId', 'orderId' and the invoice amount,&amp;nbsp;which I use my mappings with in an applymap function, for example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ApplyMap ('Map_Reviewed2Invoice', orderInvoiceId) as Reviewed,&lt;BR /&gt;ApplyMap ('Map_Announced2Invoice', orderInvoiceId) as Announced&lt;/P&gt;
&lt;P&gt;I do this, to be able to know &lt;STRONG&gt;&lt;EM&gt;what date the invoice per orderId&lt;/EM&gt;&lt;/STRONG&gt;, has been reviewed, announced, invoiced and so on..The whole Qlik app is too follow upp SLA.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I explained better now. How can I avoid doing all these 31 mappings?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 19:13:33 GMT</pubDate>
    <dc:creator>annagustafsson</dc:creator>
    <dc:date>2022-01-24T19:13:33Z</dc:date>
    <item>
      <title>Apply Map and for loop</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1883274#M72730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I make a table like this;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;InvoiceBatch_tmp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, text&lt;BR /&gt;1, Ny&lt;BR /&gt;2, Ongoing&lt;BR /&gt;... to 31 rows...&lt;BR /&gt;&lt;BR /&gt;Then, I use ApplyMap function for each ID to match it against the ID with my&amp;nbsp; "real" table.&amp;nbsp;&lt;BR /&gt;Is it possible to make a for loop to automatically map these together? So I do not have to do 31 mappings for each ID.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;// Anna&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1883274#M72730</guid>
      <dc:creator>annagustafsson</dc:creator>
      <dc:date>2022-01-20T10:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map and for loop</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1883447#M72752</link>
      <description>&lt;P&gt;You should not require a loop at all. Can you a bit more of your script so we can understand what you are trying to accomplish?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1883447#M72752</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-01-20T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map and for loop</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1884718#M72878</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I'll try to explain a little better.&lt;/P&gt;
&lt;P&gt;In my qvd-file I have &lt;STRONG&gt;statusId&lt;/STRONG&gt; which contains a number&lt;STRONG&gt; 1-31&lt;/STRONG&gt;. Each number corresponds to, for example, &lt;EM&gt;'reviewed', 'announced', 'invoiced'&lt;/EM&gt; that I have printed in an inline table to be able to match the number against significance.&lt;/P&gt;
&lt;P&gt;Then I have another qvd-file named OrderChange,&amp;nbsp;which contains, &amp;nbsp;&lt;EM&gt;'updated (time/date)', ' orderInvoiceId'&amp;nbsp;and &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;statusId'&lt;/EM&gt;.&amp;nbsp;&lt;/STRONG&gt;Today I have made a mapping for each number like this:&lt;/P&gt;
&lt;P&gt;Map_Reviewed2Invoice:&lt;BR /&gt;orderInvoiceId,&lt;BR /&gt;updated&lt;BR /&gt;RESIDENT OrderChange where statusId = 1; &amp;nbsp;//&amp;nbsp;Reviewed&lt;/P&gt;
&lt;P&gt;Map_Announced2Invoice:&lt;BR /&gt;orderInvoiceId,&lt;BR /&gt;updated&lt;BR /&gt;RESIDENT OrderChange where statusId = 2; &amp;nbsp;//&amp;nbsp;A&lt;EM&gt;nnounced&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;After that, I have the "main qvd-file" where I have fields like 'orderInvoiceId', 'orderId' and the invoice amount,&amp;nbsp;which I use my mappings with in an applymap function, for example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ApplyMap ('Map_Reviewed2Invoice', orderInvoiceId) as Reviewed,&lt;BR /&gt;ApplyMap ('Map_Announced2Invoice', orderInvoiceId) as Announced&lt;/P&gt;
&lt;P&gt;I do this, to be able to know &lt;STRONG&gt;&lt;EM&gt;what date the invoice per orderId&lt;/EM&gt;&lt;/STRONG&gt;, has been reviewed, announced, invoiced and so on..The whole Qlik app is too follow upp SLA.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I explained better now. How can I avoid doing all these 31 mappings?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 19:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1884718#M72878</guid>
      <dc:creator>annagustafsson</dc:creator>
      <dc:date>2022-01-24T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Map and for loop</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1885147#M72903</link>
      <description>&lt;P&gt;See the "Project Phase" example here&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/" target="_blank"&gt;https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 15:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Map-and-for-loop/m-p/1885147#M72903</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-01-25T15:50:12Z</dc:date>
    </item>
  </channel>
</rss>

