How do the new H3 ToDouble, ToDecimal, etc. functions work?
已回覆In the new SP1 SU2 HF3 update, the Inline Function activity now allows Number(ToDecimal, ToDouble, ToFloat, ToLong) functions. These are particularly useful when converting data from REST sources, since REST data always comes back a strings. To illustrate this, create a simple test process like this:

On the form, add one text box with a default string value of "1234.5678"
In the Inline Function, add Process Fields DecimalValue as a Decimal type and DoubleValue as a Double type. (Of course, Float and Long variables can also be created.)
Now define these two variables using the form text box and the new functions as shown here.

That is all there is to it. No JavaScript or any other code needed. Just configure, drag and drop.
請登入寫評論。
評論
0 條評論