Add or Edit a Dynamic Property or Event
- Last UpdatedNov 15, 2023
- 2 minute read
Update the corresponding section of the wjson file to add or edit a dynamic property or event.
Note: Whenever you update the wjson and localization text files, you need to reset the IIS.
-
Depending on the task you want to do, perform either of the following:
-
To add a new dynamic property or event:
-
Copy an existing item and paste into the section where you want to insert it.
-
Assign a unique sequence number. Any number that isn't used yet in the file. If there's a duplicate sequence number, the application displays the first property in the list and ignores the other one.
-
Add the new name for the property or event and save the file.
Note: Ensure that you don't miss a syntax element in the file such as comma (,). If something is missed, the properties are not shown in the Properties page. The issue related to this is logged in the WTLogger Console.
The following example is a wjson file for the Hierarchy Selector widget.

-
-
To edit an existing property or event entry, update the name of the corresponding property or event, and save the file.
-
-
If you are editing or updating the name of an existing property or event, you also need to update the localization text file.
You can access these localization files from <AVEVAWorkTasksInstallPath>\Locales\en-US\Forms2\Standard.
-
Forms_AWT<VersionNumber>_BaseGrid.txt
-
Forms_AWT<VersionNumber>_HierarchySelector.txt
If you want to set a newly created property or event for localization, add it to the localization file. Follow the existing text format to avoid encountering some issues.
Note: If the name of the new property or event isn't added in the localization file, the application takes the name defined in the wjson file.
-