This is a migrated thread and some comments may be shown as answers.

Set bindings to two separate datasets

2 Answers 155 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Rocio
Top achievements
Rank 1
Rocio asked on 20 Jun 2016, 05:48 PM

Thank you in advance for any feedback!

I am passing a datasource that contains two datasets. On my report under Bindings on the initial report I am using the following expression to set up the datasource of the table =ReportItem.DataObject.RawData.GetValue("states",true), this recognizes dataset(0) without any problem.  Now I need to set another table to dataset(1) =ReportItem.DataObject.RawData.GetValue("snapshotObj",true), but this is not being recognized, so I am thinking that I my code is not looking at dataset(1).  How can I do this?

 

Thank you,

Rocio

2 Answers, 1 is accepted

Sort by
0
Rocio
Top achievements
Rank 1
answered on 21 Jun 2016, 02:52 PM
Please find attached an example of the data trying to be passed to two different tables.  table Process takes the value from b(0) dataset; and I am able to use ReportItem.DataObject.RawData.GetStringValue("xx") to obtain the data. Now I am trying to set table Attachments with b(1) which I do not know how to do it.  And, ReportItem.DataObject.RawData.GetStringValue("xx") not longer works to get the data.
0
Nasko
Telerik team
answered on 23 Jun 2016, 10:51 AM
Hello Rocio,

The recommended approach to work with datasets is to use the ObjectDataSource Component. The How Bind to a DataSet help article goes into further detail on this scenario.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Rocio
Top achievements
Rank 1
Answers by
Rocio
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or