Showing posts with label items. Show all posts
Showing posts with label items. Show all posts

Thursday, March 29, 2012

Can I insert data from a report with RS2005?

Hi All,
Here's my problem:
I need to pull some items into a table report. I have the items grouped
by a key field (AlertID) and a detail the the user can drilldown to for
each item. I'm having trouble with the linking, I try to link this
report to another report that takes the parameters and runs a stored
proc to insert the data for the item (Alert History). Each report works
fine on by itself, but I can't get them to link in anyway, I've tried
Jump to Report and Jump to URL.
Any suggestions would be greatly appreciated.
Thanks,
Damien Johnston
P.S. I also need know if there is a writable textbox and a checkbox
control available in RS?In general this is a bad idea (trying to write data). Some issues you would
have to deal with are: multi-user, cleaning up data when done, etc.
Given what you say I don't see why you need to do this. If your stored
procedure can figure out the data to insert then why can't you just have a
stored procedure returning the appropriate data to the report. Instead of
drill down you should be using drill through. Drill through is much more
efficient. Have a field that you highlight and color blue. Users understand
that means to click on it. Then use jump to report to call up the report
with the detail information.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"dij0674" <dij0674@.hotmail.com> wrote in message
news:1161026120.846569.113660@.e3g2000cwe.googlegroups.com...
> Hi All,
> Here's my problem:
> I need to pull some items into a table report. I have the items grouped
> by a key field (AlertID) and a detail the the user can drilldown to for
> each item. I'm having trouble with the linking, I try to link this
> report to another report that takes the parameters and runs a stored
> proc to insert the data for the item (Alert History). Each report works
> fine on by itself, but I can't get them to link in anyway, I've tried
> Jump to Report and Jump to URL.
> Any suggestions would be greatly appreciated.
> Thanks,
> Damien Johnston
> P.S. I also need know if there is a writable textbox and a checkbox
> control available in RS?
>|||Bruce--Thanks for the reply, I'll look at alternative methods to solve
the problem.
Here are the details of what's required and what I have in place:
I have a database monitoring app the alerts when an event occurs (like
profiler)
I have specific events that need to be trapped and a historical record
needs to be kept of the original event along with any updates to an
event history field. These events are stored in a SQL DB
I need to be able to allow certain users to access this via some sort
of form/webpage, and update the events they are responsible for with
documentation, such as an email or an uploaded file.
I need to be able have a single parent to many children relationship
for the events. For example, event 1 can be chosen as the parent for
events 2,3,4,5,6 and event 1's event history will become the history
of the child events.
I sure I can get the SQL side of things, stored procs and table design.
But I'm struggling with a front end for my users; I was hoping that
RS had the ability to function in this way.
Any suggestions would be greatly appreciated.
Thanks Again,
Damien Johnston
Bruce L-C [MVP] wrote:
> In general this is a bad idea (trying to write data). Some issues you would
> have to deal with are: multi-user, cleaning up data when done, etc.
> Given what you say I don't see why you need to do this. If your stored
> procedure can figure out the data to insert then why can't you just have a
> stored procedure returning the appropriate data to the report. Instead of
> drill down you should be using drill through. Drill through is much more
> efficient. Have a field that you highlight and color blue. Users understand
> that means to click on it. Then use jump to report to call up the report
> with the detail information.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "dij0674" <dij0674@.hotmail.com> wrote in message
> news:1161026120.846569.113660@.e3g2000cwe.googlegroups.com...
> > Hi All,
> >
> > Here's my problem:
> > I need to pull some items into a table report. I have the items grouped
> > by a key field (AlertID) and a detail the the user can drilldown to for
> > each item. I'm having trouble with the linking, I try to link this
> > report to another report that takes the parameters and runs a stored
> > proc to insert the data for the item (Alert History). Each report works
> > fine on by itself, but I can't get them to link in anyway, I've tried
> > Jump to Report and Jump to URL.
> >
> > Any suggestions would be greatly appreciated.
> >
> > Thanks,
> >
> > Damien Johnston
> >
> > P.S. I also need know if there is a writable textbox and a checkbox
> > control available in RS?
> >

Wednesday, March 7, 2012

can anything other than an image be used in custom toolbox items

I have developed a renderer that renders the xml to paint a rectangle with textboxes in all the right places based on the data retrieved off the database. When i render the a complete report to the reportviewer i have no problem.

I need however to render the rectangle into a custom report item for reusability and different scenarios. This just seem to be impossible since it seems like I cant use anything other than an imagemap to render custom report items. Is this true?

To make sure you understand....in other words....

Is there a way to develop a Microsoft.ReportingServices.ReportRendering.IRenderingExtension that renders the required xml like rectangles/textboxes etc. and then migrate this to a custom toolbox item. It just seems like this should be a very easy thing to do and something regularly needed. For example when you want to use textboxes in certain positions within a rectangle to draw a organisational chart.

CRIs can output only images.

|||

If that is the case which i take as unnessary and very easy to fix on Micsoft's part....I have a follow up question:

Can one in any way put a custom assembly in some container like a rectangle instead of just a textbox to have it render your custom xml into a report. I have tried this in many ways and it does not seem to be an option?

and if that answer is also no.....I have a follow-up question:

How do one change the RDL of a report to reference a custom assembly that renders XML as part of the report RDL?

and if that is not possible...am i missing something here....is there anyway in which i can on runtime decide where to represent my data?

My problem is a very simple one, i have written a report rdl generator that generates a pedigree of a horse where each horse in the hierarchichal structure has a Name, birth, color etc, and a picture. If the only way I can do this is the way I am doing it I have to write every part of the report everytime I want the pedigree to appear in a different layout instead of being able too user the fantastic report designer.

A similar issue should exist in project management with pert and cpm/ workflow/ flowcharts/human resouce management etc. etc. etc.

Any direction will be appreciated...

|||

Can one in any way put a custom assembly in some container like a rectangle instead of just a textbox to have it render your custom xml into a report.

Not sure what you mean by "a custom assembly in some container" means but I wonder if the following approach will work for you since you've mentioned that you can programatically generate the report definition.

1. The report will have a single dataset with a single row and as many columns as the number of horses. Each column according to its place in the hierarchy in an ever-increasing order from top to bottom and left to right, e.g.; 1Name, 1Color, 1Photo, 2Name, 2Color.

2. You generate a free-form report programatically by walking the hierarchy and binding each textbox to its corresponding field.

It looks like you have considered a similar aproach, haven't you? Granted, you won't be able to use the Report Designer. As SSRS involves, it will undoubtedly offer more runtime flexibility but for now you cannot change the report definition at runtime.

If you can wait, another option with SSRS 2008 could be a pert chart. If you can't wait, Dundas offers this chart now.

|||

Teo, thank you for your time and effort with this. Well yes i know i can do it that way but the problem with that is then you limit yourself to a fixed format. You can not change the number of levels or even the specific data to be included on the fly. I now have decided that I wil just have to use my own renderer and forget about the designer.

You see i have developed this recursive sql procedure and recursive report painter that will do the whole thing based on the property settings including the size of the page, the number of levels and what data to include and what not. I was just hoping I could put it all into a custom item to make life easier when you want to print a 44x60in poster versus a 8x10 or 15 genearations versus 5.

I must say i can think of no logical reason why Microsoft cant allow the CRI to render any type of report item. They already render all the types and it does not make sense that they would limit developers to only imagetypes.

Note: With "a custom assembly in some container" i meant that currently you can write a custom asembly which you reference in a textbox to return a value. on the same logic one should have been able to reference a custom asssembly from a Rectangle and have the custom assembly return the reportitemscontained inside the rectangle. There are a few ways in which it can be implemented fairly easy.