Alpha Video Training
Results 1 to 9 of 9

Thread: Tabbed UI Show/Hide Buttons

  1. #1
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Tabbed UI Show/Hide Buttons

    Tabbed UI

    Does anyone know how to make the show hide buttons work not just on the initial page load.

    I can get the buttons to show or hide but I want them to change to hide if certain criteria is met.

    i.e. once tab 1 is complete the tab 2 appears and once the user finishes tab 2, tab one would hide and so on.

    Is this all possible within a tabbed UI?

    Chad

  2. #2
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,644

    Default Re: Tabbed UI Show/Hide Buttons

    See attached image...

    So apparently you will need to set a session variable at each step and use a corresponding expression for the buttons.

  3. #3
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Re: Tabbed UI Show/Hide Buttons

    Thanks Peter I can make it work the first time the page loads by doing that but I am trying to make them change show and hide on the fly, not just on load.

    Chad

  4. #4
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,644

    Default Re: Tabbed UI Show/Hide Buttons

    Maybe you need to refresh the ui?

  5. #5
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Re: Tabbed UI Show/Hide Buttons

    That's the problem then the whole page reloads. I am just wanting the navigation buttons to refresh.

    Chad

  6. #6
    Former Alpha Employee mheller's Avatar
    Real Name
    Martin Heller
    Join Date
    Apr 2008
    Location
    Andover, MA
    Posts
    261

    Default Re: Tabbed UI Show/Hide Buttons

    I was able to make fields on a grid form show and hide dynamically based on the value of one of the fields without doing anything special to force a repaint. I eventually put the show/hide expressions into frames, but that was to make the appearance of the switch cleaner.

    Buttons on a tabbed UI should be a similar story, but perhaps you need to deal with the communication between the tabbed UI component and the places where the variable you are testing is set. From the description, you want the page on each tab to set a variable in the tabbed UI or in the page that hosts the tabbed UI to trigger the show/hide for the next page.
    Last edited by mheller; 02-15-2010 at 07:11 PM.

  7. #7
    VAR Pat Bremkamp's Avatar
    Real Name
    Pat Bremkamp
    Join Date
    Apr 2000
    Location
    Oregon, USA
    Posts
    2,629

    Default Re: Tabbed UI Show/Hide Buttons

    Martin,

    Yes, the show/hide in V10 is much better than the show/hide in V9. I was especially happy to find that I could put a bunch of fields in a container and show or hide them as a group rather than having to do them one by one. For example, if payment method is "check" then I can hide all the credit card fields with one entry.

    In this case, the desire is to have the tabbed UI buttons recognize the change in a session variable when an event in a grid in the tabed UI fires and have the buttons show/hide based on the value of that variable. From testing, looks like they don't.

    So, next idea is to change the variable and then do a button refresh() if we can get a pointer to the buttons. Do you know how to do that?

    Pat
    Pat Bremkamp
    MindKicks Consulting

  8. #8
    Former Alpha Employee mheller's Avatar
    Real Name
    Martin Heller
    Join Date
    Apr 2008
    Location
    Andover, MA
    Posts
    261

    Default Re: Tabbed UI Show/Hide Buttons

    I don't know offhand; I'd have to play with it. I have three or four ideas, but I don't know which of them will work.

  9. #9
    "Certified" Alphaholic chadbrown's Avatar
    Real Name
    Chad Brown
    Join Date
    Aug 2007
    Location
    Aurora, Ontario, Canada
    Posts
    1,408

    Default Re: Tabbed UI Show/Hide Buttons

    Awesome we are waiting with baited breath. lol

    Thanks

    Chad

Similar Threads

  1. Tabbed UI button show hide
    By Pat Bremkamp in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 02-05-2010, 02:36 PM
  2. Show/Hide Question
    By Toby Locke in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 10-23-2009, 11:45 AM
  3. JS Show-hide getting trumped
    By Pat Bremkamp in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 06-25-2008, 06:22 PM
  4. Show/Hide Navigation Buttons
    By den1s in forum Application Server Version 8
    Replies: 1
    Last Post: 08-14-2007, 10:01 AM
  5. Hide and Show
    By dik_coleman in forum Alpha Five Version 5
    Replies: 4
    Last Post: 08-07-2004, 07:54 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
  •