Perspective download not working with Firefox

Hi,

I made a script with system.dataset.toExcel() and system.perspective.download(). On Android mobile device it works on Chrome but not on Firefox. Do you have a solution ?

Hello!

I´m using : system.dataset.toCSV adn system.perspective.download(file_name, csv)

def runAction(self, event):
		
  	component = self.parent.getChild("TabContainer").getChild("TablaOT")

	csv = system.dataset.toCSV(component.props.data)

    
	current_time = system.date.now()

	formatted_date = system.date.format(current_time, "yyyyMMdd")

    
	file_name = "TablaOT_" + formatted_date + ".csv"


	system.perspective.download(file_name, csv)

And it works in Firefox
image

Thanks but I don't want a CSV.
Furthermore in my CSV headers string encode is not correct.

Seems like a firefox security setting.
What firefox browser version is it?

Any errors in the browser console when you attempt the download?

The system.dataset.toCSV() function has an optional localized parameter which might help with encoding.
What version of Ignition is your gateway running?

1 Like