Showing posts with label projects. Show all posts
Showing posts with label projects. Show all posts

Wednesday, March 7, 2012

Report Builder

OK so I've developed quite a few reports using report server projects. Now I'd like to see what is available to the end-user after I, as a developer, am sick to tears of making and customizing reports. So I went to Report Builder.

I open Report Builder and see the list of my five entities. Then when I drag and drop a field from one of the entities to the report designer, ALL of the four other entities DISAPPEAR!

Can you not design a report in Report Builder using fields from multiple entities? The design of our databases have much to be desired, so that would make using Report Builder impossible...

Am I missing something here?

Yes, sure you can, if you previously defined the entities and relationship accordingly on either the database or the dsv laterone you should see the right relationships in the report model view. Did you have a look on the sample project with the Adventureworks database ?

Jens K. Suessmeyer.

http://www.sqlserver2005.de

|||

I must still be missing something (most likely in the setup of the report model).

I'm not sure how to define the entities and relationships properly so that I can drag and drop fields from multiple entities. When I drop one of the fields, all of the other entities (except for the one that I grabbed the field from) disappear.

It seems that I haven't set up the relationships at all...? How do I do this?

Wait a minute, I think I see it.

I have to set the relationships in the view.

|||

Ok, I defined the relationships between the tables in the view. I build and run the report model project.

Then when I run report builder and drag and drop a field, all of the other entities still disappear. When I delete the field, they all come back. Why is this?

|||

Report Builder operates with Report Model - this is semantic model that describes your database in terms of entities, attributes and relationships between entities. In short, an entity usually represents a table, entity attributes are table columns (or expressions that include columns). Database relationships are represented as roles on entities (db relship is visible as two roles in semantic model). For example you may have two entities: Customers and Orders. Each customer may have multiple orders, each order may have one customer. In your database, when you want to ask question about customers and orders, you would join the two tables thus employing Customer-Order relship. In semantic model you will see two entities instead of tables and each entity will have a role that points to another entity (Customer entity will have role "Customer Orders" and Order entity will have role "Customer").

Now when you open report builder, initially you will see all entities. When you put one entity on the surface you start building your question (or report) in the context of this entity. So at this point the flat list of entities disappears and you see your base entity at the root. You also see all attributes of that entity and all roles going from that entity. Now if you want to reach for some attribute in another entity you will need to navigate thru roles (clicking on them) to the desired entity.

When you build (generate) your semantic model, Model Designer will create entities for tables that have primary keys. Model Designer will also autogenerate roles for relationships based on PK-FK constraints. If your tables do not have primary keys, foreign keys you can always add them in Model Designer prior to generating the model.

Saturday, February 25, 2012

Report and other controls not rendered

After resolving all the installation and configuration related issues, I was able to deploy a couple of projects on my report server. I can see alll folders and reports listed inside the folders from http://<servername>/reports . All works fine except when I run a report, the http://<servername>/Reports/Pages/Report.aspx page does not render report.

This page displays View, Properties, History Subscriptions etc, menu items on the top section of the page. It also displays Home, My Subscriptions, Site Settings, Help etc. links on top right corner of the page. I can also see the bar that has "New subscription" button. But the problem starts from the section below that. It does NOT display the Report navigation bottons (like First page button, Next Page button, previous page button, Last page button, print button etc.) Appears that the icons images for these bottons are missing. And above all, the page does not render report.

IE browser status indicate the following error:

error:'HoevrImagectl161_ctl01_ctl01_ctl06_ctl01' is null or not an object.

The report renders fine via http://<servername>/ReportServer/Pages/ReportViewer.aspx

I may not have explained the problem well here however, if you are interested, I can email you the screenshot of Report.aspx to help you understand the problem.

Any help is appreciated!!!

It seems you are using MOSS. Are you you have installed Sharepoint addon for Reporting Services found at http://www.microsoft.com/downloads/details.aspx?familyid=1E53F882-0C16-4847-B331-132274AE8C84&displaylang=en

If you have. Have tou configured the reporting services in central admin - Application Settings?

If you have make sure in VS2005 you have deployed to the correct MOSS site collection and correct MOSS library and that is where you view your reports.

In MOSS the reports should render using RSViewerPage.aspx

Thanks
|||

Thanks for reply.

No. I am not running MOSS on this machine. Any other thought?

|||

I just uploaded the screenprint at :

http://i205.photobucket.com/albums/bb8/spnet/ReportSerrverProblem.jpg

P.s. : I have deliberately masked out the server name and parameter value.

|||

Pls help!! Any ideas?

|||

Woohhaaa!!!!!!!!! Figured that out.

It was a javascript error - "RSController.

Make sure your Reports website has the following seeting:

Right click "Reports" website on IIS manager

Go to Properties

Click on Virtual Directory tab

Click on Configuration button

In "wildcard Application Maps.." section, you should have the latest version of aspnet_isapi.dll file listed. If not listed, insert the file. Usually, the file is located at C:\Windows\Microsft.NET\Framework\<your version folder>\aspnet_isapi.dll

Now, click on "Edit" button. Make sure "Verify that File exixts" checkbox is UNCHECKED.

Click "ok" and exit out of Report properties dialogue box. Your reports should work now without IIS throwing any RSController or PramasCtl, imagehower etc. related errors.

Also visit:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=327473&SiteID=1

thank you all!!

Report and other controls not rendered

After resolving all the installation and configuration related issues, I was able to deploy a couple of projects on my report server. I can see alll folders and reports listed inside the folders from http://<servername>/reports . All works fine except when I run a report, the http://<servername>/Reports/Pages/Report.aspx page does not render report.

This page displays View, Properties, History Subscriptions etc, menu items on the top section of the page. It also displays Home, My Subscriptions, Site Settings, Help etc. links on top right corner of the page. I can also see the bar that has "New subscription" button. But the problem starts from the section below that. It does NOT display the Report navigation bottons (like First page button, Next Page button, previous page button, Last page button, print button etc.) Appears that the icons images for these bottons are missing. And above all, the page does not render report.

IE browser status indicate the following error:

error:'HoevrImagectl161_ctl01_ctl01_ctl06_ctl01' is null or not an object.

The report renders fine via http://<servername>/ReportServer/Pages/ReportViewer.aspx

I may not have explained the problem well here however, if you are interested, I can email you the screenshot of Report.aspx to help you understand the problem.

Any help is appreciated!!!

It seems you are using MOSS. Are you you have installed Sharepoint addon for Reporting Services found at http://www.microsoft.com/downloads/details.aspx?familyid=1E53F882-0C16-4847-B331-132274AE8C84&displaylang=en

If you have. Have tou configured the reporting services in central admin - Application Settings?

If you have make sure in VS2005 you have deployed to the correct MOSS site collection and correct MOSS library and that is where you view your reports.

In MOSS the reports should render using RSViewerPage.aspx

Thanks
|||

Thanks for reply.

No. I am not running MOSS on this machine. Any other thought?

|||

I just uploaded the screenprint at :

http://i205.photobucket.com/albums/bb8/spnet/ReportSerrverProblem.jpg

P.s. : I have deliberately masked out the server name and parameter value.

|||

Pls help!! Any ideas?

|||

Woohhaaa!!!!!!!!! Figured that out.

It was a javascript error - "RSController.

Make sure your Reports website has the following seeting:

Right click "Reports" website on IIS manager

Go to Properties

Click on Virtual Directory tab

Click on Configuration button

In "wildcard Application Maps.." section, you should have the latest version of aspnet_isapi.dll file listed. If not listed, insert the file. Usually, the file is located at C:\Windows\Microsft.NET\Framework\<your version folder>\aspnet_isapi.dll

Now, click on "Edit" button. Make sure "Verify that File exixts" checkbox is UNCHECKED.

Click "ok" and exit out of Report properties dialogue box. Your reports should work now without IIS throwing any RSController or PramasCtl, imagehower etc. related errors.

Also visit:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=327473&SiteID=1

thank you all!!