Link to home
Start Free TrialLog in
Avatar of EdwardAF
EdwardAFFlag for United States of America

asked on

Reporting Services Binding Related Object Fields

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

Avatar of ksparky
ksparky
Flag of United States of America image

Visual Studio 2010 does not inherently support SSRS projects.  SSRS is based on the SQL Server version and SQL 2008 R2 is the latest.  There is no SQL 2010, therefore, there is no SSRS in VS 2010.
SOLUTION
Avatar of EdwardAF
EdwardAF
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EdwardAF

ASKER

I found the workaround on another forum.