<?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: Can I use a mapping table created inside a subroutine outside the subroutine? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408217#M612667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any problems with that script? It should be working.&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 14:37:32 GMT</pubDate>
    <dc:creator>tomasz_tru</dc:creator>
    <dc:date>2017-10-10T14:37:32Z</dc:date>
    <item>
      <title>Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408216#M612666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Mappings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Codesmap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping LOAD * Inline [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01, Code 01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02, Code 02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03, Code 03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Mappings;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('Codesmap',Field1) as CodeDescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field3&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;[Stuff.xlsx] &lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is StuffData);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 09:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408216#M612666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T09:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408217#M612667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any problems with that script? It should be working.&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408217#M612667</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-10-10T14:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408218#M612668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My script is more complex than the one I used as an example. Let me check my script again.&lt;/P&gt;&lt;P&gt;Thanks Tomasz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408218#M612668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408219#M612669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView has no real concept of scope, so yes, that would work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only proviso, is that obviously you must create your mapping table prior to referencing it!&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, 10 Oct 2017 14:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408219#M612669</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-10-10T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408220#M612670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;QlikView has no real concept of scope, ...&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For tables and fields that may be true. But don't be mistaken: SUBs have a very strict concept of scope. And so do loops. All of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408220#M612670</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-10-10T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408221#M612671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that a mapping table created in SUB cannot be used outside the SUB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408221#M612671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-10T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408222#M612673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I stand corrected! Thanks for the clarification Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408222#M612673</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2017-10-10T16:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a mapping table created inside a subroutine outside the subroutine?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408223#M612675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done this test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Mappings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Codesmap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &lt;C&gt; (ooxml, embedded labels, table is Sheet2);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Mappings();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Field1, &lt;/P&gt;&lt;P&gt;Applymap('Codesmap',Field1, 'NO MAP') as CodeDescription,&lt;/P&gt;&lt;P&gt;Field2, &lt;/P&gt;&lt;P&gt;Field3&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt; (ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it works without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 14:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-use-a-mapping-table-created-inside-a-subroutine-outside/m-p/1408223#M612675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-11T14:55:01Z</dc:date>
    </item>
  </channel>
</rss>

