Skip to Content
0
Nov 25, 2022 at 07:40 AM

MDK: Format Parameter as number

180 Views

Hi,

I have 2 simple properties which are to be used in a callFunction OData Action, and are expected as numbers.

MDK is complaining that they are not numbers, even though I'm converting them as a number using ($N...)..

Is there a way to convert these to a number to remove this problem?

image.png

"Target": {
		"Service": "/PorX/Services/fd3.service",
		"Function": {
			"Name": "Confirmation",
			"Parameters": {
				"Final": true,
				"Hours": "$(N,{{#Control:FCTime/#Value}})",
				"OperationNr": "#Control:FCOperation/#Value",
				"OrderNr": "#Control:FCOrder/#Value",
				"Partial": false,
				"Quantity": "$(N,{{#Control:FCYield/#Value}})"
			}
		}
	}<br>

Attachments

image.png (7.0 kB)