FUN
Definition
The communication between the client and server occurs via HTTP requests, which include specific strings called FUN
.
The server interprets the FUN
sent by the client through a simple convention, executes the specified method or function, and finally returns a JSON containing the requested information.
-
F(<SMEUP_DATA_STRUCTURE_TYPE>;<SERVICE_NAME>;<METHOD_NAME>)
- SMEUP_DATA_STRUCUTRE_TYPE: the response data type
- SERVICE_NAME: the name of the Micro Executor service that you want to call
- METHOD_NAME: the method of the service that you want to call
Function parameters
-
Smeup objects
Its possible to pass from 1 to 6 objectsn(<t>,<p>,<k>)
- n: Number of the object
- t: Type
- p: Parameter
- k: Code
-
Free parameters
They can hold any informationP(KEY(value))
256 characters max lengthINPUT(KEY(value))
30,000 characters max length
Most used FUN
-
Open a specific
Scheda
F(EXD;*SCO;) 2(MB;SCP_SCH;<SCHEDA_NAME>)
-
Open a specific
Sub-Scheda
F(EXD;*SCO;) 1(;;) 2(MB;SCP_SCH;<SCHEDA_NAME>) 4(;;<SUB_SCHEDA_NAME>)