<?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: ApplyMap not working as expected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762181#M58954</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57716"&gt;@arngue&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe you have to use single quote with ApplyMap ex.&amp;nbsp;&amp;nbsp;ApplyMap('TTN_TIP', TTN_TIP) as [Tipo]&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Andrea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 09:45:00 GMT</pubDate>
    <dc:creator>agigliotti</dc:creator>
    <dc:date>2020-11-17T09:45:00Z</dc:date>
    <item>
      <title>ApplyMap not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762174#M58949</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Anyone can explain me why this code isn't working, it's getting me map_id not found error.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;LET vL.TableName = 'Notas_Tramites_Tareas';
LET vL.FromQvdName = 'TTN';
LET vL.StoreQvdName = 'Notas_Tramites_Tareas';
LET vL.before = Now();

TTN_TIP:
Mapping Load * Inline [
TTN_TIP, val
A, Automatica
M, Manual
];

$(vL.TableName):
LOAD
"TTN_ID" as [ID_Nota],
"TTN_TRT" as [ID_TramiteTarea],
"TTN_USC" as [ID_Usuario_Creador],
"TTN_FEC" as [Fecha],
"TTN_TIT" as [Nota],
"TTN_DES" as [Descripcion],
ApplyMap("TTN_TIP", TTN_TIP) as [Tipo],
"TTN_TIP" as [Codigo Tipo]
From $(vL.From_QVD_PATH)/$(vL.From_Layer)/$(vL.FromQvdName).qvd(qvd);

Store $(vL.TableName) into $(vL.Store_QVD_PATH)/$(vL.Store_Layer)/$(vL.StoreQvdName).qvd (qvd);

LET vL.after = Now();
LET vL.TableNumber = $(vL.TableNumber) + 1;
LET vL.TableName_$(vL.TableNumber) = '$(vL.TableName)';
LET vL.NoOfRows_$(vL.TableNumber) = NoOfRows('$(vL.TableName)');
LET vL.NoOfFields_$(vL.TableNumber) = NoOfFields('$(vL.TableName)');
LET vL.TableTime_$(vL.TableNumber) = Interval(Timestamp('$(vL.after)') - timestamp('$(vL.before)'),'hh:mm:ss');

Drop table $(vL.TableName);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use other ApplyMaps in prevoius files, could be a number maximum of mapped tables? is there a way to drop thoose?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762174#M58949</guid>
      <dc:creator>arngue</dc:creator>
      <dc:date>2024-11-16T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762181#M58954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57716"&gt;@arngue&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe you have to use single quote with ApplyMap ex.&amp;nbsp;&amp;nbsp;ApplyMap('TTN_TIP', TTN_TIP) as [Tipo]&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Andrea&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762181#M58954</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2020-11-17T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762183#M58955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57716"&gt;@arngue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ApplyMap('TTN_TIP', TTN_TIP)&lt;/P&gt;&lt;P&gt;&amp;lt;-- Applymap will use table name with single quotes. "Double Quotes" indicates the field Name.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762183#M58955</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-17T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762185#M58956</link>
      <description>&lt;P&gt;I dunno why this happens only sometimes&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ApplyMap-not-working-as-expected/m-p/1762185#M58956</guid>
      <dc:creator>arngue</dc:creator>
      <dc:date>2020-11-17T09:49:44Z</dc:date>
    </item>
  </channel>
</rss>

