Alpha Video Training
Results 1 to 6 of 6

Thread: Controlling buttons....

  1. #1
    Mike Gillhoolley
    Guest

    Default Controlling buttons....

    Since I have not had time to read all of the Xbasic stuff, perhaps one of you would be so kind as to guide me to the right area to control buttons.

    I want to be able to disable the create new invoice button until the entire invoice transaction has completed, to include the settlement tab.

    Conditions must apply to ensure that the transaction was indeed finalized and tendered.

    Thanks.

  2. #2
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Controlling buttons....

    Mike,

    Perhaps others know exactly what you're talking about but could you be a bit more detailed?

    Are you saying you have a New Invoice button that when pressed, completes the tasks of the previous invoice?

    Or, are you saying that when the New Invoice button is pressed, there are several tasks that must be completed before the invoice is actually opened?

    Just wondering?

    kenn

  3. #3
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: Controlling buttons....

    You would make the initial state of the button disabled, in it's properties, then enable it when your conditions were met, such as the value of some logical variable indicating the transaction was final. Then reset it to disabled.

    Xbasic for this is in the form of

    :formname:Buttonname.Enable()
    :formname:Buttonname.Disable()

  4. #4
    Mike Gillhoolley
    Guest

    Default RE: Controlling buttons....

    Actually, when I arrive on my third tab which is the finalizing screen, once the "Finalize" button is depressed I want the very next action to be to execute my "New Invoice" button on tab1.

    I hope this explains a bit better. All I want is for the system to save the information and set me up for the next invoice entry.

  5. #5
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: Controlling buttons....

    I assume you use the "New Invoice" button on tab1 to begin the whole process.

    If so, the last line of code for this button should be this.disable(). If you don't have xbasic code behind the button, edit the button, insert command, choose inline xbasic, and put this code in the box.

    Now, once the button is first pushed, it is inactive until we turn it back on again.

    Now edit your "finalize button" in the same manner and add the lines after any current code or actions

    :formname:tabbedobjectname.tab_set(1)
    :formname:newinvoicebuttonname.enable()

  6. #6
    Mike Gillhoolley
    Guest

    Default RE: Controlling buttons....

    I think that will do it, thanks.

Similar Threads

  1. controlling Search behavior?
    By Robert Emery in forum Web Application Server v6
    Replies: 2
    Last Post: 07-01-2005, 07:14 AM
  2. Controlling Tabs
    By Paul Main in forum Alpha Five Version 6
    Replies: 7
    Last Post: 03-29-2005, 04:53 AM
  3. controlling record changes
    By Jos Schaars in forum Alpha Five Version 6
    Replies: 1
    Last Post: 08-07-2004, 12:41 PM
  4. Controlling Toolbar
    By jwolfe11 in forum Alpha Five Version 5
    Replies: 2
    Last Post: 01-20-2003, 05:15 PM
  5. Controlling cursor in Xbasic
    By Kristal Mayne in forum Alpha Five Version 4
    Replies: 2
    Last Post: 04-27-2000, 10:00 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
  •