I am making a button to print the table above it in the same flexcontainer.
I already use an export to csv script on a button next to it.
component = self.parent.parent.getChild("StopData").getChild"Table".props.data
csv= system.dataset.toCSV(component)
system.perspective.download("The file name I chose.csv",csv)
I saw something about 7.9 using this:
event.source.parent.getComponent(‘Table’).print()
Then I saw people were having issues getting all of their table data when it had a scroll bar, some of the data would get cutoff.
So how do I print this table?
edit:I need to edit the flex container path, I had added one
so now I have self.parent.parent.getChild("StopData").getChild"Table".props.data
instead
(added one more parent)