<?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: Apply display rule on basis of current user. in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/303966#M5577</link>
    <description>&lt;P&gt;Hi Renato,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It worked for me by adding button bar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks alot,&lt;/P&gt;
&lt;P&gt;PCP&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 07:37:42 GMT</pubDate>
    <dc:creator>Pcp</dc:creator>
    <dc:date>2016-10-12T07:37:42Z</dc:date>
    <item>
      <title>Apply display rule on basis of current user.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/302000#M5503</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to apply display rule on basis of current user id ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to only highlight (change background color of) a row having&amp;nbsp;current user&amp;nbsp;in a list table. Is there any way to use SAS:SUB::UserID&lt;/P&gt;
&lt;P&gt;in display rule for comparison ? or can we do this by using STP ?&lt;/P&gt;
&lt;P&gt;Any help will be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time,&lt;/P&gt;
&lt;P&gt;PCP.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 11:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/302000#M5503</guid>
      <dc:creator>Pcp</dc:creator>
      <dc:date>2016-10-03T11:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apply display rule on basis of current user.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/303670#M5568</link>
      <description>&lt;P&gt;Hi PCP,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are ok with the user having to click on a button with his/her name to highlight the line containing the name, then this may work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of report just opened by user Christine Fletcher (note that her name is on the top, and if another user had open this same report, the other user's name would have been displayed instead):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 1-Open Report.PNG" alt="Figure 1-Open Report.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5233iCE347F7CD24EFD7D/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After she clicks on the top button, her name is selected according to the dsplay rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 2-Click on Button.PNG" alt="Figure 2-Click on Button.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5234iCFA13D818B05FC78/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;This is how it works:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've used two source tables in this example. One source table (&lt;EM&gt;EMPLOYEE&lt;/EM&gt;) contains the list of employees that I used to populate the button bar at the top. The other source table contains the data to be displayed in the list table object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the button bar, I've also assigned a character parameter that I've called LoggedUser:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 3-Button Bar Roles Assignment.PNG" alt="Figure 3-Button Bar Roles Assignment.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5235i34925310935AF934/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because display rules depend on numeric values only, I've created a calculated column based on the column &lt;EM&gt;Employee Name&lt;/EM&gt; found in the second table. I've called that new column &lt;EM&gt;Flag for Rule, &lt;/EM&gt;that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 4-Flag for Rule.PNG" alt="Figure 4-Flag for Rule.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5237iB6EB8FCBF8B7AD9B/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the display rule (I've chosen to highlight the entire row):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 5-Display Rule.PNG" alt="Figure 5-Display Rule.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5238i152A4D4F61693F3F/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, to guarantee that the top button bar contains only the name of the user logged in, I had to apply row level security to the &lt;EM&gt;EMPLOYEE&lt;/EM&gt; table. The conditional grant was applied&amp;nbsp;to the Read permission for the SASUSERS group and looked like below. Note that for this to work the user's metadata identity name must match with the value stored in the Employee_Name column. You can use other functions in the exression if needed, such as upcase(), trim(), etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 6-Permission Condition.PNG" alt="Figure 6-Permission Condition.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5240i56548AD2F5B5ADA1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to use their ID's instead of their names, then you&amp;nbsp;could do so by&amp;nbsp;storing their ID's as metadata External Indentities in SAS Management Console:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Figure 7-External Identity.PNG" alt="Figure 7-External Identity.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/5241iFAC847A7066D82FC/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The permission condition expression would then be something like this (Employee_ID is the column from your table):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUB::SAS.ExternalIdentity = Employee_ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Renato&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 21:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/303670#M5568</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2016-10-10T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Apply display rule on basis of current user.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/303966#M5577</link>
      <description>&lt;P&gt;Hi Renato,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It worked for me by adding button bar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks alot,&lt;/P&gt;
&lt;P&gt;PCP&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 07:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/303966#M5577</guid>
      <dc:creator>Pcp</dc:creator>
      <dc:date>2016-10-12T07:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Apply display rule on basis of current user.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/464335#M10265</link>
      <description>&lt;P&gt;a great idea PCP!&lt;/P&gt;&lt;P&gt;but&amp;nbsp; it's not so good that the user when open the report&lt;/P&gt;&lt;P&gt;need to click on the bottom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's not possible that the value is auto saved in a parameter and than to use the parameter in any visual rule or in any calculated elements ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mauro&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 11:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/464335#M10265</guid>
      <dc:creator>rufmau68</dc:creator>
      <dc:date>2018-05-23T11:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Apply display rule on basis of current user.</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/464337#M10266</link>
      <description>&lt;P&gt;Hi Renato,&lt;/P&gt;&lt;P&gt;but if PCP have a bored user that dont' wont to click on the bottom...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's not possible to have the value directly in any calculated element&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;parameter&lt;/P&gt;&lt;P&gt;or interaction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 11:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Apply-display-rule-on-basis-of-current-user/m-p/464337#M10266</guid>
      <dc:creator>rufmau68</dc:creator>
      <dc:date>2018-05-23T11:12:41Z</dc:date>
    </item>
  </channel>
</rss>

