Results 1 to 14 of 14

Thread: Best practice and/or ideas on how to do backend reporting

Threaded View

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Best practice and/or ideas on how to do backend reporting

    I've got a web app - all ajax - maintenance with slickgrids and now I'm adding reporting.

    The reports are sprocs that I "find" the parameters of - using an ajax call - and load these into a slickgrid. User fills in the column in that slickgrid basically putting in the selections for each parameter.

    I've used this concept in VB6 for a decade - the image attached below shows the old VB6 app - and what I've got so far for the jQuery slickgrid below that...

    At any rate - when the user clicks the PRINTER icon in the jQuery page it will ajax submit a request to a web service that will run the old VB6 app with a .BAT file (I already support this in the old VB6 app so my clients can automate nightly reports and what not).

    The .BAT file on the server will produce output to a PDF print driver that we have installed...

    So - my questions...

    I guess I will respond to the initial AJAX request to start the report - which is starting the .bat file running - with some kind of SUCCESS message?

    I guess I need to "identify" the "report submit session" somehow from the server - maybe a GUID?

    How do I tell the web client when the report is done? Some reports run fast (moments) - but some can take 5 or 10 minutes.

    Do I keep submitting AJAX requests for "status" updates? Use a javascript timer to do this?

    I'm looking for any ideas or methods you all have used in this area.

    Thanks a lot - in advance!!

    -----
    Attached Images Attached Images  
    Last edited by szlamany; Feb 2nd, 2012 at 04:56 PM.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width