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

Two Dataset to Two Tables

1 Answer 109 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 21 Jun 2016, 03:58 PM

Requirements

Telerik Product and Version

Telerik Report Desinger 2016

Supported Browsers and Platforms

IE, Motzilla

Components/Widgets used (JS frameworks, etc.)

.NET Framework 4

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?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Jun 2016, 01:51 PM
Hi Rocio,

Your question was moved from Code Library posts into public forums. If it is an emergency, please submit a support ticket through the support ticketing system  - http://www.telerik.com/account/support-tickets.aspx.


The attached demo project is built based on the provided information, where bindings work as expected. Please check the names of the DataSet objects you provide. Also run the report in a  report viewer control in order to debug the custom code retrieving data objects. 
The project uses Telerik Reporting R2 2016 SP1 v10.1.16.615. The version can be changed by running the Upgrade Wizard.

On a side note, creating a data model exposing the relations between data objects will be helpful to reduce the number of data source components, and to use data-binding approaches like How to Databind to Collection Properties and Use DataObject as a datasource for nested data items (Table, List, Crosstab, Graph).

Regards,
Stef
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
Stef
Telerik team
Share this question
or