Warning: session_write_close(): Write failed: No space left on device (28) in /var/www/dw_docs/doku.php on line 128

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in /var/www/dw_docs/doku.php on line 128
====== Appunti ====== appunto qui alcune note che potrebbero essere utili da riportare in altro modo da altre parti ===== Recuperare direttamene i valori in js... ===== 33a34,52 > function Tables(){ > var items = []; > var getSelectedFromGrid = function(grid_s){ > $.each(grid_s, function(k, v){ > var series = v.getGridParam('selarrrow'); > if (series !== undefined ) { > //Correct the jqgrid bug > series = get_distinct_array(series); > this.items = this.items.concat($.map(series, > function (x, i) { > return v.getCell(x, 'table'); > } > )); > } > }); > return this; > } > } > 39,41c58,59 < var s_els = []; < var a_els = []; < var v_els = []; --- > var tables = new Tables(); > var vector_tags = new Tables(); 44,46c62,64 < s_els.push($('#energy_measures')); < a_els.push($('#energy_alarms')); < v_els.push($('#energy_vectors')); --- > tables.getSelectedFromGrid($('#energy_measures') > vector_tags.getSelectedFromGrid($('#energy_vectors'); 49,99c67,69 < s_els.push($('#energy_measures2')); < a_els.push($('#energy_alarms2')); < s_els.push($('#energy_vectors2')); //vectors details are series (=measures) < } < < var tables = []; < var vector_tags = []; < var i; < < for (i=0; i tables.getSelectedFromGrid($('#energy_measures2') > .getSelectedFromGrid($('#energy_alarms2') > .getSelectedFromGrid($('#energy_vectors2');//vectors details are series (=measures) 106c76 < return issue_download_aggregates(tables, vector_tags, from, to, graph_options.aggregate_by, form_command_el); --- > return issue_download_aggregates(tables.items, vector_tags.items, from, to, graph_options.aggregate_by, form_command_el);