<?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: current selection issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627259#M1091449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API doc says the second parm should always be false. If don't want to scramble for a particular user, don't invoke the ScrambleField at all for that user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 15:21:45 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-05-26T15:21:45Z</dc:date>
    <item>
      <title>current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627255#M1091445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a request to scramble a spastic field in the model - i found a code where u keep moving 2 digits around and multiple them and i got a scrambled field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that i cant do it in the script and in the Current selection i can see the original field &lt;/P&gt;&lt;P&gt;any way to scramble the current field also in the current selection ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 11:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627255#M1091445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-25T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627256#M1091446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be helpful if you could describe your issue in more detail, how your data looks right now, how you want it to look, what code you have used so far, where this used code fails to work etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 12:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627256#M1091446</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-25T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627257#M1091447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An easy way to scramble a field in the script is with the Hash function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Hash128(myfield) as myfield&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to maintain the same length for the scrambled field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;left(hash256(myfield),lenmyfield)) as myfield&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That assumes the string being translated is no longer than 32 characters -- which is the length of the string returned by Hash256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627257#M1091447</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-25T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627258#M1091448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks Rob &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;But i need to scramble the field post reload, I need to check if the OSuser has privilege to see the information if not i need to scramble the field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;I thought of doing it with a macro that checks which OSuser has opened the model and if he has the privilege to see the info , &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif;"&gt;something&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;If (user has privilege) then &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.ScrambleField "MM",false&lt;BR /&gt; Else&lt;BR /&gt; ActiveDocument.ScrambleField "MM",true &lt;BR /&gt; End If &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The thing is I keep on getting a scrambled field not sure I wrote the VB command correctly does false mean don’t scramble and true means scramble ( I’m new in the VB script&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Many thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;J&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 09:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627258#M1091448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-26T09:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627259#M1091449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API doc says the second parm should always be false. If don't want to scramble for a particular user, don't invoke the ScrambleField at all for that user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 15:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627259#M1091449</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-26T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: current selection issue</title>
      <link>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627260#M1091450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i thing whaterver formula you are using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use in variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean define variable in script and use that variable with $(Variable) @ front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope tha might helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 15:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/current-selection-issue/m-p/627260#M1091450</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-05-26T15:26:12Z</dc:date>
    </item>
  </channel>
</rss>

