Transmit data from a data grid to a action button
Posted: Thu Oct 16, 2008 6:15 am
Hi Steve,
I have created a grid from an action. This action get records from the database according to various sql queries.
In the page of the results grid I have a action button to export a CSV of this result.
The data exported now into CSV format is not correct so I need to send some data to my action. I need to put some dynamic data into the url of the button action to export the right result. I need to tell my CSV action which query I used.
I thought I could include this data dynamically into the url of his CSV action.
Could you tell me how to do this ? Do I have to create a Javascript button or can I do something more simple ?
Kind regards
Jean
I have created a grid from an action. This action get records from the database according to various sql queries.
In the page of the results grid I have a action button to export a CSV of this result.
The data exported now into CSV format is not correct so I need to send some data to my action. I need to put some dynamic data into the url of the button action to export the right result. I need to tell my CSV action which query I used.
I thought I could include this data dynamically into the url of his CSV action.
Could you tell me how to do this ? Do I have to create a Javascript button or can I do something more simple ?
Kind regards
Jean