+
+/* Update an existing grid
+ *
+ * grid is a live grid
+ * filter is the array index of the $table_filters array in mskdef
+ * value is the value applied to the filter
+ */
+function grid_update(grid, filter, value)
+{
+ if (grid === undefined)
+ return;
+
+ if (filter !== undefined && filter !== false)
+ grid.buffer.options.requestParameters = ['w'+filter+'=' + value];
+ grid.buffer.clear();
+ grid.buffer.setTotalRows(0);
+ grid.buffer.foundRowCount = false;
+ grid.cancelMenu();
+ grid.ClearSelection();
+ grid.setImages();
+ if (grid.bookmark) grid.bookmark.innerHTML=" ";
+ grid.clearRows();
+ grid.buffer.fetch(-1);
+}
+