<?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: Enable selection on system function; especially OSUSER() function in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enable-selection-on-system-function-especially-OSUSER-function/m-p/1392193#M8433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a way to do it;&lt;/P&gt;&lt;P&gt;connect to excel file where all the UserIDs are ;&lt;/P&gt;&lt;P&gt;and create a master dimension as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (UserID=&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SubField( SubField( OSUser(),';',1),'=',2)&amp;amp;'\'&amp;amp;SubField( SubField( OSUser(),';',2),'=',2),&lt;/STRONG&gt;UserID, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with each one will have only his UserID that appears and can select it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2017 09:14:26 GMT</pubDate>
    <dc:creator>OmarBenSalem</dc:creator>
    <dc:date>2017-10-04T09:14:26Z</dc:date>
    <item>
      <title>Enable selection on system function; especially OSUSER() function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enable-selection-on-system-function-especially-OSUSER-function/m-p/1392192#M8432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently creating an extension, but now I'm facing some trouble; let me explain it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to SELECT the OSUSER().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, each User will have the possibility to comment on some alerts. the user ID is written as follow:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SubField( SubField( OSUser(),';',1),'=',2)&amp;amp;'\'&amp;amp;SubField( SubField( OSUser(),';',2),'=',2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What I do, is in my Javascript file, I want to revoer this and put it in the UserID field of the extension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var selState = app.selectionState( );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var listener = function() {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $scope.userID=selState.selections[0].selectedValues[0].qName;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selState.OnData.bind( listener );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT. when I click on it: the OSUSER(), It won't appear on the selections area and thus I can recover it using this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $scope.userID=selState.selections[0].selectedValues[0].qName;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178551_Capture.PNG" style="height: 229px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;What should i do?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How could I recover the OSUSER() and being able to select it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 09:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enable-selection-on-system-function-especially-OSUSER-function/m-p/1392192#M8432</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-10-04T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Enable selection on system function; especially OSUSER() function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Enable-selection-on-system-function-especially-OSUSER-function/m-p/1392193#M8433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a way to do it;&lt;/P&gt;&lt;P&gt;connect to excel file where all the UserIDs are ;&lt;/P&gt;&lt;P&gt;and create a master dimension as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (UserID=&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SubField( SubField( OSUser(),';',1),'=',2)&amp;amp;'\'&amp;amp;SubField( SubField( OSUser(),';',2),'=',2),&lt;/STRONG&gt;UserID, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with each one will have only his UserID that appears and can select it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 09:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Enable-selection-on-system-function-especially-OSUSER-function/m-p/1392193#M8433</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-10-04T09:14:26Z</dc:date>
    </item>
  </channel>
</rss>

