Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6031105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:08:05+00:00 2026-05-23T05:08:05+00:00

I am creating some reports using object datasources. I have the following scenario: in

  • 0

I am creating some reports using object datasources.

I have the following scenario:

in my software the user can create a list of products specifying a code, the product name, the price and the vat rate (this last two attributes will be used as suggestions when the user will place the product inside an order).

When a user creates an order he can place products within it by specifying for each product the quantity and he can also override the suggested price and the vat rate.

So basically i have two models to represent the products:

  • ProductModel (used to define product name, product code and the default suggestion for price and vat rate)
  • OrderProductModel (used to place products within an order, specify the quantity and override the default product suggestion for price and vat number)

ProductModel:

  • id
  • code
  • name
  • price
  • vat

OrderProductModel:

  • id
  • order (reference to an OrderModel object)
  • product (reference to a ProductModel to read the code and the name and the suggestions for price and vat rate)
  • quantity
  • price
  • vat

Now what I need to do with my report is to fill a table of OrderProduct objects and show the following informations for each product:

  • code (orderProduct.product.code)
  • name (orderProduct.product.name)
  • price (orderProduct.price)
  • quantity (orderProduct.quantity)

(suppose orderProduct is an instance of OrderProductModel)

Now the question is “how to define the report rule to access to code and name?“…

I am using visual studio 2010 and by reading here: http://www.gotreportviewer.com/objectdatasources/index.html
they says that the syntax: =Fields!Object.Value.attribute no longer works…

I tought i could solve the problem by adding to the OrderProductModel some properties that will read the properties of the related ProductModel instance.
But i’m sure there are better way that does not break the model…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:08:05+00:00Added an answer on May 23, 2026 at 5:08 am

    Just an update to this, its now fixed in SP1. The requirement to get it to work is to make sure ALL classes used in properties of the datasource are serializable.

    more info at:

    http://wraithnath.blogspot.com/2011/04/reportviewer-object-datasource-nested.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created some lovely reports using SQL Server Business Intelligence Development creating a
I am creating reports using the Microsoft ReportViewer control. I am encountering some formatting
I am creating a desktop app that will create some reports. I want to
Using BIDS 2005 to create rdl reports. I want to have the report aggregate
I am working on creating some personalized reports using Latex and Sweave. I need
We are using Eclipse (Galileo) to create some custom BIRT reports (version 2.5) for
I am using Reportlab to create some graphs in my PDF reports. I was
I'm using ReportViewer to create some reports to my web application and I want
I am creating some doubly linked list of type Double and no matter how
I'm getting an 'System.OutOfMemoryException' when trying to generate some HTML reports. How can I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.