I have implemented a popup for selection in a form (identical to the popup example). How do I do this in a grid, I have attached the trigger and get the popup to display but I don't know how to reference the cell it came from for updating the value selected from the popup.
The code I have, based on the form field version:
The popup has this
And the grid has this:
If there is an example that does this then just point me at that.
Thanks,
Scott Mildenberger
The code I have, based on the form field version:
The popup has this
Code:
gridVendors.on('itemclick', function(grid, rec, item, rowIndex, columnIndex, e) { var vendorNum= grid.getStore().getAt(rowIndex).get('KMACCT'); window.opener.setVendor(vendorNum); close(); });
Code:
window.setVendor = function(VendorNum) { // Need to replace this with code to update the grid cell value. //formEdit.down('#VENDOR').setValue(VendorNum); };
Thanks,
Scott Mildenberger
Comment