[flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider

2007-04-27 Thread gotjosh819i
Good morning all,

I am working on a project that requires some level permissions.  I have 
a main viewstack that I call viewController and theres some elements in 
there.

One of them in a Admin view that I would like to hide if the user 
doesnt have those permissions.

I am struggling a little bit on how to do this, the visible property 
doesnt remove the viewstack element from the dataprovider when its set 
to false.

Any suggestions that may lead me down the right path is appreciated.

Thanks,

Josh



Re: [flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider

2007-04-27 Thread Manish Jethani
The only thing I can suggest is that you remove the admin view from
the view stack. *Or* you can also disable it (and the button will be
disabled).

On 4/27/07, gotjosh819i [EMAIL PROTECTED] wrote:
 Good morning all,

 I am working on a project that requires some level permissions.  I have
 a main viewstack that I call viewController and theres some elements in
 there.

 One of them in a Admin view that I would like to hide if the user
 doesnt have those permissions.

 I am struggling a little bit on how to do this, the visible property
 doesnt remove the viewstack element from the dataprovider when its set
 to false.

 Any suggestions that may lead me down the right path is appreciated.

 Thanks,

 Josh



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






RE: [flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider

2007-04-27 Thread Tracy Spratt
Why do you need to remove it?  You have to manually navigate a
ViewStack, so build the navigation piece with the logic to exclude the
admin view.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gotjosh819i
Sent: Friday, April 27, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hiding Viewstack elements in a toggleButtonBar
dataprovider

 

Good morning all,

I am working on a project that requires some level permissions. I have 
a main viewstack that I call viewController and theres some elements in 
there.

One of them in a Admin view that I would like to hide if the user 
doesnt have those permissions.

I am struggling a little bit on how to do this, the visible property 
doesnt remove the viewstack element from the dataprovider when its set 
to false.

Any suggestions that may lead me down the right path is appreciated.

Thanks,

Josh