parameterized reports

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

parameterized reports

Post by alkhaef » Thu Nov 18, 2010 8:43 pm

I've built some user queries that we're manually changing "inputs" on to get the info we want (for example, dates, providers, etc).

Is there any way to parameterize reports?

Thanks,
Al
Al
Help! I've OD'ed on OD! :)

User avatar
jordansparks
Site Admin
Posts: 5755
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: parameterized reports

Post by jordansparks » Fri Nov 19, 2010 6:57 pm

We've tried and tried to build that framework. Report frameworks are tough. Our last attempt was RDL, which you can find in our manual. You might also try a 3rd party tool, like Crystal Reports or Access. We will try again, of course. Just not right now.
Jordan Sparks, DMD
http://www.opendental.com

alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

Re: parameterized reports

Post by alkhaef » Fri Nov 19, 2010 10:58 pm

Well, I looked at the documentation and I was afraid you were gonna reply with the term RDL :lol: ... I'd looked at the docs, and I got a bit overwhelmed because I'm not familiar with it. Plus, figuring out how to define a query in some intermediate language looked a bit heavy for the simple usage I was looking for...

I was thinking something more like a simple tokenization so I could do something like allowing the following query:

Code: Select all

select * from procedure where procdate='$1';
...And then be able to define $1 upon RUNNING the report rather than upon defining the report...

Granted, this simple approach has its shortcomings (...ignoring input validation, usefulness only to advanced users that can cook up a query, choosing a proper string that wouldn't cause false-positive parameters...), but I think it's worth it...

Seeing as how this started off as a support request and kinda turned into a feature request... I guess I'll go my usual route and ask for a hook in the meantime. I don't have the code in front of me now, but just before the query is passed to the database layer, with the query string as a parameter so I can do my replacements :).

Thanks!
-Al
Al
Help! I've OD'ed on OD! :)

fdscadmin
Posts: 59
Joined: Thu Aug 09, 2007 2:33 pm

Re: parameterized reports

Post by fdscadmin » Thu Dec 09, 2010 12:01 pm

You should really look into iReports...http://jasperforge.org/projects/ireport. I have spent many hours looking for a good reporting solution and this is the best one I have found. It's not perfect, but it does do the job. The reporting engine can probably be embedded into OD if someone cared to do it, but I just use it as a stand alone app. If it was embedded it would allow us all to "share" reports we write which I think would be REALLY cool.

User avatar
jordansparks
Site Admin
Posts: 5755
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: parameterized reports

Post by jordansparks » Thu Dec 09, 2010 8:47 pm

Wow, that is really nice. We initially dismissed it because it was Java instead of C#, but it is really coming along, and the language difference doesn't look like a problem. The next time we tackle reports, we will give Jasper a serious go.
Jordan Sparks, DMD
http://www.opendental.com

fdscadmin
Posts: 59
Joined: Thu Aug 09, 2007 2:33 pm

Re: parameterized reports

Post by fdscadmin » Fri Dec 10, 2010 5:46 am

The report spec is actually open so if someone REALLY wanted to do this in C# they could, but I think it would be easier to just embed the java. I have written so many reports for this engine I would love this feature, but I think the biggest benefit would be the ability to share these reports with everyone else. There could even be a dedicated forum for this with report "packs" people can download. This would also allow us to really tap into the power of OD and that is the SQL backend. Collected data does nothing if we can't report on it. If I could attach something in this forum I could show some samples....

User avatar
Justin Shafer
Posts: 596
Joined: Sat Jul 28, 2007 7:34 pm
Location: Fort Worth, TX.

Re: parameterized reports

Post by Justin Shafer » Tue Aug 28, 2012 5:34 pm

That looks very cool....

User avatar
Joseph Laudie
Posts: 5
Joined: Wed Feb 09, 2011 1:57 pm
Contact:

Re: parameterized reports

Post by Joseph Laudie » Wed Nov 13, 2013 10:59 am

Do any of you know why we can't share ireports yet? Currently is there any other product being used that works better. I'm ready to invest a lot of time with crystal reports or another software program to really get some good reports from opendental. Also does anyone know where I need to go to get a good map of the database and the relationship between tables?

User avatar
jsalmon
Posts: 1591
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: parameterized reports

Post by jsalmon » Wed Nov 13, 2013 1:34 pm

The database documentation we give out can be found here: http://opendental.com/manual/programmingresources.html
It's not "...a good map of the database and the relationship between tables", but it's better than nothing.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply