Hi 

This is one of the way to implement Role Based UI but in this we need 
to have the 

<mx:Button id="btnSubmit" visible={"User.isUserInRole()"} />

every where. Is there any better way?

I mean to say that if we have method somewhere in UI custom 
class which derives from Flex framework class which gives me the 
roles.So i do not need to 

"visible={"User.isUserInRole()" 

everywhere. As every component will derives from our custom class we 
can get rid of visible... statement.

Thanks
ilikelfex


--- In [email protected], "Dimitrios Gianninas" 
<dimitrios.gianni...@...> wrote:
>
> Pretty simple:
>  
> 1) Once you app is loaded, call your server to load the user info
> 2) Assuming you have a User class with a method isUserInRole( 
role:String ); ... then use this on various Buttons/fields/views to 
show/hide based on if the user has a particuliar role or not
>  
> Dimitrios Gianninas
> RIA Developer Team Lead
> Optimal Payments Inc.
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[email protected]] On Behalf Of ilikeflex
> Sent: Monday, January 19, 2009 1:18 AM
> To: [email protected]
> Subject: [flexcoders] Roles Based UI
> 
> 
> 
> Hi
> 
> I am developing role based GUI. Can anybody please point to best 
> practices or any flex article which can help to achieve this.
> 
> Thanks
> ilikeflx
> 
> 
> 
>  
> 
> -- 
> WARNING
> -------
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e-
mail in error, please notify the sender.
> 
> AVIS IMPORTANT
> --------------
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.
>


Reply via email to