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 the
      Properties
      pane, in the
      Text
      field, enter
      Name
      .
    4. Select
      PasswordLabel
      and in the
      Properties
      pane, in the
      Text
      field, enter
      Password
      .
    5. Select
      LocaleLabel
      and in the
      Properties
      pane, in the
      Text
      field, enter
      Locale
      .
  3. Add a text box for user password:
    1. In the
      Project view
      pane, right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Text box
      .
    2. Hover-over the text box, select
      Edit
      , and enter
      PasswordBox
      .
    3. In the
      Properties
      pane, set the
      Content Type
      property to
      Password
      .
  4. Add a text box for user name:
    1. In the
      Project view
      pane, 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 the
      Project view
      pane, 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 the
      Project view
      pane, right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Button
      .
    2. Hover-over the button, select
      Edit
      , and enter
      CreateButton
      .
    3. In the
      Properties
      pane, set the
      Text
      property to
      Add User
      .
    4. In the
      Events
      pane, next to
      MouseClick event
      , select
      Add
      and select
      ProjectName
      NetLogic
      UserManagementScript
      AddUser
    5. Create a dynamic link between the
      name
      property and
      ProjectName
      UI
      CreateUserWidget (Type)
      NameBox
      Text
      .
      For more information about dynamic links, see Create dynamic links.
    6. Create a dynamic link between the
      password
      property and
      ProjectName
      UI
      CreateUserWidget (Type)
      PasswordBox
      Text
      .
    7. Create a dynamic link between the
      localeId
      property 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 the
      NewPanelPath
      property and
      ProjectName
      UI
      EditUserWidget (type)
      .
  7. Create the Cancel button:
    1. In the
      Project view
      pane, right-click
      CreateUserWidget (type)
      and select
      New
      Base controls
      Button
      .
    2. Hover-over the button, select
      Edit
      , and enter
      DiscardButton
      .
    3. In the
      Properties
      pane, set the
      Text
      property to
      Cancel
      .
    4. Next to
      MouseClick event
      , select
      Add
      and select
      Panel Loaders
      {PanelLoader1}
      PanelLoader1
      ChangePanel
      .
    5. Create a dynamic link between the
      NewPanelPath
      property and
      ProjectName
      UI
      EditUserWidget (type)
      .
      For more information about dynamic links, see Create dynamic links.
  8. Arrange the interface elements.
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.