How can l modify the Export Button filename to include the Global Variable value?

How can l modify the Export Button filename to include the Global Variable value?

SukhsterSukhster Posts: 4Questions: 2Answers: 0

Hi,

I have a table which is being upload via Ajax, and is using the Export to Excel button. I want the filename of the Excel to take the latest value of a Global Javascript variable. However, it looks like the "filename" attribute is ONLY populated when the page completes rendering - i.e. it takes the initial Global Variable value, rather than the value that is being updated over time.

Can any code be placed around the button being pressed to modify the initial "filename" to include the latest value of the Global Variable, e.g. augment the Button's onClick function?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770
    Answer ✓

    There are lots of threads asking the same question, like this one.

    Kevin

  • SukhsterSukhster Posts: 4Questions: 2Answers: 0
    edited May 2020

    Hi Kevin,

    I searched and search for a similar issue, but l must not have used the correct search criteria for this functionality. You have saved me a lot of time ( and trial and error ).

    You're a star. Many thanks for your time.

    Question closed.

This discussion has been closed.