Log Entries by Date Range

Custom page that allows an admin to see discipline log entries by date range for the current school. Can be run for the entire student body at that school or just the current selection. Will allow an admin to search on any log they have access to - discipline, health, etc.

Version 1.1 (5/17/2010) - added if statements to tlist_sql commands in the heading part to cut down on Oracle related DALX errros

0
Your rating: None

Comments

State Custom Fields

Great Report!

Do you know if I can add the PS_PVSIS_CUSTOM_LOG to the tlist_sql? So far everything I've tried hasn't worked.

Thanks.

RE: State Custom Fields

Are they custom fields that are stored in the Logs table or are they stored in virtual tables? If they're stored in the logs table and you're on PS 6, you can use the new custom field api to get to them instead of using the PVSIS. Some of those PVSIS's don't work with tlist_sql, but I'm not sure about the custom log one. If the fields are in virtual tables someone else may have to chime in as I haven't pulled anything from virtual tables via sql.

Matt

Disc Codes

I love this report but is there any way possible to add a column for the actual Discipline Offense code--maybe next to the Subtype? I've been playing with the page a bit but I know nothing about sql yet.

Andrea Stetson
Botetourt County Schools

RE: Disc Codes

Should be possible. I added a pdf to the site called tlist_sql basics that you can find at http://www.powerdatasolutions.org/content/tlistsql-basics that should help with how to modify the page or other pages. Basically what you'll want to do is add a column heading, add a reference to the field in the select part of the sql, and then a reference to the field in the output area.

The only thing that may cause problems is if one thing is stored in the field but you want something else to appear. Then you may need to use what's called a case statement in the select to set the output or use the if.test command in the output. The pdf covers the if.test command.

Matt

DALX error

The report works but it throws a DALX error on the server. Things keep working fine but am wondering about the error I get.

RE: DALX error

I've seen that error before on a page - it's basically an Oracle error and should only happen when the page first loads because in the url there's nothing after html like there is after you make selections and click submit. The error happens because the tlist_sql executes when the page is first loaded and without some of the gpv stuff it uses it gives an error that it's missing an expression to use. I had it happen on another page and had to add an if statement before the tlist_sql to say if the url was blank after the html part then skip the tlist_sql. I'll add that and upload a new version and that should make the error stop.

Matt

(uploaded version 1.1 which should keep the DALX errors from appearing. The problem was in the sql that creates the heading rather than the sql in the table output.)

Syndicate content Syndicate content