Hi
Strange one here.
I have a simple linked report that contains a popup for drill-down functionality. The report contains a dbr.sum statement. The report runs as should when run directly ie the column sum is shown. However when the report is run a linked the report no sum appears. The rest of the report is correct.
Also how do I hide the underscore from the link in the master report? I've tried
select 'dbr.css', 'a.link {text-decoration: none;}';
select 'dbr.css', 'a.hover {text-decoration: underline;}';
but this doesn't work.
The linked report code is as follows:
CREATE PROCEDURE
sp_DBR_Grp_Bal_Detail
(inCompID int, inNom int, inMon int, inYear int)
BEGIN
declare inEDate date;
set inEDate = last_day(str_to_Date(concat(inYear,'-',inMon,'-01'),'%Y-%m-01'));
/*select inCompID, inNom, inMon, inYear, inEDate;*/
case inCompID
when 1
then
select 'dbr.sum',3; select 'dbr.colstyle','Val','%0.0f';
select a.Nominal_Code as 'Nominal[Nom]', c.name as 'Description[Desc]', sum(a.amount) as 'Value £[Val]' from hilmark.hilmark_journal a join hilmark.tblhilmark_coa b on a.nominal_code = b.tblhilmark_nominal join hilmark.hilmark_ledger c on a.nominal_code = c.account_ref where b.tblhilmark_coa_ref = inNom and a.Date <= inEDate group by a.Nominal_Code having round(sum(a.amount)) <> 0 order by 2;
else
select 'Finished';
and the code calling this report is:
select 'dbr.report','sp_DBR_Grp_Bal_Detail','[Val]','inCompID=CompID','inNom=Nom','inMon=(inMonNum)','inYear=(inYearNum)','popup';
Thanks
Jake