Asset-V1 PUAP+AD+2024+type@asset+block@Enhanced Skill Lab - Using An Activity To Change The Locale of An Operator
Asset-V1 PUAP+AD+2024+type@asset+block@Enhanced Skill Lab - Using An Activity To Change The Locale of An Operator
operator
Scenario
Update a property for one Operator ID instance by opening the instance, updating the
clipboard page, saving the updated clipboard page, and committing the result to the
database.
IMPORTANT: This simple example shows how methods work together and does not
cover security, validation, locking, error-handling, or performance considerations.
Pre-Requisites
Creating the Warranty application and operator must be completed in order to proceed
with this exercise.
Your Assignment
Your assignment consists of the following tasks:
NOTE: Detailed steps to complete your assignment can be found on the pages that
follow.
Detailed Steps
Task 2: Create an activity rule to update the locale and save it to the database.
1. In Dev Studio, create an activity named Update Locale in the RGB-Prod-Warranty-
Work class.
4. On the Steps tab, add an Obj-Open method. This method opens a single record
from the database, as described above. Set the criteria as the pyUserIdentifier
property is equal to the parameter defined on the Parameters tab.
NOTE: In methods that return data from an object (such as Obj-Browse and Obj-Open),
the returned data is placed on the page identified as the Step Page.
NOTE: The properties we reference are located in a different class, so you will need to
use the More… option if you using autocomplete to find the fields.
6. Save the updated record by using an Obj-Save method. And commit it to the database
using the Commit method.
2. Click Run. After executing the activity, a dialog is displayed showing the XML. An
excerpt is shown below:
3. Close the window showing the XML.
4. Close the Run dialog.
5. Navigate to the Operator ID record for Admin@rgb, and we can see the update in the
Default Locale on the Operator page.
6. Log off.