Create a widget for managing existing users

This widget shows existing users and enables you to manage them.
  1. Create a panel for managing user accounts (EditUserWidget):
    1. In
      Project view
      , right-click the
      UI
      folder and select
      New
      Containers
      Panel
      .
    2. Hover-over the panel, select
      Edit
      , and enter
      EditUserWidget
      .
    3. Right-click
      EditUserWidget
      and select
      New
      Data controls
      List box
      .
    4. Set a dynamic link between the
      Model
      property of the list box and
      ProjectName
      Security
      Users
      .
      For more information about dynamic links, see Create dynamic links.
  2. Create the UserDetails panel:
    1. Right-click
      EditUserWidget
      and select
      New
      Containers
      Panel
      .
    2. Hover-over the panel, select
      Edit
      , and enter
      UserDetails
      .
    3. Add three Labels by right-clicking
      UserDetails
      and selecting
      New
      Base controls
      Label
      .
    4. Rename the labels by hovering-over each label, selecting
      Edit
      , and entering:
      • NameLabel
      • PasswordLabel
      • LocaleLabel
    5. Select
      PasswordLabel
      and in
      Properties
      , set
      Text
      to
      Password
      .
    6. Select
      LocaleLabel
      and in
      Properties
      , set
      Text
      to
      Locale
      .
    7. Right-click
      UserDetails
      and select
      New
      Base controls
      Text box
      .
    8. Hover-over the text box, select
      Edit
      , and enter
      PasswordBox
      .
    9. In
      Properties
      , set
      Content Type
      to
      Password
      to obfuscate the text in the text box.
    10. Right-click
      UserDetails
      and select
      New
      Data controls
      Combo box
      .
    11. Hover-over the combo box, select
      Edit
      , and enter
      LocaleCombo
      .
    12. Add two buttons by right-clicking
      UserDetails
      and selecting
      New
      Base controls
      Button
      .
    13. Rename the buttons by hovering-over each button, selecting
      Edit
      , and entering:
      • CreateButton
      • RemoveButton
    14. Select
      CreateButton
      and in
      Properties
      , set
      Text
      to
      Create User
      .
    15. Select
      Remove
      and in
      Properties
      , set
      Text
      to
      Remove User
      .
  3. Add an alias node to the
    UserDetails
    panel.
    1. In
      Project view
      , select
      UserDetails
      .
    2. In
      Properties
      , at the top, select
      Add
      and select
      Alias
      .
    3. Create a dynamic link between
      Alias
      and
      ProjecName
      UI
      EditUserWidget (type)
      ListBox1
      SelectedItem (Pointer)
      .
      For more information about dynamic links, see Create dynamic links.
    4. Create a dynamic link between
      Kind
      and
      Types
      ObjectTypes
      Object
      User
      .
      For more information about dynamic links, see Create dynamic links.
  4. Configure the MainWindow settings.
    1. In
      Project view
      pane, right-click
      MainWindow (type)
      and select
      New
      Containers
      Panel loader
      .
    2. Create a dynamic link between
      Panel
      and
      ProjectName
      UI
      EditUserWidget (type)
      .
      For more information about dynamic links, see Create dynamic links.
  5. Arrange the interface elements.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.