ViewStack container. Choose the view based on the variable command.

Hi I am trying to implement in my application role-based access control.  I opted for a login screen which will compare users and passwords to a MySQL database.  on a match, I need to read the 'role' associated with each user.  I want to have different views for each Admin role with the role, that role will see views admin and users, a user discovers and so on.

I managed with a button to change the view.selectedChild.  How can I use view.selectedChild = $var.

As a test I used a dataGrid to give me choices.  But when I use the selectionChange like this event handler

protected function dataGrid_selectionChangeHandler(event:GridSelectionEvent):void
                              {
                                        view.selectedChild = dataGrid.selectedItem.role;
                              }

It does not change the view.

Is it possible to use ViewStack for control of access in this way?

SelectedChild is a point of view.  What is the role?  What is an int or a string?  I would like to map it to selectedIndex instead.

But really, I wouldn't use ViewStack and use view States that match name role.

Tags: Flex

Similar Questions

  • Is it possible to have the ability to view the embedded jpg that is contained in the RAW files in the future.

    Is it possible to have the ability to view the embedded jpg that is contained in the RAW files in the future. I tried in the community, but there are very old post. The LR previews do not have clarity which is displayed by the JPG NIKON D7000. For the first selection is the most important properly see the Embedded file.
    Thank you

    Course as possible. You add your voice to http://feedback.photoshop.com. I'm sure there's other sons it suggests the same thing. This forum is a user to user forum, and there is not a lot of real Adobe engineers around. Feedback forum Adobe engineers actively seek suggestions to implement and to fix things. Here, it's really help people with the help of Lightroom.

  • I want to set up an online quotation tool in my view based on a small number of variable input by the visitor. If someone has done this through Muse and able to assist / point me in the right direction please? Thank you!

    I want to set up an online quotation tool in my view based on a small number of variable input by the visitor. If someone has done this through Muse and able to assist / point me in the right direction please? Thank you!

    Hello

    These discussions could be useful

    I need to put a form to give a quote, does anyone have any ideas

    "Click to add to your" function

    Get the Quote button functionality

    Let me know if you have any question.

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • Find the name of the view based on a sql query

    Can anyone suggest me how to find the name of the view based on a sql query? When I try to the following select statement:
    select view_name from user_views where text like '%SELECT * from TABLE%';
    but I get this error:
    SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got LONG
    00932. 00000 -  "inconsistent datatypes: expected %s got %s"
    But as I notice that the TEXT column is really LONG to type... Are there any other table system that store information about the text using each view?

    See this example, using DBMS_METADATA. GET_DDL:

    Re: Search text in column

  • How to filter the view based on different profiles fields

    Hi all

    I have a problem here. I have 2 profiles name "ABC" and "DEF". Each profiles have their own fields, for example "Fields1', ' fields 2" and "fields 3" under profiles ABC while "fields 4" and "field 5" should put under 'DEF' profile. "" ""»

    When I search for files and click on file information that belong to the profile of the CBA, I should be able to see only the domaines1, Fields2 and Fields3. Even in goes when I view the file under DEF profile information I can see Fields4 and Fields5. What happens now is, I can display all fields on both profiles. Can I track who?

    I don't know if this is related to profiles or not if not, how can I do this? Also, I named each folder main same name as the profile name. I have the main folder of ABC and DEF. When I try to view the files in each folder, only some fields that associate with this parent folder will be displayed.

    Really appreciate your help.

    Hi Aziela,

    Have you added xIdcProfile metadata to your rules that are added in your profiles say "ABC" & "DEF"?

    The sequence should be:

    1. Make entries in the metadata of the IdcProfile of your profiles trigger variables.
    2. Add the xIdcProfile of metadata in your consignment or information content rule according to your need
    3. Set the variable of relaxation according to your profile. (step 1)

    Try this & let us know the result.

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Internet explore and google chrome says to choose the program you want to use to open this file

    Original title:

    I can't open my internet explore and google chrome it says to choose the program you want to use to open this file... file? HELP PLZ

    Help me

    Hi Ariep,

    When you run an .exe on a Windows Vista-based computer file, the file can start another program. In addition, the icon of the file .exe may not appear as expected. You can also receive additional errors in the .exe file or the program that starts.

    To resolve this problem, try the steps of: When you run an .exe file on a Windows XP, Windows Vista or Windows 7 computer the file may start another program

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Please post back with the State of the question.

  • How to choose the alternative address for email?

    I have in my address book for recipients who have more than one e-mail address. I want to be able to choose the second address. For the moment, I can't work out how to do this automatically.

    Click "address book".
    Select the address book that contains the contacts
    Select the contact
    Info is displayed in the lower list below
    Double-click the alternative e-mail address.
    It is opened in a new write a message to this e-mail address.

  • How to choose the display by default when you use two screens on my Mac Pro?

    How to choose the display by default when you use two screens on my Mac Pro?

    The default view when you have several is made that you drag the little icon in the menu bar in this pane:

    .

  • How to add a new application to the list "Choose the Helper Application"?

    I regularly download a wide variety of files based on text using Firefox. Most of the time, I want to open it with Notepad ++. Before, after, I opened the first file using Notepad ++ (selected through her Browse... button), the application are in the auxiliary list "choose the Application". However, I recently replaced my PC, and it is no longer the case. Now, I need to click Browse... and navigate through the file system every time to find Notepad ++ .exe, which is wasting time.

    Please note that I don't know to associate the types of files - as mentioned there are a lot of different file types, and I want just Notepad ++ appears in the list of the menu.

    Have you tried right clicking on such a file in Windows Explorer and the value of this file (temporarily) as the default application?

  • 4540 proBook s: how to choose the right network driver

    Hello guys. I clean installed Windows 7 Professional. Now, I see that I can not connect my computer to the internet, so I need to install the network drivers. I wen to the HP website and saw that there are 19 different network for my laptop drivers.
    How to choose the right method?

    Hello:

    Below are the links to the ethernet and wireless drivers you need...

    Wireless:

    This package contains the installation package driver for Ralink wireless LAN controllers in the laptop models running a supported operating system.

    File name: sp66089.exe

    This card also needs a bluetooth driver...

    This package contains the OS driver installation package for the Ralink Bluetooth in laptop computers running taken in charge.

    File name: sp59632.exe

    Ethernet:

    This package provides the driver for the Ethernet Realtek controller in the laptop models running a supported operating system.

    File name: sp63213.exe

  • When I try to open Firefox and explore, I get a menu of recommended programs and asked me to choose the program with which to open the file.

    Original title: open Firefox and explore

    When I leave early to Mozilla Firefox or Explorer, I get a menu of recommended programs and asked me to choose the program with which to open the file. When I do, I get a security warning asking if I really want to do. If I check "Run", I get redirected to the previous list, and I find myself in a circle without end. It does not matter what choice to make. Used to be that I went from starting Firefox directly.  I can get in if I have Firefox right click and choose to run the file as an administrator and then give permission to open the program. How can I cut these two additional and direct access, that I used to enjoy. I run Vista. The same thing happens if I have to explore. Would be grateful for the help.

    Hello

    1 during how long have you had the problem?
    2. don't you make changes to your computer before the problem?

    I suggest that you follow the steps below and check if the problem persists.

    Method 1:

    When you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program
    Method 2:
     
    Step 1:
     
    Make SFC scan and check if this is related to missing or damaged system files.
     
    Step 2:
     
    After the SFC scan, set the file association and check.

    Method 3:

    Test the issue in a new user account .
     
    See also:
  • How copied knowledge rule contained in the cartridges

    Hello

    I copied a rule followed Exchange cartridge, once an old is automatically disabled. but I could not view rule (a new) copied to this list of rules

    Once copied, the rule will not appear in the rules for the exchange of cartridge (avoid it is replaced by an update)

    Choose the drop down menu to Non-cartouche alarms and you will find your alarm there.

  • A file is deleted, recycle them bin changes to show that it contained, but the tray opening shows no files.

    BlueGreg answered the
    We are so clear that I also see the issue of 'Empty Recycle Bin'. Briefly - a file is deleted, recycle them bin changes to show that it contained, but the tray opening shows no files.
     
    BlueGreg,
     
    You have a solution to the problem...
     
    .. .a file is deleted, recycle bin turns to view this content, but opening the tray shows no files.
     
    So how can I do to show that it has no content in it even if it displays zero files...
     
    When I tried to empty the trash, it shows again there 30 articles in it, but the location displays always no or hidden file or I do not see a thing...
     
    anyone can tackle this problem...
     
    I ' ve checked under this folder properties of recycle bin and "show hidden" file is check, but it is still hidden...»
     
    Why is it so...
     
    Original title:

    Try increasing the size of your Recycle Bin:

    (1) on the desktop, right-click the Recycle Bin, and then click Properties.

    (2) in the column "Recycle Bin location", select the location (drive letter, in general C: for the Windows partition) from the Recycle Bin you want to increase the size.

    (3) in the box "Selected location settings", click the custom option "size".

    (4) in the box "Size maximum (MB)", enter a higher value (in megabytes) for the Recycle Bin.

    5) click 'Apply' and then click the OK"" button.

    J W Stuart: http://www.pagestart.com

Maybe you are looking for

  • Toshiba Tempro does not work with Vista 64 bit Ultimate

    Why Toshiba Tempro don t works with windows vista 64 bit ultimate mey Satellite A300 - 1 l 4? Any idea where I can find a solution? Thank you very much

  • 15f9h60ua Pavilion: Pavilion 15 on password power.

    Pavilion 15 has bios password.  After 3 trials failure code. 60624390

  • Satellite A660 - how to enable the WLAN?

    Hello If I press keys FN + F8 message told me, it is must to activate the WLAN because it s disabled? This laptop has no extra button for the WLAN network, only on the row of buttons under the screen! I have re-installed all new drivers broadcom WLAN

  • I can't access my account

    Hello My account was hacked last month, and I got it successfully. support team recovered my security information. Now I have a problem, when I connect to my account, I get an error "you have been blocked by your parent. I am 25 years old, I don't ne

  • RVS4000 Incorrect time

    I have a rvs4000 from cisco with updated firmare V. 1.2.11 and IPS signature in version 1.40 (both updated on 22/03/2009) I have the issue of sub Setup > time > I have these set values: automatically set the local time using the Network Time Protocol