<?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 can I accomplish an Applymap Call like function while on a sheet or chart? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494936#M102484</link>
    <description>&lt;P&gt;I think a normal set analysis may also return the wanted result, maybe:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;only({&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;EmpUserID = {"$(=right(osuser(), 8))"}&amp;gt;} BUSINESSUNIT)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 16:26:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-11-27T16:26:07Z</dc:date>
    <item>
      <title>How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494773#M102473</link>
      <description>&lt;DIV&gt;Question: How can I accomplish an Applymap Call like function while on a sheet or chart?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;GET THE CURRENT USERID AND PASS IT ALONG:&lt;/DIV&gt;
&lt;DIV&gt;Currently in the LOAD SCRIPT CODE:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;LET vUser=right(OSUser(),8);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Map_UserID:&lt;/DIV&gt;
&lt;DIV&gt;Mapping LOAD&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; "EmpUserID",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; BUSINESSUNIT&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;FROM [lib://XXXXXX/YYYYY/Employee.qvd](qvd);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// Note: THIS BELOW SETS IT TO THE RESOURCE WHO PERFORMS THE LOAD REFRESH:&lt;/DIV&gt;
&lt;DIV&gt;// The Where clause seen below works to the Applymap call to complete getting the user region.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;[Emp Hours]:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&amp;nbsp; *&lt;/DIV&gt;
&lt;DIV&gt;FROM [lib:///XXXXXX/YYYYY/EmpHours.qvd]&lt;/DIV&gt;
&lt;DIV&gt;(qvd)&lt;/DIV&gt;
&lt;DIV&gt;Where RegionBU = Applymap('Map_UserID','$(vUser)')&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;// Usually returns SysAdminBU unless I personally reload it&lt;/DIV&gt;
&lt;DIV&gt;;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;NOW ON THE SHEET: I need to retrieve the current user logged onto the App/sheet:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I ADDED AN ACTION to the sheet:&lt;/DIV&gt;
&lt;DIV&gt;Set Variable Value: TO&lt;/DIV&gt;
&lt;DIV&gt;vUser&lt;/DIV&gt;
&lt;DIV&gt;Value: TO&lt;/DIV&gt;
&lt;DIV&gt;=right(OSUser(),8)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;How do I get this current Users&amp;nbsp; BUSINESSUNIT?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance, this is a puzzler...&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Nov 2024 21:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494773#M102473</guid>
      <dc:creator>coleturegroup</dc:creator>
      <dc:date>2024-11-26T21:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494892#M102477</link>
      <description>&lt;P&gt;If you load the User-BU mapping a second time as a normal (distinct) table you could query the information - either directly to the field if there is only a single record when if the same where-condition could be applied or by multiple values with an expression like:&lt;/P&gt;
&lt;P&gt;fieldvalue('BUSINESSUNIT', fieldindex('&lt;SPAN&gt;EmpUserID', right(osuser(), 8)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 12:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494892#M102477</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-27T12:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494909#M102479</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;load the User-BU mapping a second time as a normal (distinct) table you could query the information. Are you talking about a partial reload?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 14:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494909#M102479</guid>
      <dc:creator>coleturegroup</dc:creator>
      <dc:date>2024-11-27T14:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494923#M102480</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18559"&gt;@coleturegroup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appymap and its partner Mapping Tables only is active while loadscript is running. When the script ends then all Mapping tables are dropped for optimization reasons so indexing is also completed.&lt;/P&gt;
&lt;P&gt;That is important for consideration on scripting planning as you can drop tables anytime, but a MAPPING table is always there until the end. Larger mapping tables does affect performance as well.&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494923#M102480</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-11-27T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494924#M102481</link>
      <description>&lt;P&gt;No, it hasn't any relation to partial/incremental measurements else just loading the data into the data-model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494924#M102481</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-27T15:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494934#M102483</link>
      <description>&lt;P&gt;Marcus, when I execute the fieldindex function with my ID for example returns the number 1000 which when feed it to the fieldvalue function returns NULL.&lt;/P&gt;
&lt;P&gt;We have 1040 distinct ID's tied to 22 BU's in the distinct load table. I think that is why it returns a Null.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 16:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494934#M102483</guid>
      <dc:creator>coleturegroup</dc:creator>
      <dc:date>2024-11-27T16:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I accomplish an Applymap Call like function while on a sheet or chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494936#M102484</link>
      <description>&lt;P&gt;I think a normal set analysis may also return the wanted result, maybe:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;only({&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;EmpUserID = {"$(=right(osuser(), 8))"}&amp;gt;} BUSINESSUNIT)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 16:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-I-accomplish-an-Applymap-Call-like-function-while-on-a/m-p/2494936#M102484</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-11-27T16:26:07Z</dc:date>
    </item>
  </channel>
</rss>

