rt30000
02-20-2008, 09:19 PM
I am working on a Flex app and need help with this issue:
Based on a user's login permission, I want to hide certain sections. I have a ViewStack controlled by a LinkBar with Panels inside. Setting the specific panel's visibilty I want to hide (within the ViewStack) does not seem to have any affect. Setting enabled="false" prevents you from getting into the section, but the link still appears in the linkbar. I have everything figured out but cannot get it to show/hide the link (and therefore the viewstack panel). Thoughts?
Becuase there may be quite a few sections that are dynamically hidden/visible based on login credentials, creating separate states certainly doesnt seem like the right approach.
You can login as "Username" and "Password". In theory, the User Management section will be hidden if you are not an admin. I just cannot seem to hide it, just disable the link.
http://www.roberttruex.com/wip/flex/usermgmt2/bin/main.html
Based on a user's login permission, I want to hide certain sections. I have a ViewStack controlled by a LinkBar with Panels inside. Setting the specific panel's visibilty I want to hide (within the ViewStack) does not seem to have any affect. Setting enabled="false" prevents you from getting into the section, but the link still appears in the linkbar. I have everything figured out but cannot get it to show/hide the link (and therefore the viewstack panel). Thoughts?
Becuase there may be quite a few sections that are dynamically hidden/visible based on login credentials, creating separate states certainly doesnt seem like the right approach.
You can login as "Username" and "Password". In theory, the User Management section will be hidden if you are not an admin. I just cannot seem to hide it, just disable the link.
http://www.roberttruex.com/wip/flex/usermgmt2/bin/main.html