<%@ page contentType="text/html;charset=UTF-8" %> Importer wizard (simple) /** * Update one select based on another select * * @author * @see http://www.grails.org/Tag+-+remoteFunction * @param string select (form) name * @param string JSON data * @param boolean keep the first option * @param int selected option * @param string if null, show this as option instead * @void */ function updateSelect(name,data,keepFirstOption,selected,presentNullAsThis) { var rselect = $('#'+name).get(0) var items = data if (items) { // remove old options var start = (keepFirstOption) ? 0 : -1; var i = rselect.length while (i > start) { rselect.remove(i) i-- } // add new options $.each(items,function() { var i = rselect.options.length rselect.options[i] = new Option( (presentNullAsThis && this.name == null) ? presentNullAsThis : this.name, this.id ); if (this.id == selected) rselect.options[i].selected = true }); } }

Importer wizard (simple)

You can import your Excel data to the server by choosing a file from your local harddisk in the form below.

Choose your Excel file to import:
Choose your study:
Choose type of data:
Choose type of data template: