Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Work Tasks [fka Skelta]
  • AVEVA Work Tasks Tech Notes

TN 1270 Automatically Detecting User Information on Form Load

Last updated: March 5th, 2025

Description

  • Author: Devin Hepburn
  • Published: March 5th, 2025

Details:

Description

This article from InSource shows how to automatically detect user information on form load.

  • Author: Devin Hepburn
  • Published: 06/23/2022
  • Applies to: AVEVA Work Tasks / Skelta BPM

Details

Forms will usually want to include information about the user accessing the form such as username and email. Typing this in every time is tedious and leaves room for error. This information can be accessed from the backend database and populated in the form XML at the time of load. It can then be used to pass into database functions, workflows, or simply display on the form.

For this example, we will show to auto populate the username information into a text box at the time of form load.

  1. Create form and text box control that will house the user information. Take note of the control name or control ID. For this example, the text control has ID "T5".
  2. Click on properties at the top of the form to open the form properties pane. From there, click on "Scripts" and you will see an area to edit the "On Form Load" script.
  3. Edit this to allow for user information to be obtained at the time of form load.
  • In this example, virtualActorId is used to store the actor ID, or the ID of the individual accessing the form.
  • virtualActorId is then passed into getUserLookupExtendedInformation to get information on that actor ID. That dict of information is stored in the variable loggedOnUserInformtion.
  • From there, we can access information from the dictionary by passing the keys in a variable.key notation:
    • Username
    • UserDepartment
    • UserEmail
  • This example extracts the username and passes it into the T5 control. This control is a text box that is not user modifiable. 
auto-detect form load
Give feedback about this article

Recommended articles

TN - 1240 Creating a Watchlist Using an Import File

Read More

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand