emmas
2 Feb 2010, 6:05 PM
Hi, i have a label on a header bar of my grid which opens 'Save As' popup dialog to load a file,
here is the code:
private LabelField exportReport;
exportReport = new LabelField("Export");
exportReport.setText("<a href= /f_m.csv>Export</a>");
resultPanel.getHeader().addTool(exportReport);
But i need that label to call a function first (that function executes a procedure and creates that f_m.csv file on app server).
How do i make my label to call that function on click event first, before the popup window comes up?
Thank you.
here is the code:
private LabelField exportReport;
exportReport = new LabelField("Export");
exportReport.setText("<a href= /f_m.csv>Export</a>");
resultPanel.getHeader().addTool(exportReport);
But i need that label to call a function first (that function executes a procedure and creates that f_m.csv file on app server).
How do i make my label to call that function on click event first, before the popup window comes up?
Thank you.