Salesforce

Method Interface (Magic xpi 4.5)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Method Interface (Magic xpi 4.5)

Many of the Magic xpi components support a set of methods. When you select the Method interface, you can configure the component to use the methods directly in Magic xpi. In this way, you do not need to code anything to use the basic functionality for each component. Magic xpi provides a special method dialog box that allows you to define the method and its parameters for the component.

The Direct Access Method configuration dialog box consists of two panes. In the left pane, click Add to select the method or methods that you want to use from the drop-down list in the Name column. The methods displayed in the drop-down list depend on the component that you are using.

The right pane displays the method’s parameters and information for each. The parameters are displayed automatically when you select a method. The following information is included:

Column

Description

Parameter Name

The parameter name.

Type

The type of parameter (such as, Alpha, Numeric).

Picture

The maximum number of characters allowed in the parameter.

In/Out

Indicates whether the parameter is sent to the method or returned from it.

Value

Enter the parameter value. This should be in the form of an expression. The Value can consist of any combination of expression, variables, user parameters and free text. Use the Expression Editor to help in creating a value. To open the Expression Editor, click the button to the right of the field.

When you click the button to the right of the field, the Expression Editor opens for any parameter that is sent to the method (In). For parameters that are returned from the method (Out), the Variables List is displayed, but it does not include system variables, such as C.sys.ErrorCode.

Note:

You can use a combination of strings and entries from the Expression Editor. All strings must be enclosed with single straight quotation marks (' ') (for example, ‘value’).

Related Topics

Reference
Attachment 
Attachment