So I manage to accomplish this using this <answer>...
# advancedpdf
i
So I manage to accomplish this using this answer, now it comes another issue and I dont seem to understand it, before, the layout was divided with by SO using
lineitem_index
every SO has a lineitem asssigned and starts with zero, so
SO1
has
lineitem0
,
lineitem1
and
SO2
has
lineitem0
,
lineitem1
but with the solution of the link, for some reason now the all the line items now are from 0 to N items of the wave, meaning I dont have lineitem0 multiple times thus been able to divide the layout, I dont see why this is happening as the loops are the same
d
I may be wrong, but it seems you're flattening the array So originally (
wavedata
) was
[[a0,a1],[b0],[c0,c1,c2]]
But then you're adding each individual
lineitem
to an array so you end up with:
[a0,a1,b0,c0,c1,c2]
(and using
lineitem_index
just prints
0,1,2,3,4,5
)
In fact, as you're listing out
y
inside of listing out the original (unaltered)
wavedata
, don't you end up with
y
being listed multiple times? (3 times in my example) Not sure I've got this right, but eager to help