Here we go GURUS!! Automate "on demand" report scheduling

Sort:
You are not authorized to post a reply.
Author
Messages
George Graham
Veteran Member
Posts: 201
Veteran Member
    OK - trying to be very creative with this. Have reports that are not on-demand reports, but can't be scheduled at the same interval each period. Instead of allowing a group of users access to schedule a report to execute the thought was that we could come up with a java hack of some kind to give them the option to "kick off" the report to run as a scheduled instance.

    I know that I can create a link on a dashboard (or on an icon next to a report link) with something like the following and it will create a schedule for the report:

    /ers/ersJobSchedules.jsp?CMD=SUBMITSCHEDULE&job=&jobGroup=&reportid=25&instanceid=0&scheduleName=Test%20Auto%20Sched2&scheduleowner=&scheduleType=Cron&description=&master=&date=4/5/2011&DATEFORMAT=M%2Fd%2Fyyyy&time=1550&enddate=4/5/2011&endtime=1600&cron=0%2055%2015%20%3F%20*%20TUE%202011&URL=&SERVER=http://<>/ers/&isNewJobSchedule=true&Stylesheet=ersScheduledDates.xsl&JOBQUEUESTATUS=0

    But what I need to be able to do is have some of the parameters in this url be able to be dynamic. The thought was when they were ready for the report to execute have them click the link that modifies the schedule for the report and sets the start and end date to today and runs on a single day, sets the start time and end time 5 and 10 minutes from now - with the actual execution time as 5 minutes from now.

    So the hope was to be able to some kind of javascript that builds the url with those parameters in mind - and then in 5 minutes the report(s) run just like they would as if they were scheduled.

    Is there a javascript function that can be called from a dashboard link with onClick that would allow me to build this? Is there a better way to do this? I know we can also give them a url to go in and modify the schedule themselves, but are trying to make this seamless....
    George Graham
    Veteran Member
    Posts: 201
    Veteran Member
      And, FYI, not looking for help on how to build the javascript - its where to call the javascript from....
      You are not authorized to post a reply.