Relations - Flex Code

Stimulsoft Reports.Flex discussion
Locked
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Relations - Flex Code

Post by Jean Carlos »

In the .mrt have saved a relationship that appears in the AIR, but when I view this relationship disappears in the browser.

When I run the following command
trace (report.dictionary.relations.length);
the number of relation appear.

I am running the reports by the Flex code below:

report.loadReportFromString (reportString);
report.regDataXML ("dataXML","dataXML", xml);
report.dictionary.synchronize ();
report.show();

Is there any command that I run so that relations appear through the code in the browser?

Thanks
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Relations - Flex Code

Post by Jean Carlos »

I found the problem.

No need to synchronize every time, just when you have a new dataSource, am I correct?

I removed the line: report.dictionary.synchronize (), and showed the relations properly.

Thanks and congratulations for the initiative.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Relations - Flex Code

Post by Andrew »

Great!

Have a nice day!
Thank you.
Locked