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 the
      Project view
      pane, 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 the
      PasswordLabel
      and in the
      Properties
      pane, in the
      Text
      field, enter
      Password
      .
    6. Select the
      LocaleLabel
      and in the
      Properties
      pane, in the
      Text
      field, enter
      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 the
      Properties
      pane, set the
      Content Type
      property value 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 the
      Properties
      pane, in the
      Text
      field, enter
      Create User
      .
    15. Select
      Remove
      and in the
      Properties
      pane, in the
      Text
      field, enter
      Remove User
      .
  3. Add an alias node to the
    UserDetails
    panel.
    1. In the
      Project view
      pane, select
      UserDetails
      .
    2. In the
      Properties
      pane, at the top, select
      Add
      and select
      Alias
      .
    3. Create a dynamic link between the
      Alias
      property and
      ProjecName
      UI
      EditUserWidget (type)
      ListBox1
      SelectedItem (Pointer)
      .
      For more information about dynamic links, see Create dynamic links.
    4. Create a dynamic link between the
      Kind
      property and
      Types
      ObjectTypes
      Object
      User
      .
      For more information about dynamic links, see Create dynamic links.
  4. Configure the MainWindow settings.
    1. In the
      Project view
      pane, right-click
      MainWindow (type)
      and select
      New
      Containers
      Panel loader
      .
    2. Create a dynamic link between the
      Panel
      property and
      ProjectName
      UI
      EditUserWidget (type)
      .
      For more information about dynamic links, see Create dynamic links.
  5. Arrange the interface elements.
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.