IBM Support

Set Default Authorize Sites for Purchase Contracts Application

Technical Blog Post


Abstract

Set Default Authorize Sites for Purchase Contracts Application

Body

If you only have one Site configured for your system. In the meantime if you want to default to the site value when Authorize Site on the Purchase Contracts application. You can write an automation script to set the default site value. The difficulty is the user has to authorize a site each time when creating a new contract. In order to achieve this.


Create an Object Launch Point

Object CONTRACTAUTH

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Click Next

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Click Next

Enter the Source Code as mbo.setValue("AUTHSITEID","BEDFORD")

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Create the script

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Change Status to Active

Go to Purchase Contract
Create a new Contract
Enter the Vendor
Select Action Authorize Site
Click New Row

The default value BEFORD Site Automaticaly populates

image

 

 

[{"Business Unit":{"code":"BU005","label":"IoT"}, "Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]

UID

ibm11130097