Page 1 of 1

Indexed Properties in Page Header

Posted: Tue Feb 10, 2009 5:56 pm
by dsdobbins
Hello-

I need to be able to add data values to the Page Header for each page of my report where the values are different for each page.

Ideally I'd like to have a text field that references an indexed property of a business object data source (or a variable). Something like:

Code: Select all

{MyData.MyField[PageNumber]}
I've tried but can't seem to make it work. Is this possible? Is there a better way?

Thanks,
David

Indexed Properties in Page Header

Posted: Thu Feb 12, 2009 5:57 am
by Edward
Hi David,

Please add an object type variable in the Dictionary. You can use it for work with arrays. In case if you have MyVariable variable, then the expression might be the following:

Code: Select all

((string[])MyVariable)[IndexOfThePageVariable]
IndexOfThePageVariable must be a variable in the Dictionary. You can count the variable in PageRendering event.

Thank you.