Skip to main content
Apr 16, 2019 12:42 PM UTC
Solved

Exporting two infotables using DataExport widget.

Hi All,

I have a requirement to Export data to CSV but need two sections in imported file. 

Is there a way to achieve this using DataExport Widget? Attaching screen shot for reference.

 

Appreciate anyone's help in advance.

 

 

Best Regards,

Lakshmi.

PaiChungAnswer
Apr 16, 2019 2:09 PM UTC

DataExport widget will export exactly what the service puts out.

So I would create a service that combines the two tables.

5 replies

PaiChungAnswer
Apr 16, 2019 2:09 PM UTC

DataExport widget will export exactly what the service puts out.

So I would create a service that combines the two tables.

TIRUNLAuthor
Apr 16, 2019 2:13 PM UTC

I tried giving infotable of infotable can we do it in any other way?

Apr 16, 2019 2:20 PM UTC

Since you need the repeated header row, I don't think the infotable functions will help but I would just go with

var table1 = <MyFirstTable>

for each (var row in <MySecondTable>.rows) {

   table1.AddRow(row)

 

}

 

This may not quite work right, because you are adding a row to a table vs. a row object, so you may need  to find the proper syntax.