Alpha Video Training
Results 1 to 4 of 4

Thread: In a grid's button click, how do i run ajax callback then run report then callback?

  1. #1
    "Certified" Alphaholic
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    1,097

    Default In a grid's button click, how do i run ajax callback then run report then callback?

    Hi
    In the onClick of a button in my grid, i would like to do the following:
    - call an ajax callback that will generate some rows into a mySql table
    - run a report on those newly generated rows
    - after running the report i need to set a field value ( Printed ) to true in those rows ( i guess another callback )

    How do i do that?

    Thanks
    Jaime

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,819

    Default Re: In a grid's button click, how do i run ajax callback then run report then callbac

    Hey Jaime,

    Is this an automated process for the Report? Insert your data, then automatically run the report, then update the Printed field. Or, are you inserting, then running the report at your leisure - at any time - but then, once the report is actually run, update the Printed field.

  3. #3
    "Certified" Alphaholic
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    1,097

    Default Re: In a grid's button click, how do i run ajax callback then run report then callbac

    Hi David
    It should be automated. Clicking on the button in the row will run the ajax callback that will add a few rows to a child grid then needs to run a report on those newly created records, then set the "printed = true" for those rows...

    Jaime

  4. #4
    "Certified" Alphaholic kingcarol's Avatar
    Real Name
    Carol King
    Join Date
    Jun 2010
    Posts
    1,531

    Default Re: In a grid's button click, how do i run ajax callback then run report then callbac

    I'd be tempted to have my ajax callback call the on click of a hidden button (show/hide expression: 1=2 on the button). That hidden button would open the report. In the report genie, I'd use the On Hide javascript event to do another ajax callback to update those rows to 'printed = true'.
    Carol King
    Developer of Custom Homebuilders' Solutions (CHS)
    http://www.CHSBuilderSoftware.com

Similar Threads

  1. Grid Ajax Callback - Walking through all rows of a submitted grid example.
    By dionmccormick in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 08-02-2012, 01:24 PM
  2. No AJAX callback for dialog2 buttons when linked by another grid ?
    By Jowell in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 10-31-2011, 05:02 PM
  3. How to get an AJAX callback variable to child grid intial value field
    By timposey in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 08-30-2010, 12:54 PM
  4. Ajax Callback from Client Side Grid System Event
    By kingcarol in forum Application Server Version 10 - Web/Browser Applications
    Replies: 12
    Last Post: 08-27-2010, 09:52 PM
  5. Ajax Callback grid submit
    By daveh56 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 07-20-2010, 09:52 AM

Bookmarks

Posting Permissions

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