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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11130097