I am building a grails application for large datasets and facing various problems due to loading a large json file on the javascript side (client side) of my application, due to which the browser crashes.
Now, I have realized I am taking all user selections on the javascript side only, but I'm assuming it can be done on the grails controller side also using the tag and "params"
I am looking at :
http://grails.org/doc/latest/ref/Tags/link.html
http://grails.org/doc/latest/ref/Tags/form.html
But, I'm very new to this and needed some direction if what I'm trying to do is feasible or not? Basically, I want the user to select a bunch of dropdowns, the values of which are passed to my grails controller and the controller sends the filtered data to the javascript to load, such that only the relevant data is sent to the browser and it runs properly.
UPDATE
package marchmock2
class Tablev1class {
Date date_hour
String mv
String pagetype
Integer visits
Integer visits_ly
Integer visits_lw
String time_period
String platform
String device
String browser
static mapping = {
table "pgtyp"
version false
date_hour column: "date_hour"
mv column: "mv"
pagetype column: "pagetype"
visits column: "visits"
visits_ly column:"visits_ly"
visits_lw column:"visits_lw"
time_period column:"time_period"
platform column:"platform"
device column:"device"
browser column:"browser"
}
static constraints = {
}
}
This is how my domain class looks like and there is no dependency. All I want is create selects from various mv, pagetype, platform, device, browser and make the selections made pass to the controller which has a query to be made to the database