--- /dev/null
+dojo.require('dojox.grid.DataGrid');
+dojo.require('dojox.grid.cells.dijit');
+dojo.require('dojo.data.ItemFileWriteStore');
+dojo.require('dijit.form.CheckBox');
+dojo.require('dijit.form.FilteringSelect');
+
+function buildHMGrid() {
+ var store = new dojo.data.ItemFileWriteStore({data:chmm.initStoreData('id', {identifier:'id'})})
+ hmGrid.setStore(store);
+ hmGrid.render();
+ // dojo.connect(store, 'onSet', cmGridChanged);
+ console.log(js2JSON(store));
+ fieldmapper.standardRequest(
+ ['open-ils.pcrud', 'open-ils.pcrud.search.chmm'],
+ { async: true,
+ params: [openils.User.authtoken, {id:{'!=':null}}],
+ onresponse: function (r) {
+ console.log('blah');
+ if(obj = openils.Util.readResponse(r)) {
+ store.newItem(chmm.itemToStoreData(obj));
+ // cmCache[obj.code()] = obj;
+ }
+ }
+ }
+ );
+}
+
+openils.Util.addOnLoad(buildHMGrid);
\ No newline at end of file
--- /dev/null
+[% WRAPPER default/base.tt2 %]
+<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/hold_matrix_matchpoint.js'> </script>
+<h1>Hold Matrix Matchpoint</h1> <br/>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="top">
+
+ <button dojoType='dijit.form.Button' onclick='deleteFromGrid();'>Delete Selected</button>
+
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
+ <table jsId="hmGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
+ <thead>
+ <tr>
+ <th field="id">Matchpoint ID</th>
+ <th field="active" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Active?</th>
+ <th field="user_home_ou" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>User Home Library</th>
+ <th field="request_ou" width='auto' editable='true'
+ cellType='dojox.grid.cells.Select'>Request Library</th>
+ <th field="pickup_ou" editable='true' cellType='dojox.grid.cells.Select'>Pickup Library</th>
+ <th field="item_owning_ou" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Owning Library</th>
+ <th field="item_circ_ou" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Item Circ Library</th>
+ <th field="usr_grp" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>User Permission Group</th>
+ <th field="requestor_grp" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Requestor Permission Group</th>
+ <th field="circ_modifier" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Circulation Modifier</th>
+ <th field="marc_type" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>MARC Type</th>
+ <th field="marc_form" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>MARC Format</th>
+ <th field="marc_vr_format" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Videorecording Format</th>
+ <th field="ref_flag" width='auto' editable='true'
+ cellType='dojox.grid.cells._Widget' widgetClass='dijit.form.TextBox'>Reference?</th>
+
+ </tr>
+ </thead>
+ </table>
+ </div>
+</div>
+
+[% END %]