Report Viewer and Business Objects -BO not showing up as data sources

Report Viewer and Business Objects -BO not showing up as data sources

Old forum URL: forums.lhotka.net/forums/t/3513.aspx


Lyndon posted on Tuesday, September 11, 2007

Hi,

It looks like this has been asked before, but I dont seem to find any thing that works from the threads I have reviewed so far.

I am trying to create reports in Microsofts built in report viewer where they are  based on objectdatasources (for me obviously on business objects in my class library).

Most of the literature indicates that objectdatasources will see anything in the app_code folder (ie if you define your class for your business object there). But what happens if you have them (as CSLA framework shows) in a class library?

When I use the objectdatasource it seems to find my business objects but not as 'data' objects. So when it propts you in the wizard to identify what method to select from the business object, a whole list of  methods get listed that have nothing to do with the ones i explicitly created. As an example if I was looking for a method for 'select' it would be ProjectList.GetProjectList- but this isnt listed among them.

If I follow the walkthrough, it seems they would have you create a class in the appcode folder and then everything is found. But Im not sure why I would want to do that if they are already defined in the libary. Can a library be put into the appcode folder?

These are probably dumb questions. Any answers and/or code examples would be appreciated. Failing that, I would likely have to create server side reports and I would prefer not to do that.

Im running VS2005 SP1 and SQLServer 2005

Thanks

Lyndon replied on Thursday, September 13, 2007

sorry never mind= dumb error on my part - it  now works

Copyright (c) Marimer LLC