when I use dbr.upload in a popup report, I can't find a way to refresh the report in the parent window once the popup is closed.
I used a javascript function in dbr.report.
select 'dbr.report', 'sp_DBR_entregas_image_uploader', '[ver1]',"popup", 'in_entregaid=Entrega_id','in_foto="1"','in_accion=[ver1]','in_url=url1','callpopupclose=function () {window.location.reload();}';
I used dbr.refresh in the popup reports ----
select 'dbr.upload.options', 'noreplace', 1;
select 'dbr.upload.options', 'accepted_files', '.jpg,.png,.jpeg';
select 'dbr.upload.options', 'maxfilesize', 1;
select 'dbr.upload', '/var/www/mydbr/user/images/entregas/', 'sp_DBR_entregas_image_update', in_entregaid,in_foto;
select 'dummy';
select "dbr.refresh";
I used dbr.refresh in the report that makes the update in the database --
UPDATE entregas.entregas
SET entregas.foto = concat(in_path, in_file)
Where entregas.entrega_id=in_entregaid;
SELECT concat('Se cargó la fotografía: ', in_file, ' con un tamaño de: (',format_bytes(in_size),')\nPor favor cierre este recuadro.');
select "dbr.refresh";
nothing.