Convert arraylist[row][col] to RecordList

Convert arraylist[row][col] to RecordList

  
Hi,

Can someone teach me how to convert an arraylist[row][col] into a RecordList?


Thanks in advance,
Gino
Hi Gino,

You should be able to convert it using two "for each", one for rows and other for columns.



You can also check a quick sample that is attached to the post.

Regards,
Paulo Garrudo
Sorry I forgot to mention I was asking for an example in C#. Thanks for this though! I'll try to pass instead the parameter array to the extension method, hope it works.
Btw, what if I have a dynamic number of attributes for the RecordList? This is my primary reason why I want to manipulate the data in C# instead of Service Studio. The flow goes like this:

1. Pass Data Set / Record List as type Object in the extension
2. Do business logic udner C#, assign to RecordList (generic recordlist)
3. Output RecordList as Object
4. In service studio what I do is after getting the Object I assign it to another extension (an export engine) that also does business logic and outputs it as Binary data for download.

I hope you can make a better sense of what I'm trying to do.


Thanks in advance,
Gino
Hi Gino,

If you have dynamic number of attributes you must use a record list definition like this:



Basically you have a dynamic number of rows and columns.

Regards,
Paulo Garrudo