Perform multiple actions with one button

Is it possible to do 2 things when clicking a single button?
Like this:
A button adds an item to a collection and after adding the button must be disabled.

Yes - you can chain multiple commands together with a ;
In this example, add a button control (Button1) and an Input Text (Text1) control.
Set the OnClick property for Button1 to:
Collect(myCollection, {FirstName: Text1!Text}); UpdateContext({ButtonDisabled: false}); UpdateContext({ButtonDisabled: true})
Set the Disabled property for Button1 to:
ButtonDisabled
FYI - The UpdateContext is used twice to change the state of a context variable.
Let us know if this answers your question -
Thor

Similar Messages

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Submiting multiple forms with one button

    I have a form that has a cfform within it. The cfform has a
    cfloop in it that includes an id and a dropdown list box that
    includes a new id. I want to transfer one id to another. I want the
    user to be able to click on one button that would update all the
    rows in the table with the new id.
    If there are 3 rows in the query, the user would select an
    entry in a dropdown for each row and upon clicking on the submit
    button all three rows would be updated with the id selected from
    the dropdown.
    Any suggestions?
    Thanks for the help!
    Gary

    There isn't a way to set this up using the Paypal payment integrated into FormsCentral using seperate forms for each child, you can set up one form so they can register additional children and then pay in one session, but if you need each child to be a unique form submission it can not be set up to pay for multiple at once.
    Thanks,
    Josh

  • Run multiple reports with one button

    Hello, I am new to Oracle Form Builder and I have a generic form built that has a button the user will press to run a specified report. I'm wondering if it's possible to use the same form with the one run report button to print multiple reports at the same time. Is this possible?

    I recommend that you start here:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    You can do just about anything in Forms if you are creative enough. However, exactly how you do it will partially depend on things like which version you are using, the platforms (OS on client and server), and the preferred behavior you would like to see.
    Here is an older document whch explains how to integrate Forms/Reports. This old doc mostly still applies to the latest versions.
    http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf

  • Controlling multiple movies with one button

    Hi flash gurus,
    I have 4 movies of the same length running on my stage in the
    FLV playback component, with different instance names. I also have
    a single play/pause component. I want all of the movies to play
    together and unpause/pause when I press the play/pause button.
    However, I have only been able to get the play/pause button to
    control one of the movies (the last one listed in the
    actionscript). I'm using the following code to attach the
    play/pause component to the FLV playback movie:
    FLV_instance_name1.playPauseButton = PlayPause_instance_name
    FLV_instance_name2.playPauseButton = PlayPause_instance_name
    FLV_instance_name3.playPauseButton = PlayPause_instance_name
    FLV_instance_name4.playPauseButton = PlayPause_instance_name
    When I use this, the play/pause button only controls the
    FLV_instance_name4 movie. How do I get it to control all 4 moives?
    Any help is much appreciated. Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • How download from multiple accounts with one button

    What do I do to have multiple accounts checked and messages downloaded without opening the get mail dropdown. I used to just hit the get mail button.

    I use this add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/get-selected-mails/
    which lets you define various sets of email accounts. Any of these sets can be defined as the default action.
    There is also a GetAllMails add-on:
    https://addons.mozilla.org/en-US/thunderbird/addon/get-all-mails/

  • Multiple functions in one button

    Good evening,
    Is it possible to run multiple functions with one button?
    For example: With a button to open and close an object?
    Thanks 

    Hi Rinku,
    This is an example for you:
    A Piano Key Control in C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • How to use's mail's "perform mail action with message"

    I can't for the life of me figure out how to use "perform mail action with message", I basically want to create a script that get's used on a rule from Mail, but nothing I try will work.
    This is what I started with...
    tell application "Mail"
    perform mail action with message msgs for rule theRule
    end
    end
    This doesn't compile i've seen an example of it being used like this...
    using terms from application "Mail"
    perform mail action with message msgs for rule theRule
    end perform
    end using
    this also doesn't compile, so I'm not sure what it's wanting

    This is one of those annoying things about programming - you have to arrange and spell things exactly right (this gets worse if you have fat fingers). You can look at the dictionary for Mail to see the specifics - in your example you are missing an "s" at the end of the word "message":
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell application "Mail"
    perform mail action with messages msgs for rule theRule
    end tell
    </pre>

  • Export two TXT files with one button

    Hi,
    I'm using Application Express 2.0, i'm developing aplication in which users import few different excel spreadsheets and after that they export date in specified TXT format.
    I'w like to create functionality to export two and more files in CSV (TXT) format with one button and one click only in defined folder. It's necessary to simplify work of my endusers becose they have to generate ten or more files.
    Is it possible create functionality which generate files in defined folder without any addtional user's action?
    Best,
    Kiril

    Create a procedure to output the files, use the oracle directory object to define your output path.
    create or replace directory wayne as '/csv';
    use google or metalink to get examples. This way you can output as many files as you want, my personal opinion would be to create a dynamic report your users could run on demand.

  • Create multiple delivery with one invoice

    Hi all,
    can you tell me how to do multiple delivery with one invoice,
    i tried in vf01 by giving their my 3 delivery nos but it is generating three invoices
    pls explain this in details
    points will be rewarded
    regards,
    smmmmmm

    Dear Sameer
    As per your requirement run the Tcode VF04 (Billing Due list) and select the Delivery Documents for which you want to to have single Billing Document by clicking on Collective Billing document/Online  Push Button in that screen.
    To Have Single Billing Document for Multiple Delivery you need to have Payer,Terms of Payment,Incoterms(part 1 and part2) same for all materials orelse the billing document will split and this split analysis is visible during creating of Billing document.
    Hope this will help you in solving your problem.
    Regards
    PSH

  • Selecting multiple checkboxes with a button

    Hi, I'm currently making a booking form with a clickable map.  I'm trying to figure out the way to select multiple checkboxes (i.e. a zone on the map) with one button/checkbox.  Thanks!

    Just give them all the same name (and export value) and when you tick one, the others will be ticked automatically as well.

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • Multiple iPhones with one one computer

    I was using multiple iPhones with one one computer, each iPhone device has it's Owen Apple ID. When I connected my device. I got my mothers photos, contacts &amp; applications. All my applications are deleted, is there a way to retrieve my iPhones photos and applications ?

    Sign out of your mom's account in itunes, then sign in with your account, then restore your phone from your itunes backup.

  • Pop up with one button

    Hi experts,
    Does anyone happen to now any pop up window with one button(OK button)?
    Regards,
    Marc

    Hi,
    This Function Module contains only OK button.
    POPUP_TO_INFORM
    Hope this will help.
    Regards,
    Swarna Munukoti.

Maybe you are looking for

  • Can I setup two Apple TVs on two separate tvs in the same house?

    I have one Apple TV set up and received a second for Christmas. Can I use the second on another tv without any issues?

  • Can not print PDF files

    I have a 6520 printer and a Vista operating system. When I try to print a PFD file from documents a window  comes up telling me I need to install a printer. Everything else prints fine.

  • How to enlarge entire project

    For example I have some complicated animation in 500 - 300 px size Are there ways to enlarge the entire animation up to 1000 - 600 px or some another size? Using presets for responsive layout leads to unexpected results, may be it solves only simple

  • Lost iPhoto application, now what?

    I was transferring photos to a new hard drive and also dragged the iPhoto icon from the dashboard into the hard drive. Now I cannot find it anywhere including on the hard drive which only seems to have jpeg photos. Do I have to re-stall the entire sy

  • After first time machine backup half available GB on computer are gone

    I did my first backup up to an external HD using Time Machine.  Pre backup my computer showed 713 GB available. After backup my computer showed 334 GB available (less than half pre-backup!) and the external HD showed 713 GB available.  What happened?