cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Create Master Agreement Action from toolbar script

Former Member
0 Kudos

Hi Experts ,

I have a requirement in which i need to call create master agreement action from a toolbar script ,

I need to have a toolbar script name Create Master Agreement ,when user clicks on that the same wizard should come as when user clicks on           action-> Create Master agreement .

Appreciate your support.

Regards,

Piyush Srivastava

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Piyush,

There are a couple things you need to take into consideration. First, you would have to determine what master agreement doc type you want to use. The script to create the MA would look something this…

maHome = IBeanHomeLocator.lookup(session, ContractIBeanHomeIfc.sHOME_NAME);

maBean = maHome.create(docType);

Once the you the iBean, you would have to use the setter methods on the ContractIBeanIfc to set the values of all the required fields on the master agreement and finally call the save method on the home.

Hope this helps.

Regards,

Vikram

Former Member
0 Kudos

Thanks Vikram , will be trying this .

Regards,

Piyush