Page 1 of 1

Relations - Flex Code

Posted: Thu Jan 27, 2011 5:41 am
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

Relations - Flex Code

Posted: Thu Jan 27, 2011 6:10 am
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.

Relations - Flex Code

Posted: Thu Jan 27, 2011 6:44 am
by Andrew
Great!

Have a nice day!
Thank you.