Show TOC Entering content frame

Procedure documentation Writing Scripts for an Interaction Component Locate the document in its SAP Library structure

Use

You write script for methods and event handlers to specify an interaction component’s behavior in response to a user action or system event. You can write custom properties and custom events to extend an interaction component’s standard set of properties and events.

Note

Only the parent interaction component carries out custom events.

For more information, see Behavior Definition.

Prerequisites

You have:

·        Located the required interaction component that you want to change

·        Switched to the required change list

Procedure

       1.      In the Solution Explorer, click the interaction component with the secondary mouse button and choose View Code.

The Code and Document Outline windows appear.

       2.      In the Document Outline toolbar, choose the Script View pushbutton.

The Scripts View window appears.

       3.      Click the required node with the secondary mouse button and choose Add New.

The Add New dialog box appears.

       4.      Enter the required information in the fields, then choose Confirm.

       5.      In the Code window, add any code you require.

See also:

 

Working on an Interaction Component

Leaving content frame