Download link option is not working in display tag

前端 未结 1 1295
北海茫月
北海茫月 2021-01-25 23:37

HiI am displaying table using displat tag library it is working fine but when i come to export links it is giving trouble so can any help how to do this one My code will be lik

相关标签:
1条回答
  • 2021-01-26 00:33

    In your code after

    <display:setProperty name="paging.banner.item_names" value="Records" />
    

    line add two properties

    <display:setProperty name="export.pdf" value="true" /> //set false if you don't want
    <display:setProperty name="export.csv" value="true" /> //set false if you don't want
    

    Now, add two more properties to set download file name

    <display:setProperty name="export.csv.filename" value="CSV Report.pdf"/>
    <display:setProperty name="export.pdf.filename" value="PDF Report.pdf"/>
    
    0 讨论(0)
提交回复
热议问题