﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Fri, 07 Jun 2013 06:04:10 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Initial tests appear to show it now working correctly, thanks.  I will do more testing over the next weeks and report back any issues.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Fri, 07 Jun 2013 02:50:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for your valuable feedback and the sent sample. It really helps to reproduce the reported problem in here.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I started my investigation by comparing both of the projects (&lt;strong&gt;ClientUIBusinessApp1&lt;/strong&gt; project – attached on May 27, 2013; and &lt;strong&gt;RolesRequiredTest&lt;/strong&gt; project – attached on June 5, 2013) and found that if &lt;strong&gt;TransitionStrategy&lt;/strong&gt; property is not set then the reported problem is no longer persisting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The step by step below shows how to apply the changes in RolesRequiredTest project.&lt;/span&gt;&lt;/p&gt;
&lt;ol style="color: rgb(31, 73, 125);"&gt;&lt;li&gt;Open &lt;strong&gt;AppStyles.xaml&lt;/strong&gt; file. This file is located under &lt;strong&gt;Assets – Styles&lt;/strong&gt; folder in the SL project.&lt;/li&gt;&lt;li&gt;Go to &lt;strong&gt;line 364 of AppStyles.xaml&lt;/strong&gt; file and comment (or delete) the following highlighted line.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;Style TargetType="Intersoft:UXFrame"&amp;gt;
    &amp;lt;Setter Property="EnablePageTransition" Value="True"/&amp;gt;
    &amp;lt;Setter Property="BackTransitionEffect" Value="Custom"/&amp;gt;
    &amp;lt;Setter Property="DefaultTransitionEffect" Value="Custom"/&amp;gt;
    &amp;lt;Setter Property="NewTransitionEffect" Value="Custom"/&amp;gt;
    &amp;lt;Setter Property="ForwardTransitionEffect" Value="Custom"/&amp;gt;
    &amp;lt;Setter Property="AutoDetectNavigationDirection" Value="True"/&amp;gt;
    &amp;lt;Setter Property="UseCachedVisualForTransition" Value="False"/&amp;gt;
    &lt;mark&gt;&amp;lt;!--&amp;lt;Setter Property="TransitionStrategy" Value="WaitContentReady"/&amp;gt;--&amp;gt;&lt;/mark&gt;
    &amp;lt;Setter Property="PresenterStyle" Value="{StaticResource EasingContentTransitionStyle}"/&amp;gt;
&amp;lt;/Style&amp;gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Save the changes and rebuild the project.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I will continue my investigation to find out other possibilities or solution which may cause the problematic behavior. Should you have different result, please feel free to let us know.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Wed, 05 Jun 2013 04:00:17 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;The sample app you supplied does work as intended....however I am using the Metro template and this does not work the same. I have supplied a sample Metro app (using same customers.xaml and copeid your aspnet.mdb) to show you.&lt;/p&gt;
&lt;p&gt;The code works ok if say 'jilldoe' signs in - she is prevented from accessing the Customers page - however if no one has signed and you try to access the Customers page the Login page pops up for a second then disappears and the customers page is loaded.  Looks like a bug to me!!&lt;/p&gt;
&lt;p&gt;I await your findings, thanks&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Tue, 28 May 2013 07:12:40 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Thanks for prompt reply - will look at and report back -once tested&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Mon, 27 May 2013 06:08:19 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I enclosed a simple Silverlight project which implements binding on the RolesRequired property. In the project, I have created four usernames.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="color: rgb(31, 73, 125);"&gt;&lt;li&gt;User name: johndoe&lt;br /&gt;&lt;br /&gt;Password: p@55w0rd&lt;br /&gt;&lt;br /&gt;Role: Administrators&lt;/li&gt;
&lt;li&gt;User name: janedoe&lt;br /&gt;&lt;br /&gt;Password: p@55w0rd&lt;br /&gt;&lt;br /&gt;Role: Managers&lt;/li&gt;&lt;li&gt;User name: jackdoe&lt;br /&gt;&lt;br /&gt;Password: p@55w0rd&lt;br /&gt;&lt;br /&gt;Role: Product Managers&lt;/li&gt;&lt;li&gt;User name: jilldoe&lt;br /&gt;&lt;br /&gt;Password: p@55w0rd&lt;br /&gt;&lt;br /&gt;Role: Registered Users&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I have tested and checked that Customers.xaml page can only be viewed by users which have Administrators role.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please have the attached sample evaluated on your end and let us know if you have different result. (fyi: I’m using latest build of ClientUI 8 assembly files).&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Fri, 24 May 2013 06:17:25 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Can you please update me as this is still not working in the latest version, thanks&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Wed, 15 Dec 2010 20:28:51 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;After being investigated by our ClientUI development team, we’ve found that the binding process was too late. Since the binding is a feature in Silverlight/WPF itself, there is nothing we can do for workaround.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;The ClientUI development team has agreed to enhance this binding scenario so that the binding can still work with this feature. The enhancement is filed under Task #872.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I apologize for any inconvenience this problem may have caused you. I will keep you updated with any news I heard from the team regarding Task #872.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Tue, 14 Dec 2010 09:13:53 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;still can't get this to work.  Once I have set up (I copied the Customers xaml code into my customers.xaml and added the TestClass1.cs (viewmodel) - the form does call the RolesRequired property of the Viewmodel but does not correctly apply the authentication i.e. it allows access to the page when user in not the the Group (Administrators) - when I set the RolesRequired back from 'Binding RolesRequired' to a string 'Administrators' it works.&lt;/p&gt;
&lt;p&gt;You say you have this working - have you got this working  and tested with proper users and roles set up  i.e. proper data??&lt;/p&gt;
&lt;p&gt;For binding to work this way the framework would need to be able to handle instantiating the viewmodel class (and getting the rolesrequired) then be able back out and stop the page loading (without other viewmodel business logic being run e.g. loading lists etc) if the user is not in a particular role - I'm not sure it does this yet.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Thu, 11 Nov 2010 20:33:16 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have ensured that the binding process works by creating a simple test project. I even have re-tested the project today and found no problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed the Model, ViewModel, and View folder of my test project. Please have the attached folders tested on your end and let us know whether it works or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Thu, 11 Nov 2010 05:06:36 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;have you tried this and it works - It does not work for me - in my viewmodel the RolesRequired property is called as the page loads - so it appears to bind but does not actually work as intended.&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;public string RolesRequired
        {
            get
            {
                return _rolesRequired;
            }
            set
            {
                _rolesRequired = value;
                OnPropertyChanged("RolesRequired");
            }
        }
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If I change back from&lt;/p&gt;&lt;pre&gt; RequiresRole="{Binding RolesRequired}"&lt;br /&gt;&lt;br /&gt;to &lt;br /&gt;&lt;br /&gt; RequiresRole="Administrators" it works.&lt;br /&gt;&lt;br /&gt;Can you confirm you have tested and works, thanks?&lt;br /&gt;&lt;br /&gt;Richard&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description></item><item><title>RoleRequired page property not working?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/RoleRequired-page-property-not-working/</link><pubDate>Tue, 02 Nov 2010 16:43:20 GMT</pubDate><dc:creator>zen8019</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;just installed sp1 (clientui) which was supposed to fix the RoleRequired so that it accepts more than one role separated by commas.  My user is a member of 'Admins' but not 'Teachers' - in the RolesRequired I have "Admins, Teachers" but the page won't load saying I do not have authority.  Can you please advise.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;</description></item></channel></rss>