Integrate the NetLogic with the interface

Configure the interface elements to show the hidden panel only if a user is logged in.
  1. Configure the login button:
    1. In
      Project view
      , select
      LoginButton
      .
    2. In
      Events
      , double-click the
      PerformLogin
      Method
      field value and select
      ProjectName
      UI
      LoginForm (type)
      LoginFormNetLogic
      Login
      .
    3. Under
      InputArguments
      , create dynamic links between:
      • username
        and
        ProjectName
        UI
        LoginForm (type)
        Username
        SelectedValue
        .
      • password
        and
        ProjectName
        UI
        LoginForm (type)
        Password
        Text
        .
      For more information about dynamic links, see Create dynamic links.
    4. Next to the
      SetOutputMessage
      Method
      , select
      Delete
      .
  2. Add and configure the message label:
    1. In
      Project view
      , right-click
      LoginForm
      and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      , and enter
      MessageLabel
    3. In
      Properties
      , create a dynamic link between
      Text
      and
      ProjectName
      UI
      Login Form (type)
      LoginFormNetLogic
      Message
      .
      For more information about dynamic links, see Create dynamic links.
    4. Right-click
      LoginFormOutputMessage
      , select
      Delete
      and select
      Delete
      .
  3. Configure users:
    1. Add an Admin user and set the password to
      Admin
      .
    2. In
      Project view
      , select
      LoginForm (type)
      .
    3. In
      Properties
      , create a dynamic link between the
      Users
      property and the
      Users
      folder.
      For more information about dynamic links, see Create dynamic links.
  4. Add and configure the logout button:
    1. In
      Project view
      , right-click
      MainWindow (type)
      and select
      New
      Base controls
      Button
      .
    2. Hover-over the button, select
      Edit
      , and enter
      Logout
      .
    3. In
      Properties
      , set
      Text
      to
      Logout
    4. In
      Events
      , next to
      MouseClick event
      , select
      Add
      and select
      Commands
      CoreCommands
      ChangeUser
      .
    5. Under
      Input arguments
      , set
      Username
      to
      User
      .
    6. Next to
      MouseClick event
      , select
      Add
      and select
      Panel Loaders
      {PanelLoader1}
      PanelLoader1
      ChangePanel
      .
    7. Under
      Input arguments
      , create a dynamic link between
      NewPanel
      and
      UI
      LoginForm (type)
      .
  5. Arrange the interface elements.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.