I recently started working with the writeFile routine. I call up data out of the employee database based on a set of criteria. Now I can see my dataset just fine but am having difficulty having the system write it to the file. It either writes the name DATA into the file or it comes up with the error message about not being able to coerce into a string. The dataset is part of my root container as a customizer.
Here is the code I have tried so far
data = event.source.parent.dataset
filename = fpmi.file.saveFile(“test.csv”)
I have also tried adding str( ) arount the event source, then around the word dataset and finally around the word data in the fpmi code. I have also tried single and double quotes around data. But just cannot seem to get the right sequence of commands.
Thanks and have a great day.