In my previous post I showed a generic multi column LOV Report. One withdrawal was that the user has to click the first column to pass the selected value back to the calling form. It would be much nicer if you could click anywhere on the row, wouldn't it? To pass back a value you (used to) create a Named Column Report, but that is much too static.
By adding onclick="javascript:passBack( $(this).children('td:first-child').html() );" to the TR tag in the Before-Each- Row region you can click anywhere in the row and that will pass the value of the first column back to the calling page. Looks much nicer huh?
But (ofcourse) you need to install jQuery first....
By adding onclick="javascript:passBack( $(this).children('td:first-child').html() );" to the TR tag in the Before-Each- Row region you can click anywhere in the row and that will pass the value of the first column back to the calling page. Looks much nicer huh?
But (ofcourse) you need to install jQuery first....
Comments
Rats, you got me really excited because I wanted this sort of functionality (click entire row) in the app I'm working on right now. Sadly, it looks like all roads (to cool web apps) lead back to jquery...
[sigh]
And jQuery is not that scary as it might look at first sight. With just some simple statements you can really add some coollness to the look and feel of your app. Just dive in to it!
I'm not afraid of learning and using jquery. I just can't get my DBAs to install it, mostly because they have other priorities
You don't need a DBA for this...just upload jQuery as a static file, reference it in your template, Page 0 or specific page and you're done!