Jump to content

Recommended Posts

Posted

Anyone know a way of running a CMIS/facility report from a shortcut?

I'm thinking something like cmis.exe -u:me -p:secret -dataset:201516.cdb -report:xyx >> out.csv but don't have a clue.

 

thanks

Posted

@howsono what are you wanting to do? There is no command line reporter, you can read the database directly, but I should stress that Advanced Learning do not support this.

@pcstru 's powershell scripts look very similar to what I may do with vbscript...

Posted

I want to be able to pull the data out and do stuff with it - in Excel or PHP preferably. And I want this to happen automagically. Our access is through username/password which is not linked to active directory and getting the IT team to set up anything non-standard is a no-no (I'm a CS teacher and it's taken me EIGHT YEARS to get anything other than IE on the network).

Everything I want to do is read-only.

 

- - - Updated - - -

 

Oh and don't think I've got powershell access! VBA could work - if I can provide u/p instead of relying on AD setup.

Posted
Oh and don't think I've got powershell access! VBA could work - if I can provide u/p instead of relying on AD setup.

If you mean the user credentials you have to login to the CMIS client software, then no.

Posted (edited)

I did a lot of work along these lines when I used to have CMIS.

 

It is often possible to produce better reports directly through SQL than it was through CMIS itself. They also run a hell of a lot faster by bypassing their clunky processing.

 

You can set them up as as a job in SQL manager and schedule them. Outputting to XML then gives you the capability of doing stuff with php, excel or whatever else you want for displaying the data.

 

Oh and to stay on the good side of the Advanced Learning engineers - set up the SQL account that will process all of this with READ ONLY permissions. That way it will be impossible for you to mess up the DB and you will have evidence if anyone ever questions it that you can not have caused any issues they try passing off to you.

Edited by bobsmith
Posted
Oh and to stay on the good side of the Advanced Learning engineers - set up the SQL account that will process all of this with READ ONLY permissions. That way it will be impossible for you to mess up the DB and you will have evidence if anyone ever questions it that you can not have caused any issues they try passing off to you.

It _is_ possible to cause issues with read only access. You can severely impact performance and (in CMIS) end up locking users out (try running the powershell I posted without the control C catch and using control C to break). Developing SQL queries should never be done against a production database, but often is (and yes, guilty as charged).

Posted
Hrm - SQLManager - even that is dodgey difficult in this place. Waiting for chap to get back to me about API. One example - we sent letters when students get 10 negatives in a term. So every morning an admin has to log on and run a report, move things around, mail merge etc... I want an automatic list emailed to directors each morning.
Posted

Within CMIS that was easy peasy, a quick bit of SQL to extract the data and you could output it to excel as part of the job and then set it up to email out.

 

Of course if you can write a report within SIMs to do the crunching (good luck) then you can have command reporter run it each night and have it appear on their home screen in SIMS (that's the gist I got anyway).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...