Posted 21 June 2019, 12:48 am EST
Hi,
I am using .net Active Reports 12.3 and binding the data source to a List that is populated in the Start() method of the script.
I am noticing that if I bind a control in the report footer to one of the members of the objects within the list, the field’s value is null unless that field was already accessed in the detail or page header sections. Simply iterating over the field collection and accessing the value of each field seems to be enough to have that field bindable in the Report Footer.
public void Detail_Format()
{
foreach (Field f in rpt.Fields)
{
object a = f.Value;
}
}
I’ve also solved it in another report by setting invisible controls in the page header that are bound to those fields in the report footer.
I’m wondering if this is supposed to happen in active reports and if so, is there a better solution than iterating over the fields or setting invisible controls.
Thanks,
Ben