Question & Answer
Question
How can a field be populated when a condition is true?
Answer
In the following example, the 'Internal Priority' field will be populated with a value of 1 when the 'Site Id' is BEDFORD on an SR.
1) Go To – System Configuration – Platform Configuration – Automation Scripting – click on Select Action – Create – Scripting with Object Launch Point:
Within the 'Create Script with Object Launch Point : Step 1 of 3' add the following:
Launch Point: SRPRI
Description: Setting Internal Priority on BEDFORD SR's
Active: CHECKED
Object: SR
Object Event Condition: SITEID = 'BEDFORD'
Update? CHECKED
Click on the 'Next' button.
3) Within the 'Create Script with Object Launch Point : Step 2 of 3' add the following:
Script: SRPRI
Description: Setting Internal Priority on BEDFORD SR's
Script Language: jython
4) Within the Variables pane, click on New Row. Add the following:
Variable: INTERNALPRIORITY
Variable Type: INOUT
Override? CHECKED
Binding Type: ATTRIBUTE
Launch Point Attribute: INTERNALPRIORITY
5) Click on Next button. Within the 'Create Script with Attribute Launch Point : Step 3 of 3' add the following script:
INTERNALPRIORITY='1'
Click on the Create button. Correct any error that may appear. The following dialog will be displayed:
6) Access an SR record:
7) Populate the SITEID field with 'BEDFORD':
Click on 'SAVE'
8) The 'Internal Priority' field will be populated with a value of '1':
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21648350