<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Restrict By User Roles in Actions</title><link>http://forums.method.me/cs/forums/thread/14058.aspx</link><pubDate>Thu, 11 Oct 2012 18:46:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:14058</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/14058.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=14058</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I think there definitel&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;y needs to be a new feature added here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My hack presumes a binary situation with users (which is okay for my company) - it assumes you either have access to everyone&amp;#39;s records, or just your own.&lt;/p&gt;
&lt;p&gt;Funny, the first thing I did before coming up with my hack was look at the Tab Group roles like you, but it didn&amp;#39;t occur to me to rig up Tabs with Roles. Your method may be a little more involved, but it allows for other scenarios rather than just an either/or.&lt;/p&gt;
&lt;p&gt;Thx for the feedback.&lt;/p&gt;</description></item><item><title>Re: Restrict By User Roles in Actions</title><link>http://forums.method.me/cs/forums/thread/14057.aspx</link><pubDate>Thu, 11 Oct 2012 18:33:20 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:14057</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/14057.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=14057</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Can I see the Role(s) the logged in User is a member of from within an Action?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;It would be nice but no - there is a &lt;em&gt;rol&lt;span id="mce_18_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_19_start" style="overflow:hidden;"&gt;&lt;span id="mce_20_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;es&lt;span id="mce_19_end" style="overflow:hidden;"&gt;&lt;span id="mce_20_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt; field in the&amp;nbsp;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;user table but to save you time, this field does &lt;em&gt;not&lt;/em&gt; contain the role information.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I have a hack in place that works, but it feels wrong.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;I would say nothing is wrong unless you see a performance hit from your h&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;ack. &amp;nbsp;Your hack is pretty clever - I may end up using it myself. &amp;nbsp;I had a similar problem with trying to get the role of the user but I ended doing a hack myself - make a tab&lt;span id="mce_25_start" style="overflow:hidden;"&gt; group for each role and limit user access to the&amp;nbsp;tab groups based on their role. &amp;nbsp;Then you can grab the &lt;em&gt;value from session&lt;/em&gt; - &lt;em&gt;User- Tab groups&lt;/em&gt; you can figure out from that list which roles they have access to. &amp;nbsp;I&amp;#39;m not sure which is the better hack to be honest.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Another trick is to create a &lt;em&gt;roles2&lt;/em&gt; field in the &lt;em&gt;user&lt;/em&gt; table then just manually add their role information, problem is you would have to always maintain this list. &amp;nbsp;I think I prefer your hack for future proofing. &amp;nbsp;My hack still involves a manual step of adding the user to the correct &lt;em&gt;role&lt;/em&gt; tab group.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_23_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Restrict By User Roles in Actions</title><link>http://forums.method.me/cs/forums/thread/14051.aspx</link><pubDate>Thu, 11 Oct 2012 14:16:43 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:14051</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/14051.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=14051</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Thanks...yeah, I&amp;#39;m using Roles on buttons and other UI elements quite succes&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;sfully right now. I don&amp;#39;t see the bug you are talking about, BTW. It all seems functional to me.&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;My question concerns &lt;span id="mce_6_start" style="overflow:hidden;"&gt;having visibility to User Roles within&amp;nbsp;&lt;/span&gt;A&lt;span id="mce_6_end" style="overflow:hidden;"&gt;&lt;/span&gt;ctions. Can I see the Role(s) the logged in User is a member of from within an Action? I have a hack in place that works, but it feels wrong. &lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;/span&gt;Inside an Action (Save button click), I have logic that looks at the User&amp;#39;s list of UserID&amp;#39;s he or she has access to. If it doesn&amp;#39;t say SHOWALL, then I know I should restrict (based on the status of the Sales Order in this instance). The reason I&amp;#39;m doing this is so my salesmen can&amp;#39;t modify a Sales Order once it&amp;#39;s in the process of being fulfilled. There likely needs to be some coordination at this point to make sure&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now THAT is a &lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt;hack&amp;nbsp;&lt;img src="http://www.methodintegration.com/cs/emoticons/emotion-15.gif" alt="Geeked" /&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Restrict By User Roles in Actions</title><link>http://forums.method.me/cs/forums/thread/14048.aspx</link><pubDate>Thu, 11 Oct 2012 13:19:33 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:14048</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/14048.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=14048</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Does this already exist and I&amp;#39;m just missing it?&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_14_start" style="overflow:hidden;"&gt;&lt;span id="mce_15_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;To review the &lt;em&gt;rol&lt;span id="mce_10_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;span id="mce_12_start" style="overflow:hidden;"&gt;&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;es&lt;span id="mce_11_end" style="overflow:hidden;"&gt;&lt;span id="mce_12_end" style="overflow:hidden;"&gt;&lt;span id="mce_13_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt; associated with events on a button, first click &lt;strong&gt;edit&lt;/strong&gt; on the field/object you want to review then click next to step 2. &amp;nbsp;Cl&lt;/span&gt;ick the &lt;strong&gt;...&lt;/strong&gt;&amp;nbsp;next to the event dropdown and, depending on the field/object&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;, step 1 or 2 will allow yo&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;u to edit which roles can execute the action. &amp;nbsp;I have to caution that there is a slight bug right now with the roles area so it may not be visible to you in this version of Method but our next stage release will have this corrected. &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_14_end" style="overflow:hidden;"&gt;&lt;span id="mce_15_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;img src="http://i.imgur.com/8to6d.png" width="754" height="453" alt="" /&gt;&lt;span id="mce_17_start" style="overflow:hidden;"&gt;&lt;span id="mce_18_start" style="overflow:hidden;"&gt;&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;Further to this you can use roles to limit which tabs and tab links are visible through &lt;strong&gt;Customize&lt;/strong&gt; &amp;gt; &lt;strong&gt;Tabs&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;img src="http://i.imgur.com/H5KSU.png" width="780" height="299" alt="" /&gt;&lt;span id="mce_21_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Give it a shot and I&amp;#39;ll keep this thread updated when the bug for roles has been corrected.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Restrict By User Roles in Actions</title><link>http://forums.method.me/cs/forums/thread/14046.aspx</link><pubDate>Wed, 10 Oct 2012 21:44:20 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:14046</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/14046.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=14046</wfw:commentRss><description>&lt;p&gt;Is it possible to look at a User&amp;#39;s role(s) in an Action ? I&amp;#39;d like to restrict/allow certain actions on screens based on whether a user is in a certain role or not. Tab group doesn&amp;#39;t cut it for me.&lt;/p&gt;
&lt;p&gt;Does this already exist and I&amp;#39;m just missing it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;</description></item></channel></rss>