I am trying to use the checkcolumn to allow the user to check a line when it has been processed.
I finally discovered the checkchange listener and thought I was on the right road. But I do not understand how to get the data form the record so that I can update the record on the iSeries.
Here is the column info
Here is the checkchange code, I added some alerts to be sure I was getting to this point and what record I was looking at.
So my question is, Am I on the right track and how do I get the VVRRN number to be able to update the master record?
Thank you.
I finally discovered the checkchange listener and thought I was on the right road. But I do not understand how to get the data form the record so that I can update the record on the iSeries.
Here is the column info
Code:
onCheckcolumnCheckChange: function(checkcolumn, rowIndex, checked, eOpts) { xtype: 'checkcolumn', dataIndex: 'FLAG01', text: 'Processed', listeners: { checkchange: { fn: me.onCheckcolumnCheckChange, scope: me } }
Code:
alert(checkcolumn); alert(rowIndex); alert(checked); alert(eOpts); Ext.Ajax.request({ url: '/valence/vvcall.pgm', params: { pgm: 'AC1028', action: 'updateRec' , VVRRN: component.currentRec, FLAG01 : component.getValue() }, success: function(response) { var r = Ext.decode(response.responseText); if (r.success) { Valence.util.Helper.msg('Record saved.'); Ext.ComponentQuery.query('#filegrid')[0].getStore().load(); } else { Valence.util.Helper.msg('ERROR: ' + r.msg); } } });
Thank you.
Comment