Hi guys,
I have found out this functionality for exporting/generating excel documents based on an object.
I think the functionality is pretty useful but I would like to understand a bit more about how it works.
I have read the documentation here: https://doc.dynamicweb.com/other/tools/generic-excel-exporter but I still feel that it needs a bit more clarifications.
I have managed to create an object (a list of ProductViewModel) that I want to output.
I have created a MasterFile and have defined the location/file that I want to output.
My problem is how to find out the placeholders available to use.
I have created a page that would generate this excel file. I have tried adding ?dwtemplatetags=true but it only outputs the generic tags.
In my Master file I have tried using {Name} and {productList.Name}.
What I think I need to understand is the connection between my object passed to the ExcelWriter (productList in my case) the formula in the excel (Loop({productList}, $2:$3, TRUE) and the Placeholder tag {Name}.
My expectation would be that the placeholder would have to be the name of the property (since I am using ProductViewModel, it can be Name) or it should be an identifier of the row plus the name of the property (in the documentation example it was using {Product_Name}.
For reference, this is how the example looks like (from the documentation site):
Anybody can help me understand this functionality better?
Thank you,
Adrian