Please enable JavaScript to view this site.

Returns the result of executing the OCONV() functions on an expression list in the database.

 

GET: api/v1/<apiresource>/Conversion/output/{code}/{expression}

<apiresource>ApiResource name. e.g. apidemo.

{code} Parameter

{expression} Parameter

Example: api/v1/apidemo/Conversion/output/D2-/18263þ18264/

 

 

 

Parameters

custom_vars

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 behaviors for some or all transactions.

svr_timeout

integer

This is the maximum time in seconds that the client will wait for a response. Use 0 for no timeout.

code (*)

string

The conversion code. Must obey the Database conversions specifications.

expression (*)

string

The expression to convert. May include MV marks (value delimiters), in which case the conversion will execute in each value obeying the original MV mark.

(*) Mandatory

 

 

 

Request Body

Unused

 

 

 

Responses

On all kind of responses, an ERROR tag will list all possible errors during execution of the operation. This tag includes CODE tag with the error codes and MESSAGE tag with messages of each error.

In responses of type "text/plain" (LkString MV), error codes and messages are separated by multivalue marks.

 

application/json

The image below shows an example of the result of executing the operation with "D2-" as "code" and "18263þ18264" as "expression".

 

 

 

application/xml

The image below shows an example of the result of executing the operation with "D2-" as "code" and "18263þ18264" as "expression".

 

 

 

text/plain

The image below shows an example of the result of executing the operation with "D2-" as "code" and "18263þ18264" as "expression".

The response will be displayed in TEXT format.

This response is a chain of characters structured in sections, named "LkString".

For more information about the different tags in this response, click here.