How to create a button that is displayed on an SCM form in Workbench?

book

Article ID: 50599

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

To be updated

 

Description:

SCM forms do support buttons, but it was undocumented feature.

Solution:

Below is an example of how to implement a button in SCM form using Java script:

<events language="javascript" client="eclipse">
function button1Clicked(){
var file1 = editor.getTextFieldValue("hodproject");
var app1 = "notepad.exe";
java.lang.Runtime.getRuntime().exec(app1 + " " + file1);}
</events>
<button id="button1" label = "button1"/>

Explanation:

  1. Create an xml element "button" and label it as needed.

  2. Define the function for the "Clicked" event [Format - <Field-Name>Clicked()].

Environment

Release: SCMNCR99000-12.1-Harvest-Software Change Manager-Named User-Competitive Replacem
Component: