Once a user logs in, they will see the main screen of the application.

By using group-level security, only certain users will be able to see certain controls.

Observe as the instructor creates a destination for the login Component.

  1. Create a new blank UX Component.
  2. Add a Panel Navigator to the Component.
  3. Add two Panel Cards to the Panel Navigator.
  4. Inside PANELCARD_1, add a Container, of type Panel Header.
  5. The new Container will automatically be renamed PANELHEADER_1.
    1. Inside PANELHEADER_1, place:
    2. A Static Text control that displays Welcome!
    3. A TabStop control
    4. A Button with Button Label Logout.
  6. Save the Component with the file name MainButtons.


Now you create the Component up to this point.


Observe as the instructor continues creating the MainButtons Component.

  1. Copy PANELHEADER_1 and its controls, paste it inside PANELCARD_2.

The new container will automatically be named PANELHEADER_2.

  1. Delete the Static Text in PANELHEADER_2.
  2. Inside PANELHEADER_2, place a Button with:
    1. The Label Back.
    2. A click Event, with an Action to Set Active Panel to PANELCARD_1.
  3. In the Properties group Button Appearance, click the smart button for Sub-theme, and choose Left.
  4. Save the Component.
  5. Display the Component in Working Preview


Now you continue creating the Component up to this point.


Observe as the instructor adds Button controls to the MainButtons

Component, and then sets group-level security for them.

  1. Inside PANELCARD_1, below the PANELHEADER_1 closing tag, add four buttons, with the Labels All Users, Administrators, Marketing, and Sales.

  1. Highlight the Sales control. Locate its Security Groups property, as shown here, and click the smart button:


The Security Groups window appears.

  1. Mark the checkboxes for Sales and Administrators, as shown here, and then click OK:

Notice Alpha Anywhere creates an Administrators Group by default, but that group is not allowed to use any controls by default.

  1. For the Administrator and Marketing controls, allow the appropriate Groups to see them.
  2. For the All Users control, do not explicitly allow any of the Groups to see it.

If a user can log in, and if they can access a Component, then they can access all the controls in that Component. (You will see how to allow all authenticated users to access a Component very soon.) So, if all authenticated users should be able to access a control, then do not choose any security groups for it.

  1. Change the Width Property of the Button controls to make them easier to use on a mobile device. Here’s a fast way to do it:
    1. Highlight all four Button controls.
    2. Click the % button above the Design area.
    3. In the box that appears, choose 100%.
  2. Save the Component, and display it in Working Preview.


Now you create the buttons, and then assign Security Groups to them.