rem: factorValueGrid = new Ext.grid.Grid("bmFactorValues", { 
add: factorValueGrid = new Ext.grid.GridPanel({ renderTo:"bmFactorValues", 
context: Ext.onReady(function() {			bmId = dwr.util.getValue("bmId");	var clazz = dwr.util.getValue("bmClass");		// classDelegatingFor is the bioMaterial class.	var g = {id:bmId, classDelegatingFor:clazz};		var bmRecordType = Ext.data.Record.create([		{name:"id", type:"int"},		{name:"factorValue", type:"string"}]);			factorValueDS = new Ext.data.Store(		{		proxy:new Ext.data.DWRProxy(BioMaterialController.getFactorValues), 		reader:new Ext.data.ListRangeReader({id:"id"}, bmRecordType), 		remoteSort:false		});	factorValueDS.setDefaultSort('factorValue');		var cm = new Ext.grid.ColumnModel([			{header: "Factor Value", width: 650, dataIndex:"factorValue"}]);	cm.defaultSortable = false; 	factorValueGrid = new Ext.grid.Grid("bmFactorValues", {		ds:factorValueDS,		cm:cm,	});	factorValueGrid.render();		factorValueDS.load({params:[g]});		});
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/bmFactorValues.js/buggy/gemma-web/src/main/webapp/scripts/ajax/bmFactorValues.js