Alpha Video Training
Results 1 to 4 of 4

Thread: Buttons in tabbed ui

  1. #1
    Volunteer Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,842

    Default Buttons in tabbed ui

    I am confused how to launch anything using a button in a tabbed ui. Most attempts to add an action using Action Javascript, including an Ajax Callback, says "Builder is not available...". And all of the javascript functions are geared towards Grids, and the tabbed ui is not a grid.

    How do I:

    - launch an ajaxcallback
    - fire a stored procedure in an sql databse
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  2. #2
    "Certified" Alphaholic
    Real Name
    eric
    Join Date
    Mar 2009
    Location
    Amsterdam
    Posts
    1,284

  3. #3
    Volunteer Moderator Steve Workings's Avatar
    Real Name
    Steve Workings
    Join Date
    Apr 2000
    Location
    The Dreaded Chair
    Posts
    5,619

    Default Re: Buttons in tabbed ui

    Steve - This solution isn't always appropriate, but often I'll just put the call onto an A5W page, then launch the A5W page from the TabbedUI button. You can have the A5W page make whatever call is needed and, if appropriate, display some success message, results, whatever.

    Because it does open a tab on the TabbedUI, I usually choose to do something rather than leave it blank. In one case I simply tell the user "The procedure has finished, you may now close this tab."
    -Steve


  4. #4
    Volunteer Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,842

    Default Re: Buttons in tabbed ui

    Steve, that's what I ended up doing, an A5W page with a hyperlinks with parameters. Body of the page looks like this:

    <h2>Procedures</h2>
    <a href="_procedures.a5w?_action=period_start">Start New Period</a>
    ...etc more links
    And the page named "_procedures.a5w" looks like this:

    Code:
    select
    	case _action = "period_start"
    	period_start()
    	etc more cases
    end select
    'FUNCTIONS
    FUNCTION period_start()
    ...xbasic
    END FUNCTION
    ...etc more functions
    response.redirect("t_message.a5w")
    Note that it finishes up with a redirect to a message page. That just says Done and has a link to go back to the initial page.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

Similar Threads

  1. Tabbed UI Show/Hide Buttons
    By chadbrown in forum Application Server Version 10 - Web/Browser Applications
    Replies: 8
    Last Post: 02-15-2010, 09:06 PM
  2. Advanced buttons, redirection and browser back buttons
    By irwincohen in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 01-14-2010, 11:59 AM
  3. Tabbed Subform and Buttons
    By mazatec in forum Alpha Five Version 7
    Replies: 10
    Last Post: 02-09-2007, 12:59 PM
  4. Invisable buttons on a tabbed form
    By C Johnson in forum Alpha Five Version 5
    Replies: 2
    Last Post: 12-04-2003, 08:26 AM
  5. Tabbed sub-forms, backdrop effect, tabs to buttons
    By BDennis in forum Alpha Five Version 4
    Replies: 5
    Last Post: 09-19-2002, 12:07 PM

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
  •