Passing Parameters to a Scripted DataSet;or any DataSet for that matter
The first time I heard the phrase "parameter binding to a data set" cold chills shot down my spine. I was thrust right back into my first OO Programming Class, where concepts like "pointers", "polymorphism" and others were thrown around like we were all just born to understand these abstract descriptions. Why not call it something simpler... like Parameter "place-holder" or "access point" ? Using the word "parameter binding" just makes it sound more complicated than it has to be. ...Maybe that's the idea? We are talking about nerdy techie types after all.
That said, I will try to make sure I don't needlessly try to impress with my cryptic verbage. So, here it goes. If you are both new to BIRT and have to use a scripted source the way IBM’s Maximo implementations do, you might not know where to begin right off the bat. I will break it down into smaller pieces, so that it is easier to follow and less complicated.
Start with a report that is easy for you to understand from a conceptual perspective if nothing else. In this case person_details.rptdesign should do just fine. What you see here is the 7.5 Maximo Server. In the spirit of keeping it easy, the report chosen has a single user prompt, PersonID.
Once you have a parameter you have increased the usability and functionality of the report significantly. But the most effective, or rather most efficient one is utilized in this report, it is applied at each DataSet level. Let’s take a look at a portion of the open event of the first DataSet, assetdetail:
The best way to tackle handling anything new, and in particular anything new with BIRT or even troubleshooting complicated reports or queries is to break the system down into simpler and simpler terms until you begin with something which is easy for you to understand. This report is a good example of creating a highly functional report using small manageable pieces. Using a default parameter values you not only makes unit testing quicker for you, you also have the ability to run each DataSet individually to troubleshoot any potential scripting issues.
Like I often mention to my clients, and any of my BIRT classes, if you are confused by the BIRT report development process, you are not breaking it down into it's three simple parts....
- Formatting & Features
If you would like to take a class from us, or would like to get some help with your BIRT Project(s), please visit our Website or give us a call (888)234-DATA.