Skip to main content
1-Visitor
April 16, 2019
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
22-Sapphire I
April 16, 2019

DataExport widget will export exactly what the service puts out.

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

5 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
April 16, 2019

DataExport widget will export exactly what the service puts out.

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

Translate
TIRUNL1-VisitorAuthor
1-Visitor
April 16, 2019

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

Translate
22-Sapphire I
April 16, 2019

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.

Translate