I have 4 arrays that I want to put in a data table and output to excel.
The first array is a blank array where I put inside the data table by a loop.
The second, third and fourth array are predefined.
What I planned for the first array is this:
1st array(POArray) = {“116808”,“116808”,“116808”}
these are my predefined arrays:
2nd array(LineItemArray) = {“1”,“2”,“3”}
3rd array(QuantityArray) = {“1”,“1”,“5”}
4th array(ResultArray) = {“YES”,“NO”,“YES”}
then create a datatable from it and output to an excel file.
what comes out is this:
but I wanted it to be this:
is there a way I can output where A1:A3 contains “116808” ?
This is the xaml file I made: _test2.xaml (16.0 KB)
[*] the POArray is a new string array and was filled up by the for each loop
and I managed to do this:
While I was working on this, I was getting a fourth item in my array. I first removed the last element/item by going to this post: Remove last element/item in an array
but I managed to do the same result by simply adding “-1” in my assign value for setting up a new string array.
To those who would like to see the last item removed using the method in the link, remove the “-1” and comment the Assign activity in the “Remove last item in array” CommentOut activity.
Check out my revised xaml file here: _test2.xaml (24.9 KB)