We help IT Professionals succeed at work.
Get Started

Reporting Services Binding Related Object Fields

666 Views
Last Modified: 2012-05-11
After upgrading my SSRS reports in VS2010, several of the expression fields are now broken.  For instance, using a data set of OrderItem, which contains standard order lines, I can access the fields directly represented by that object (the object structure was built using LINQ).  

However, related data cannot be so easily accessed.  Consider a inventory object contained-in the order line (related-to in the underlying database).  The inventory object is called OrderItemType, and I want to print out the description on each order line.  Sounds easy enough...

Before upgrading the following expression did in fact report the description from the related data:

=Fields!OrderItemType.Value.Description

However, now the "Description" portion is red-lined in the Expression editor, and when I run the report, it shows only "#VALUE" in the description field.

So what gives?  Did something change after the report upgrade that now requires a different syntax?  How can I once again print the description from the related table?
=Fields!OrderItemType.Value.Description

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE