Set bindings to two separate datasets

3 posts, 0 answers
  1. Rocio
    Rocio avatar
    28 posts
    Member since:
    Dec 2015

    Posted 20 Jun 2016 Link to this post

    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,


  2. Rocio
    Rocio avatar
    28 posts
    Member since:
    Dec 2015

    Posted 21 Jun 2016 Link to this post

    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.
  3. Nasko
    Nasko avatar
    1071 posts

    Posted 23 Jun 2016 Link to this post

    Hello Rocio,

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

    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
Back to Top