I have some list of results returned after calling select query.That is result,result and so on and in each of these results there are 5 string values.
I have to loop over these values to map it to some document.
In the Input array, i gave selectoutput/results and in the output array Doc/Doclist and mapped each of the values .
But I am getting NULL in the Doclist.
Thanks in advance.
Try to initialize the Doc/Doclist before calling the loop and map.
are the two list expected to have the same length?
If yes it is fine to specify an output array.
If not, output array can not be specified.
pub.list:appendToList should be used instead to create an intermediate list, which can be mapped to the target list after the loop has completed.
Can you provide screenshot samples of the input and output structure?