Hi,
Let see the picture of output and the code.
/*Status Report */
select 'dbr.editable', '[Status]', 'sp_DBR_INV_edit_status', 'inItemCode=Item_Code', 'inItemName=Item_Name', 'inStatus=Status', 'type=select', "select=select 'NORMAL' UNION select 'TRACKING' UNION select 'ALERT'", "options={'callback':update_status}";
select 'dbr.javascript', "function update_status(value) {
// alert(value);
var url = '<img src=\"user/images/normal.jpg\" height=\"16\" width=\"16\">';
if (value == 'ALERT')
url = '<img src=\"user/images/bad_debt.jpg\" height=\"16\" width=\"16\">';
else if (value == 'TRACKING')
url = '<img src=\"user/images/tracking.jpg\" height=\"16\" width=\"16\">';
$(this).html(url);
}";
select <code>Item_Code[Item_Code]</code>,
case
when c.Status = 'ALERT' then 'dbr.purehtml:<img src="user/images/bad_debt.jpg" height="16" width="16">'
when c.Status = 'TRACKING' then 'dbr.purehtml:<img src="user/images/tracking.jpg" height="16" width="16">'
else 'dbr.purehtml:<img src="user/images/normal.jpg" height="16" width="16">'
end as 'Status[Status]',
....
And the output:
I think this cause by the editable command or the callback options because the other one uses linked report works normal.
Thanks,