I've now added a 'delete' feature to my report..
SELECT 'dbr.javascript',
"
function confirmdel(obj)
{
return confirm('Delete Rate \\''+$(obj).parent().children().eq(0).text()+'\\'?');
}";
SELECT 'dbr.report', 'sp_DBR_Delete_rebate', 'callbefore=confirmdel';
select 'dbr.text', concat('Editing ',inCustomer,'.');
SELECT 'dbr.text', 'Click on required rate to adjust it.';
select 'dbr.report', 'sp_DBR_UpdateRebateRates', 2, 'popup', 'ID=1', 'Category<=2', 'Rebate_Rate<=3';
select RR_Index as 'Index No', WEEE_Cat as 'Category', (Rate / 100) as 'Rate (£ per Tonne)'
from RebateRate
where (inCustomer = CustomerCode)
order by WEEE_Cat;
However, its not passing the ID that relates to that particular line to my delete procedure. The icon next to the rows appears fine but when you click on the icon to delete that row, it prompts you to enter the ID rather than pass it..The delete procedure works fine provided it gets the correct index ID..
Help again!