I'm trying to follow the document to create an editable report by adding a button for new record. But don't why the button doesn't show up. I'm using premium version, below is the code. Please help.
Thanks
DROP PROCEDURE IF EXISTS sp_DBR_leave_record
$$
CREATE PROCEDURE `sp_DBR_leave_record`(staff_id int)
BEGIN select 'dbr.hidecolumns', 'leave_id'; select `staff_id`, `leave_type`, `date`, `date_type`, `backup_plan`, `Approved`,
`leave_id` 'leave_id'
from dreamhigh_hr.leave_record; select 'dbr.button', 'New leave';
select 'dbr.report', 'sp_DBR_leave_record_new', 'newleave[]'; select 'dummy result set for the button'; END
$$