Salesforce

Argument Repository - .NET (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Argument Repository - .NET (Magic xpa 4.x)

The Argument repository for .NET, is accessed by zooming from the Invoke .NET operation's Argument property. You can access the list of variables by zooming from the Var column in the Argument repository.

The following columns appear in the Argument repository.

Column

Description

#

The sequential repository entry number automatically assigned by Magic xpa. The insertion point skips this column.

Var

The Var (for Variable) column is used to identify a variable or expression to be passed to the subroutine, with the option to receive back data from the subroutine. This method of passing an argument is known as by-reference. The other method, by-value, is explained below, under Exp.

Zoom to the Variable list to select a variable, or type the letter code of the variable and go to the next variable. The letter code is displayed in this column and the variable name appears in the Description column.

If you want to pass a constant value as an argument, skip the Var column and move to Exp.

The Var column is skipped if an expression is already defined.

Exp

The Exp column is used to pass to the subroutine a constant value by means of an expression. This is the by-value method of passing an argument to a subroutine. Note that you cannot receive data back from the subroutine in this property. The Expression number appears in this column and the Description column shows the first section of the expanded expression text. You can zoom to the Expression Editor to select an existing expression or to define the expression you want to pass. The expression may evaluate to any valid Magic xpa data type.

The Exp column is skipped if a variable is already defined as an argument. Remove the variable identifier if you want to use an expression as an argument instead.

Description

This column displays the description of the passed argument or expression.

.NET Type

The .NET variable type (so that the variable will be defined and a conversion will be made to it).

You can press Ctrl+Space to manually open a list of the available classes.

Note:

  • The value is updated with a recommended type to fit with the Magic xpa attribute. You can change this value.

  • The argument type is not changed when the variable type is changed; it will only be changed when selecting another variable.

  • Passing pointers to a method is not supported. Instead, you should send the variable by reference by checking the Reference check box.

.NET Variable

The name of the .NET variable that will get/set its value from/to Magic xpa.

The first character can be either a letter or an underscore. The following characters are invalid: dot, comma, opening bracket, closing bracket and space.

Reference

Specifies whether the value will be sent by-reference.

Check this if you want the value to be returned to Magic xpa.

As with regular Magic xpaparameter passing, passing a variable is by-reference, which means that the subroutine will return the data to the calling function. Passing an expression is by-value and you will not receive data back.

Reference
Attachment 
Attachment