﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » A quick question about XtraReports...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 25 Apr 2026 07:32:27 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8443.aspx</link><description>Thanks for the input all.&amp;nbsp; While working through the new Master Detail reports, I talked with our FoxPro developer and he pointed down an easy route using the DataSource_RowChanged event on the report.&lt;/P&gt;&lt;P&gt;Using this even, I can populate the subsequent Detail Report's datasource and Fill with the proper records.&amp;nbsp; This can cascade down as many times as I need, as I have Master-Detail-Detail-Detail-Detail reports to work on.&lt;/P&gt;&lt;P&gt;Using this way, I simply use my BusinessBindingSources to populate from and I don't require any typed DataSets.&lt;/P&gt;&lt;P&gt;Thanks again all.&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Mon, 23 Apr 2007 16:05:24 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8238.aspx</link><description>We are attempting to use DevExpress's XtraReports for our reporting.&amp;nbsp; Simple tablelistings work great using a BusinessBindingSource. Drop that datasource onto the Report designer, and then before I call showpreviewdialog, I do a simple CopyDataFrom my local BO to my Report's DataSource Business Object.&amp;nbsp; Works fantastic.&amp;nbsp; One question that I do have, is that we have many many Master Detail reports to author for the users.&amp;nbsp; I can do this using DataSet's, but it completely bypasses the Business Object, and the data I already have in my Business Objects.&lt;/P&gt;&lt;P&gt;I tried things like accessing the Report's DataSource's DataTables, and copying data into them, but the Data source always just goes and grabs its own data from the SqlServer.&lt;/P&gt;&lt;P&gt;Has anyone, or is anyone using XtraReports for Master/Detail reporting and managed to use the Strataframe Business Object's DataTables to populate their report from?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Mon, 23 Apr 2007 16:05:24 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8424.aspx</link><description>Wow.....subconsciously I thought I had come up with this idea myself.....but reading the above posts I see where I got it.....oops!:D&lt;br&gt;
&lt;br&gt;
Anyway check my post here for a detailed explantion of Ben's solution&lt;br&gt;
[url]http://forum.strataframe.net/Topic8417-6-1.aspx[/url]&lt;br&gt;
&lt;br&gt;
Jerome</description><pubDate>Mon, 23 Apr 2007 09:24:03 GMT</pubDate><dc:creator>Jerome Barnett</dc:creator></item><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8322.aspx</link><description>Thanks Ivan.&amp;nbsp; I'll be giving it a try :-)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Thu, 19 Apr 2007 15:46:12 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8245.aspx</link><description>Hi Robin. &lt;P&gt;I've been trying XtraReports, and this is how I accomplished a Master-Detail report:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;[codesnippet]&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loYourParentTable &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; boYourParentTable()&lt;/P&gt;&lt;P&gt;loYourParentTable.FillDataTable(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Select * from YourParentTable"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loYourChildTable &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; boYourChildTable()&lt;/P&gt;&lt;P&gt;loYourChildTable.FillDataTable(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Select * from YourChildTable"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; ds &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; Data.DataSet&lt;/P&gt;&lt;P&gt;ds.Tables.Add(loYourParentTable.CurrentDataTable)&lt;/P&gt;&lt;P&gt;ds.Tables.Add(loYourChildTable.CurrentDataTable)&lt;/P&gt;&lt;P&gt;ds.Relations.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"ListRelation"&lt;/FONT&gt;&lt;FONT size=2&gt;, ds.Tables(0).Columns(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"parent_pk"&lt;/FONT&gt;&lt;FONT size=2&gt;), ds.Tables(1).Columns(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"child_parent_pk"&lt;/FONT&gt;&lt;FONT size=2&gt;), &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;False&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;DataSource = ds.Tables(0)&lt;/P&gt;&lt;P&gt;DataMember = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"YourParentTable"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;DetailReport.DataSource = ds.Tables(0)&lt;/P&gt;&lt;P&gt;DetailReport.DataMember = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"ListRelation"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.lblParentCode.DataBindings.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Text"&lt;/FONT&gt;&lt;FONT size=2&gt;, ds.Tables(0), &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"parent_Code"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.lblParentName.DataBindings.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Text"&lt;/FONT&gt;&lt;FONT size=2&gt;, ds.Tables(0), &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"parent_Name"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.lblChildCode.DataBindings.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Text"&lt;/FONT&gt;&lt;FONT size=2&gt;, ds, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"ListRelation.child_Code"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.lblChildName.DataBindings.Add(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Text"&lt;/FONT&gt;&lt;FONT size=2&gt;, ds, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"ListRelation.child_Name"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;FONT color=#0000ff&gt;[/codesnippet]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Just a sample, of course.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Hope it helps.&lt;/FONT&gt;</description><pubDate>Wed, 18 Apr 2007 16:39:52 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8244.aspx</link><description>Thanks for the reply Ben.&amp;nbsp; I've tried setting each data table from the Datasource to my Business Object's data table by&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;Ctype(DexExReport.DataSource, DexExDataSet).Tables(0) = My.BusinessObject.CurrentView.toTable&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;But these data tables are read only.&amp;nbsp; So I try to reference the tables by&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;Dim loDT1 as DataTable = Ctype(DevExReport.DataSource, DevExDataSet).Tables(0)&lt;/P&gt;&lt;P&gt;loDT1 = My.BusinessObject.CurrentView.totable.Copy&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;And this gets data into the DataTable on the Report, but it still goes out and get data from SQL Server.&amp;nbsp; If I remove its Select Statement from the TableAdapter in the DataSet, it bombs out completely. &lt;/P&gt;&lt;P&gt;I also tried removing the DataTables, relations first, then adding my BO Tables to it, and the relation back in, but I think I was way over my head and that point and when it didn't work, I gave up.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Wed, 18 Apr 2007 16:20:59 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: A quick question about XtraReports...</title><link>http://forum.strataframe.net/FindPost8240.aspx</link><description>Have you tried to add the BusinessObjects' CurrentDataTables to a DataSet and use that as the data source for the report?&lt;/P&gt;&lt;P&gt;You could also use the BusinessObject.CurrentView.ToTable() method get DataTable references that you can add to a DataSet and then use that DS as your DataSource for the report; this way, you could use the data that's already in your business object.</description><pubDate>Wed, 18 Apr 2007 16:07:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>