DM.Pub.ExcelExportUrl

Version: 9.7.0 string  

Summary

Allow to perfrom downloading entire data of Data List in CSV/Excel.

Settings

The tag could include the optional parameters: 

  • fileName='a file name' 
  • hideHiaders=true/false

Remarks

the download returns all rows, so pagenumber is desregarded. All other parameters work normally.

Examples

Outputting the template tag

@GetString("DM.Pub.ExcelExportUrl")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("DM.Pub.ExcelExportUrl"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("DM.Pub.ExcelExportUrl"); }

Outputting the template tag

<!--@DM.Pub.ExcelExportUrl-->

Check if string has a value

<!--@If Defined(@DM.Pub.ExcelExportUrl)--> Let's output this tag here: <strong><!--@DM.Pub.ExcelExportUrl--></strong> <!--@EndIf(@DM.Pub.ExcelExportUrl)-->