Thanks team!
Could I ask you why I have linked a report in this code, but it does not show the green arrow icon?
=================================================
if object_id('sp_DBR_test2','P') is not null
drop procedure sp_DBR_test2
go
CREATE PROCEDURE sp_DBR_test2
AS
BEGIN
select 'dbr.title', 'dbr.html:<span style="font-size:1.4em">Profit and Loss Statement: January - February<span>';
select 'dbr.parameters.show';
select 'dbr.css', '
td.cell { white-space:nowrap; padding-left: 2px; padding-right: 5px; }
td.prev_year, td.prev_year a { color: #777 !important; }
th.TableHdrTableData {padding-left: 2px; padding-right: 2px}
td.cell a {text-decoration:none}
td.this_year a { color: #444 }
.whitebg {background-color:white !important; border-bottom: 1px solid #DDDDDD !important}
td.group_allocation {color: #666;}
.acc_header {font-weight: 500;background: #F4F4F4;}
.acc_header td {border-top: 1px solid #CCC;border-bottom: 1px solid #CCC;}
.acc_header td {border-top: 1px solid #CCC;border-bottom: 1px solid #CCC;}
tr.acc_header td {border-bottom: 1px solid #666;}
.account td {padding-left: 2em !important}
.level1 td:first-child {
color: #006600; /* Màu xanh lá cây cho level1 */
padding-left: 2em;
}
.level2 td:first-child {
color: #663300; /* Màu nâu đất cho level2 */
padding-left: 4em;
}
.level3 td:first-child {
color: #330099; /* Màu xanh đậm cho level3 */
padding-left: 6em;
}
.level4 td:first-child {
color: #990033; /* Màu đỏ tối cho level4 */
padding-left: 8em;
}
';
select 'dbr.search', 0;
select 'dbr.resultclass', 'pl_report';
--select 'dbr.freezecols', 1;
select 'dbr.hidecolumns', 'rowclass';
select 'dbr.crosstab', 'Month';
--select 'dbr.colclass', 'account', 'padded_account border_left';
select 'dbr.colclass', 'account', 'padded_account border_left freeze';
select 'dbr.lockcolumns', 'account';
select 'dbr.colclass', 'ty_ga', 'border_left border_right this_year group_allocation';
select 'dbr.colclass', 'ty', 'this_year';
select 'dbr.colclass', 'ly', 'border_right prev_year';
select 'dbr.colclass', 'chg', 'border_right chg';
select 'dbr.header.colclass', 'ty_ga', 'group_allocation';
select 'dbr.header.colclass', 'ly', 'prev_year';
select 'dbr.header.colclass', 'chg', 'chg';
select 'dbr.rowclass', 'rowclass';
select 'dbr.lockcolumns', 'account';
select 'dbr.summary.calc', 'chg', '[ly]==0 ? 0 : ([ty]-([ly]))/abs([ly])*100';
select 'dbr.colstyle', 'ty_ga', '%.0f; ;%.0f';
select 'dbr.colstyle', 'ty', '%.0f; ;%.0f';
--select 'dbr.cellformat', 'ty', 'ty_format';
--select 'dbr.cellformat', 'ly', 'ty_format';
select 'dbr.colstyle', 'ly', '%.0f; ;%.0f';
select 'dbr.colstyle', 'chg', '%.0f %; ;%.0f %';
select 'dbr.nosort', 0;
select 'dbr.hidecolumn', 'ty_ga';
SELECT 'dbr.report', 'sp_DBR_pl_child', 'inAccountName=[account]';
SELECT
b.ten_ta AS account,
b.month AS Month,
3 AS 'GA[ty_ga]',
b.no2024 AS 'Period[ty]',
b.no2023 AS 'Year before[ly]',
(b.no2024 - b.no2023) / b.no2023 * 100 AS 'Chg%[chg]',
b.row_class AS 'rowclass'
FROM release..baocao b
WHERE b.month != NULL
order by b.stt;
END
go