restReqQuerySet (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

ALL

Firmware version:

2.10.00


This function will set the value of a query field in a request.

 

Input:

req : SYSHANDLE

A handle to the request.

 

name : STRING

The name of the query field to set.

 

value : STRING

The new value of the field.

 

 

Returns: INT

1


- Success

0


- Not supported

-1


- Invalid request

-3


- Failed to set query

-5


- Request is read only.

 

Declaration:

FUNCTION restReqQuerySet: INT;
VAR_INPUT
  req            : SYSHANDLE;
  name           : STRING;
  value          : STRING;
END_VAR;

 

 

Example:

Please see the "Examples - REST Example"