cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Exporting two infotables using DataExport widget.

TIRUNL
7-Bedrock

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.

ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:TIRUNL)

DataExport widget will export exactly what the service puts out.

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

View solution in original post

5 REPLIES 5
PaiChung
22-Sapphire I
(To:TIRUNL)

DataExport widget will export exactly what the service puts out.

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

TIRUNL
7-Bedrock
(To:PaiChung)

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

PaiChung
22-Sapphire I
(To:TIRUNL)

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.

TIRUNL
7-Bedrock
(To:PaiChung)

Thanks, will get back to you once I try this.
TIRUNL
7-Bedrock
(To:PaiChung)

Thank you for your support, I am able to achieve with code provided with slight modification.

Announcements


Top Tags