Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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.
Solved! Go to Solution.
DataExport widget will export exactly what the service puts out.
So I would create a service that combines the two tables.
DataExport widget will export exactly what the service puts out.
So I would create a service that combines the two tables.
I tried giving infotable of infotable can we do it in any other way?
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.
Thank you for your support, I am able to achieve with code provided with slight modification.