BIRT: how to create multiple line charts dynamically in BIRT report - birt

I have on BIRT report where I need to show testcase id , name in two columns (which I did with dataset), now I need to create line chart for each testcase dynamically. Where as my testcase number is not fixed. So i want to make a script which will create multiple line charts according to date of execution for each test case. first question is it a feasible one? If yes then how to do it?

If I understand you correctly you are wishing to add testcases as new
"series" in chart?
You can add new series inside script, but I'm not sure which phase (action) will be best for it, you'll need to experiment. BUT, this script will be part of your chart, so you won't be able to just access data from the table easily. So to make it possible you will need to make it accessible as a global variable BEFORE chart will start rendering.
Sorry I cannot give you sample solution, but I do not have IDE on this computer, so I cannot check what actions, and what input params we have possible to choose from.

Related

How to loop design in SSRS report

I have a report design that have been used for a while.
Now i want to create multiple pages of the same report looping with different records.
Is there any way to do this, to loop the design..
either looping it how to get the lookup-function to register as a valid function in an expression.
I use two datasets in the report
I started by making one tablix cell and putting the entire design into this one cell, which worked nice, except i have to use one tablix with "Dataset2" and it doesn't allow me to do this because if they are nested, the inner scope has to use the same dataset as the outer scope.
The report designer can't recognize the "lookup" function which i try to put in a expression of this tablix, and using a subreport for such a small task seems like too much.
Any ideas?
Here's a quick screenshot of what I'm working with:
Everything uses dataset1 except that one tablix that needs to be dataset2...
Heres a image of my lookup-function that gives an error:
ok i got this right.
If you want to loop a single page ssrs design put the whole design in a 1x1 tablix with grouping on whatever parameter you like.
If any part of your design use data from another dataset inside of this tablix, you have to use a sub report...
It isn't that much work, but to get the correct parameter in i actually had to make a report data provider and contract + design for the subreport(which just consisted of a single table) which was a pain in the ass. none the less it worked, and all is good.

Text values are not reflected on dashboard on SonarQube

Hello,
trying to use SonarQube 5.1 for custom measures.
Created several custom measures, including int and text values. Assigned them through custom widgets to project and was thinking the data will appear.
Specified values through web service api.
The values for custom measures are not appearing until you start next scan. How we can have data available immediately as meausre has some data?
After scan the data for integer values appear but not for text values. I see measure with text values are assigned for the project but they are not shown for the project. How to make them visible?
Thank you.
This is linked to this Bug : https://jira.sonarsource.com/browse/SONAR-6203

Could a Matrix mimic this Crystal Report structure - SSRS

I'm trying to convert a Crystal Report to SSRS and I'm having trouble with this section of the report.
The first line of the report event information: date, name, recruiter, hours, etc.
And then under the summary, the report should list changes that are considered critical changes to information about the event. Within Crystal Report, these changes are in the Details section and all changes are listed under each event.
I am trying to accomplish the same task within SSRS but I'm having some trouble with the changes summary. The event summary displays for each record of a change. In the screen shot below, you can see that DriveID 682144 had three changes, but for each change, the event summary is displayed/printed. So instead of Evoqua listed once and the three changes made to the event listed underneath, I am getting the summary displayed for each and every change within the report.
I have a row grouping for DriveID since each event has an unique ID. And I also have a Details row group that displays the changes. I've tried adding a grouping on the Details row group, but if I group on SourceDriveID, it will only display one record for each drive. I am joining the two tables on DriveID (Drivemaster.DriveID=CriticalDriveChanges.SourceDriveID)
I think it would work if the Critical Drive Changes view had a unique identifier, but it doesn't so I am trying to work with what I have. Any suggestions on making this work?
If there is anything I need to explain better, please let me know. I've been stuck on this for two days and need to get through it.
Thanks,
Your second group needs to be grouped by the key of the “changes” and not the DriveID. It’s already grouped by the DriveID because of the parent group. Grouping by the same Field again effectively gives you an extra summary row, its showing the first of the changes.
This can be done by customized summary. You can have a global variable for the summary, and use expression to do the calculation. Some tricks are needed for this kind of report.

Crystal Reports Setting Global Subreport Variable

I am trying to set a couple of global variables in a subreport so that it pulls and stores the data I need in each.
Say I go into the formula workshop and create a new formula. Right now I have
Global numbervar name:= ;
I have a single table with multiple fields. I have one field named {table.order} and another named {table.amount}. Both of these are numbers. How do I assign to this variable the amount in the associated amount field when the order is -1? I'm really not familiar with crystal syntax at all.
After this, where would I need to drag and drop this formula in the report to pick up this data or is simply creating the formula in the formula explorer enough? If it needs to be physically dragged into the report, will anything show up or will I need to suppress it so it is not visible and if that is the case, will it still work suppressed?
Thanks for any help you can give.
Are you trying to pass the value in this variable back to the main report? If so, you'll need to make this a Shared Numbervar, not a Global Numbervar.
To answer your question; create this formula:
global numbervar name;
if {table.order} = -1 then name := {table.amount}
...and drop it into your subreport's details section. Note that any formulas, summaries, running totals, SQL expressions, etc. that you create but are not placed in the actual report won't be run. However, after placing it in the report, it will display. To prevent this, right click on the field, go to the 'Common' tab, and then check 'Suppress'. The formula will still work when suppressed.
One other thing to keep in mind is that if your subreport(s) contain more than one row of data, the variable will be overwritten for each.

Using parameters in reports for VIsual Studio 2008

This is my first attempt to create a Visual Studio 2008 report using parameters. I have created the dataset and the report. If I run it with a hard-coded filter on a column the report runs fine. When I change the filter to '?' I keep getting this error:
No overload for method 'Fill' takes '1' argument
Obviously I am missing some way to connect the parameter on the dataset to a report parameter. I have defined a report parameter using the Report/Report Parameter screen. But how does that report parameter get tied to the dataset table parameter? Is there a special naming convention for the parameter?
I have Googled this a half dozen times and read the msdn documentation but the examples all seem to use a different approach (like creating a SQL query rather then a table based dataset) or entering the parameter name as "=Parameters!name.value" but I can't figure out where to do that. One msdn example suggestted I needed to create some C# code using a SetParameters() method to make the connection. Is that how it is done?
If anyone can recommend a good walk-through I'd appreciate it.
Edit:
After more reading it appears I don't need report parameters at all. I am simply trying to add a parameter to the database query. So I would create a text box on the form, get the user's input, then apply that parameter programmatically to the fill() argument list. The report parameter on the other hand is an ad-hoc value generally entered by a user that you want to appear on the report. But there is no relationship between report parameters and query/dataset parameters. Is that correct?
My last assumption appears to be correct. After 30 years in the industry my bias is to assume a report parameter actually filters the SQL data using the given parameter. This is not the case with .rdlc files used by Report Viewer. These report parameters have nothing to do with fetching data. Sounds like this was a design decision on Microsoft's part to completely separate the display of data from the fetching of data, hence, Report Viewer has no knowledge of how data may be fetched. Best way for me to conceptualize this dichotomy is to think of Report Parameters more as Report Labels, quite distinct from the dataset query parameters.

Resources