Please enable JavaScript to view this site.

Navigation: Client Functions

RunSubroutine

Scroll Prev Top Next More

Executes a subroutine.

 

 

* subroutineName

string

 

 

Subroutine name to execute

* argsNumber

Numeric

 

 

Number of arguments that the subroutine accepts.

* arguments

string

 

 

Subroutine arguments list separated by the LinkarCommon.ASCII_Chars.DC4 (20) character. The number of elements in the list must coincide with argsNumber.

outputStringType



Indicates in which format data is to be returned: MV, XML or JSON.

 

customVars

string

 

This is a free text field to send in the transaction. If not empty, subroutine SUB.LK.MAIN.CONTROL.CUSTOM will be called. Add custom code to that subroutine to define special behaviours for some or all transactions.

receiveTimeout

Numeric

 

-1

0

 

This is the maximum time in seconds that the client will wait for a response. Use 0 for no timeout. This is a function-specific override : -1 in a Persistent function defaults back to the timeout defined in the LinkarClt constructor.

 

There are some default tags that can be used as subroutine arguments. Linkar Server will replace these labels with their values.

 

%LINKAR.ID.SESSION%

%LINKAR.RECORD.SESSION%

%LINKAR.GENERAL.OPTIONS%

%LINKAR.CUSTOMVAR%

%LINKAR.OPTIONS%