public void reporteDeAsignacion() { Embarque target = (Embarque) getSelectedObject(); if (target != null) { final Map map = new HashMap(); map.put("EMBARQUE_ID", target.getId()); map.put("SUCURSAL", target.getSucursal()); ReportUtils.viewReport(ReportUtils.toReportesPath("embarques/AsignacionDeEnvio.jasper"), map); } }