LoadEditableFields not populating correct report fields.

Stimulsoft Reports.NET discussion
Post Reply
bfransen
Posts: 1
Joined: Tue May 12, 2009 4:58 pm
Location: Canada

LoadEditableFields not populating correct report fields.

Post by bfransen »

Hi,

In my report, I have a databand that contains an editable text field.

We call report.SaveEditableFields to extract the user entered content.

We then use report.LoadEditableFields at a later time to populate the report fields with content.

The problem I have is that when the databand repeats the editable text field on the same page of the report, the SaveEditableFields method creates XML that looks like this:



Text14
0
1
adfasdfasdf


Text14
0
3
22

...

When I use LoadEditableFields to populate the report, Item1 gets populated into the first editable field and Item2 gets populated into the third editable field. The second editable field is not populated. This pattern continues for all editable fields that are repeated on a page, so the effect is only fields with an odd Position are populated.

I notice the Position property in the XML above is missing position 2. This is true for the entire XML; all of the even positions are missing. If I manually edit the XML to have the missing position numbers, the report is populated correctly.

Does anyone know why my editable fields are written to XML this way (missing even position numbers)? Is there something else I need to set up to make sure when I SaveEditableFields the XML will be such that LoadEditableFields will populate the report correctly?

Thank you for your help,

Ben
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

LoadEditableFields not populating correct report fields.

Post by Andrew »

Could you please send your report for analysis and reproducing the issue?

Thank you.
Post Reply