New to Cloverleaf engine and trying to learn the string actions and how they work. I have checked user guide and not seeing any examples for many of the commonly used string actions.
I want to split a simple date with hyphens: 2022-02-05
I wish to use the String action xlateStrSplit but receiving error.
I am using this syntax in the String Action Content window:
xlateStrSplit –
and on the destination I have three variables to dump the values into:
@year
@month
@day
Getting error:
Error Info ‘Tcl callout error
xlateStrSplit -:
errorCode: NONE
errorInfo:
error storing into “@month”:
while executing
“xpmstore $xlateId $outAdd $xlateConstType [lindex $_splittedResultList $_listIndex] -type $outType”
(procedure “xlateStrSplit” line 20)
invoked from within
“xlateStrSplit -”
<End of errorInfo>
‘ error in ‘XLATE UIH_LS162_DFT.xlt’ under ‘_HCI_static_route_’ to ‘IB_UIH_TEST_DFT’;
Screenshot attached of my String action.
What is correct syntax to use the xlateStrSplit function using hyphen as delimiter.