How to use applyComponents in 16.3 with more than one parameter?

Hello!

I got strange error in a rule with this function. When I try to pass more than one parameter to the function I got error message

"Interface Definition: Expression evaluation error at function rule!sz_oneFieldSection [line 7]: Rule 'sz_onefieldsection' has 2 parameters, but instead passed 1 parameters."

If I remove second parameter from the inner rule it works fine, but I need more than one parameter to be passed. I also tried to use rule!sz_oneFieldSection(p1:_, p2:_) and array: merge(enumerate(5),enumerate(5)), but it produces the same error message.

a!applyComponents(
function: rule!sz_oneFieldSection(
p1: _,
p2: 5
),
array: enumerate(5)
)

 

 

  Discussion posts and replies are publicly visible

Parents Reply
  • I just put a saveInto into a with() variable and the error message is much more clear so I believe my issues is something else.

    "Interface Definition: Expression evaluation error: An error occurred while executing a save: Expression evaluation error: The save target is a with() variable (local!x:hi). The save target must be a load() variable, process variable, or node input (or a rule input passed one of those three). with() variables are reinitialized with each evaluation and therefore cannot be used as save targets."
Children