Create a widget for adding users

This widget enables you to add new users by determining their name, password, and locale.
  1. Create the CreateUserWidget panel:
    1. In
      Project view
      , right-click
      UI
      and select
      New
      Containers
      Panel
      .
    2. Hover-over the panel, select
      Edit
      , and enter
      CreateUserWidget
      .
  2. Add labels:
    1. Add three labels by right-clicking
      UserDetails
      and selecting
      New
      Base controls
      Label
      .
    2. Rename the labels by hovering-over each label, selecting
      Edit
      , and entering:
      • NameLabel
      • PasswordLabel
      • LocaleLabel
    3. Select
      NameLabel
      and in
      Properties
      , set
      Text
      to
      Name
      .
    4. Select
      PasswordLabel
      and in
      Properties
      , set
      Text
      to
      Password
      .
    5. Select
      LocaleLabel
      and in
      Properties
      , set
      Text
      to
      Locale
      .
  3. Add a text box for user password:
    1. In
      Project view
      , right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Text box
      .
    2. Hover-over the text box, select
      Edit
      , and enter
      PasswordBox
      .
    3. In
      Properties
      , set
      Content Type
      to
      Password
      .
  4. Add a text box for user name:
    1. In
      Project view
      , right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Text box
      .
    2. Hover-over the text box, select
      Edit
      , and enter
      NameBox
      .
  5. Create a locale picker:
    1. In
      Project view
      , right-click
      CreateUserWidget (type)
      and select
      New
      Data controls
      Combo box
      .
    2. Hover-over the combo box, select
      Edit
      , and enter
      LocaleCombo
      .
    3. Create a dynamic link between the
      Model
      property and
      ProjectName
      Model
      LocaleIds
      .
      For more information about dynamic links, see Create dynamic links.
  6. Create the Add User button:
    1. In
      Project view
      , right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Button
      .
    2. Hover-over the button, select
      Edit
      , and enter
      CreateButton
      .
    3. In
      Properties
      , set
      Text
      to
      Add User
      .
    4. In
      Events
      , next to
      MouseClick event
      , select
      Add
      and select
      ProjectName
      NetLogic
      UserManagementScript
      AddUser
    5. Create a dynamic link between
      name
      and
      ProjectName
      UI
      CreateUserWidget (Type)
      NameBox
      Text
      .
      For more information about dynamic links, see Create dynamic links.
    6. Create a dynamic link between
      password
      and
      ProjectName
      UI
      CreateUserWidget (Type)
      PasswordBox
      Text
      .
    7. Create a dynamic link between
      localeId
      and
      ProjectName
      UI
      CreateUserWidget (Type)
      LocaleCombo
      SelectedItem
      .
    8. Next to
      MouseClick event
      , select
      Add
      and select
      Panel Loaders
      {PanelLoader1}
      PanelLoader1
      ChangePanel
      .
    9. Create a dynamic link between
      NewPanelPath
      and
      ProjectName
      UI
      EditUserWidget (type)
      .
  7. Create the Cancel button:
    1. In
      Project view
      , right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Button
      .
    2. Hover-over the button, select
      Edit
      , and enter
      DiscardButton
      .
    3. In
      Properties
      , set
      Text
      to
      Cancel
      .
    4. Next to
      MouseClick event
      , select
      Add
      and select
      Panel Loaders
      {PanelLoader1}
      PanelLoader1
      ChangePanel
      .
    5. Create a dynamic link between
      NewPanelPath
      and
      ProjectName
      UI
      EditUserWidget (type)
      .
      For more information about dynamic links, see Create dynamic links.
  8. Arrange the interface elements.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.