Skip to Content
0
Former Member
Jan 28, 2009 at 03:57 PM

Datagrid to CSV: Problem generating page

27 Views

Hi,

I am passing a few parameters to a grid query using web page. Once the parameters are entered, and a command button is clicked the results appear in the igrid. I am trying to export it to csv but get a "Problem generating page" appears. I do have "Save data to CSV" enabled. I tried using saveAsCSVFile(). I am able to export to csv before clicking the query button. I am thinking if the problem is in my applet or function.

<APPLET NAME=appGrid CODE="iGrid" CODEBASE="/XMII/Classes/" ARCHIVE="illum8.zip"

width="940" HEIGHT="400" MAYSCRIPT>

<PARAM NAME="QUERYTEMPLATE" VALUE="Default/Query">

<PARAM NAME="DisplayTemplate" VALUE="Default/DIsplay">

<PARAM NAME="SelectionEvent" VALUE="UpdateDetails">

</APPLET>

function doQuery() {

var A = document.ASelection.getBrowserObject();

var B = document.BSelection.getBrowserObject();

var C = A.getSelectedItem();

var D = B.getSelectedItem();

var GridQuery= document.appGrid.getQueryObject();

GridQuery.setParam(1, C);

GridQuery.setParam(2, D);

document.appGrid.updateGrid(true);

}

Any suggestion will be appreciated.

Thanks,

FF