Replies: 2 comments 1 reply
Yes.
That might be because this not not a complete JSLT expression. You define a variable and a function, but nothing is actually being evaluated. That's probably what it's complaining about. |
|
You can break up the task. transform builds a list of objects containing the attributes This is the reason that we have to extractForAccountNumbers processes the transformed input by only taking the objects which have a given account number, Now you can fetch or or Here's the broken up approach: The above gives you: {
"all": [
{
"id": "id1",
"system": "PDOU"
},
{
"id": "id1",
"system": "PDOU"
},
{
"id": "id2",
"system": "PDOU"
}
],
"1": [
{
"id": "id1",
"system": "PDOU"
}
],
"2and3": [
{
"id": "id1",
"system": "PDOU"
},
{
"id": "id2",
"system": "PDOU"
}
]
} |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a input json:
I have a JSLT function where I'm trying to access a variable defined in the outer loop from inside the nested loop:
Problem: When I'm inside the inner for (.prodregisters) loop, can I access the $productId variable that was defined in the outer loop?
In result i have syntax problem.
All reactions