We are facing an issue - we cant hide group header band when the group have no PROPER value (our custom logic when records have no salary data).
Our custom logic use the following code to hide rows with employees that didn't get payment yet, but records' row exists & comes from db.
Code: Select all
dataBand.Conditions.Add(new StiCondition
{
Item = StiFilterItem.Expression,
Expression = cond, //comment - smth like - (Data.CP4 == 0 || Data.CP4 == -9999999) && (Data.CP5 == 0 || Data.CP5 == -9999999)
Enabled = false
});
Code: Select all
var departmentGroupFooterBand = report.GetComponentByName("DepartmentGroupFooterBand") as StiContainer;
//removing footer with empty data rows which has empty additional column
if (departmentGroupFooterBand != null)
{
departmentGroupFooterBand.Conditions.Add(new StiCondition
{
Item = StiFilterItem.Expression,
Expression = $"{valueRowsVar} == 0",
Enabled = false
});
}
One thing we noted that if we put a variable text field in header to see the numbers of rows in grouping it works okay (it shows rows in corresponding group). Image attached,
Can you please suggest what we can do about it ?
Your truthful client,
Iskandar A