using two instructions updated under a single button

Hello
I want to know if we can use two instructions update under a single button (when the button is pressed the shutter);

in fact, the thing is when I press the button BOOK...

the first statement updates the TRANSIT value with the sum of reserved posts to...

the second update statement will deduct the value of the items available...

ex:
Sum of reserved point: 4
Available: 14

First update:
Public transport: 4

Second update:
Avaiable: 14-5 = 10

Suhail Faraaz says:
Hello
I want to know if we can use two instructions update under a single button (when the button is pressed the shutter);

in fact, the thing is when I press the button BOOK...

the first statement updates the TRANSIT value with the sum of reserved posts to...

the second update statement will deduct the value of the items available...

ex:
Sum of reserved point: 4
Available: 14

First update:
Public transport: 4

Second update:
Avaiable: 14-5 = 10

Hello

You can have two and also more updates of the statements under a single button, there is no problem, just check the condition for the update and corresponding to the value in the display :)

Tags: Oracle Development

Similar Questions

  • Switch between two intelligent forms with a single button?

    Hello!  I work at 8 Captivate and try to use a single button to switch between two smartshapes.  I can't for the life of me figure out how to do it.  I know its possible to make it 'show' and 'hide', but is it possible to simply create a user click on a button and whenever we click on it, it comes and goes between two different smartshapes?

    Im trying to show the user the functionality on a piece of equipment when they press a button.  When they push the button, it comes and goes between two different read out on the screen.

    Thanks in advance!

    Have you looked at the blog post that I posted a link: I offer 4 scenarios.

    It can also easily be done, if you have a separate (shape) button to switch between two different objects:

    1. Create a user with a default value of 0 v_visib variable
    2. Create two objects and one of them is visible, the other invisible output ("eye" in the Properties Panel icon); I've tagged the ShapeOne and ShapeTwo, where ShapeOne is visible at the beginning
    3. Create this advanced conditional action (you can also turn it into a shared action):

    IF v_visib equals 0
    Hide ShapeOne
    See the ShapeTwo
    Toggle v_visib
    ON THE OTHER

    Hide ShapeTwo

    See the ShapeOne

    Toggle v_visib

    4 assign this action to the success of the button event

  • How can I return my menu bar the new version i.e. everything under a single button named firefox. I clicked on something and my menu bar is back to the old version, and it makes my screen look clumsy now. Help, please!

    I clicked on something by mistake and my menu bar got extended as it used to be in earlier versions of Firefox as file edit view history bookmarks tools help... all in the same line... it is now my screen look clumsy coz of the new version. So, I want the menu back bar because it is in the new version. Help, please

    You see the orange (on Linux gray) Firefox button if the menu bar is hidden, to hide the menu bar through the view > toolbars, also accessible via Firefox > Options.

    If you need access to the hidden menu bar press F10 or press and hold the Alt key to display the menu temporarily bar.

  • Has used two different PC with a single product key supplied with my DVD to buy?

    Hello

    Sorry if the question is already asked.

    My friend has purchase DVD Ultimate to windows 7. There two which is 32-bit and 64-bit. But there is only one product key. A PC is already installed with 64-bit windows with this product key. If one pc to another is eligible for the installation of 32-bit windows with the same product key? Is this possible?

    If it is not possible, then why have 2 CD?

    Thank you.

    They are different architectures.  Use 64-bit 4 GB or more of RAM, 32 bit for 3 GB or less RAM.

    You can install one at a time.

    Clean reinstall Windows 10.

  • By using two different accounts on a single computer

    I have Adobe accounts for workers and businesses - the cloud photography plan with my personal account and Acrobat with my business account (employer). Is it possible to merge these two so I can use them while I'm at work? It's really embarrassing when I sign into one account and in another if I want to use a program or another...

    Unfortunately the individual & the CC company can not be merged.

    Concerning

    Stéphane

  • is it possible to use two video resolutions in a single project in Pre10?

    I looked at this issue but have not found what I was looking for. Pre10 on XP or Win 7 64 bit (I have 10 pre on two machines) with a lot of RAM. XP has a dual core processor, and Win 7 64 has a quad core.

    I shot a video concert with a Sony HDR-XR160 (1920 x 1080 16:9) on tripod back room for my camera head and used a Mini DV Panasonic as my mobile camera (640 x 480). I use the HD on 1 audio/video in the timeline and want to use the Mini-DV on v / a 2... but when I cut to length mini-dv it plays very well, but I see the edges of the images HD on both sides... is it possible to make this work?

    can I resize images of mini-dv or that will look weird? should I do a new project and make it what it would do to the HD images and 640 x 480? I thought that the 640 x 480 images would look cool like cutting plans because it is different.

    (I have an another question in Pre3 I could click on a video track and hold down the ALT key and use the arrow keys to move the video track to the right or left by one frame at a time and that doesn't seem to work in Pre10 I have an audio track of matrix to synchronize with the video. do you want me to start another thread for this question?)

    Thank you

    When you export to DV - AVI, HD material will be down-rezzed, say to 720 x 480 in NTSC. You can choose Standard or widescreen. If you choose Widescreen, if any, will be lost. Not the case if your SD footage is Standard, but the project is Standard and you choose Standard for output. As I said above, there is a lot to think about and plan. Depends on your SD videos, because that's what you want to match up to.

    Good luck

    Hunt

  • Removal of MSQL 2 tables with a single button

    As I was able to add data from two tables mysql with a single button, I guess I should be able to delete the two entries in a similar way, but I can't seem to get there. The code is written in large part by DW and I have only the level minimum idea of the meaning of the php, so please be patient in no explanation as to where I'm wrong!
    At the present time, to the chk_sixmonth of the table entry is removed, but at table cel_contents incorrect records are deleted.
    The corresponding code is, I think;
    If ((isset($_POST['ck_pk'])) & & ($_POST ['ck_pk']! = "") & & (isset($_POST['gone']))) {}
    $deleteSQL = sprintf ("DELETE FROM chk_sixmonth WHERE ck_pk is %s",
    GetSQLValueString ($_POST ['ck_pk'], "int"));

    @mysql_select_db ($database_tormented3, $tormented3);
    $Result1 = mysql_query ($deleteSQL, $tormented3) or die (mysql_error ());

    $deleteGoTo = "chk_insert.php";
    If (isset {}
    $deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
    $deleteGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $deleteGoTo));
    }

    If ((isset($_POST['cel_pk'])) & & ($_POST ['cel_pk']! = "") & & (isset($_POST['gone']))) {}
    $deleteSQL = sprintf ("DELETE FROM cel_contents WHERE cel_pk is %s",
    GetSQLValueString ($_POST ['cel_pk'], "int"));

    @mysql_select_db ($database_tormented3, $tormented3);
    $Result1 = mysql_query ($deleteSQL, $tormented3) or die (mysql_error ());

    $deleteGoTo = "chk_insert.php";
    If (isset {}
    $deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
    $deleteGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $deleteGoTo));
    }

    $colname_rstSix = "1";
    If (isset($_GET['scrap'])) {}
    $colname_rstSix = (get_magic_quotes_gpc())? $_GET ["scrap"]: addslashes($_GET['scrap']);
    }
    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstSix = sprintf ("SELECT * FROM chk_sixmonth WHERE ck_pk = %s", $colname_rstSix);
    $rstSix = mysql_query ($query_rstSix, $tormented3) or die (mysql_error ());
    $row_rstSix = mysql_fetch_assoc ($rstSix);
    $totalRows_rstSix = mysql_num_rows ($rstSix);

    $colname_rstCont = "1";
    If (isset($_GET['scrap2'])) {}
    $colname_rstCont = (get_magic_quotes_gpc())? $_GET ['scrap2']: addslashes($_GET['scrap2']);
    }
    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstCont = sprintf ("SELECT * FROM cel_contents WHERE cel_pk = %s", $colname_rstCont);
    $rstCont = mysql_query ($query_rstCont, $tormented3) or die (mysql_error ());
    $row_rstCont = mysql_fetch_assoc ($rstCont);
    $totalRows_rstCont = mysql_num_rows ($rstCont);
    ? >
    <! DOCTYPE etc...

    < form action = "" method = "post" name = "scrap" id = "scrap" > "
    < input name = "gone" type = "checkbox" id = "gone" value = "gone" / >
    < input type = "submit" name = "Submit" value = "Remove" / >

    < input name = "ck_pk" type = "hidden" id = "ck_pk" value = "<?" PHP echo $row_rstSix ["ck_pk"];? ">" / >
    < input name = "cel_pk" type = "hidden" id = "cel_pk" value = "<?" PHP echo $row_rstCont ["cel_pk"];? ">" / >
    < / make >
    Thanks for any help

    Problem has now well sorted.

  • Double desktop screen "stacked" on first office on a single monitor after using two monitors Netflix to the TV

    Double "stacked" on first desktop on one monitor - desktop screen came just after using two monitors (Netflix on TV extended

    My computer kept crashing after I had hung a dual monitor.  The second monitor was my television, playing a Netflix movie while I also used my computer to work on.  After splitting the two, I kept crashing for a few days.  I tried to delete the second monitor in the display settings, but does not know how to do this, if it's possible, but I think it's the problem and the cause of the double view of the desktop on my computer now.

    Does anyone know how to confirm what the problem is for some, and/or instructions how to solve this problem if you already know what can cause this problem.  No assistance at all would be greatly appreciated.  I tried to understand this two days...

    Note, in the heat of the Las Vegas area, I thought this may be due to overheating, but I actually he cooled in the refrigerator for a short time and restarted, but still have the problem.  Thank you.

    You have a Nvidia 8600 M GS graphics chip located on the motherboard, the drivers for it are provided by your manufacturer, HP, PC-specific to your model and NOT of the site MSUpdate or Nvidia.

    http://www.nvidia.com/object/notebook-Win7-WinVista-258.96-WHQL-driver.html see the following"However, please note that your notebook original equipment manufacturer (OEM) provides certified for your mobile drivers specific to their Web site. NVIDIA recommend you check with your OEM laptop on the software updates recommended for your laptop. The OEM cannot stipulate support technical issues raised by the use of this driver. »

    Since you apperently have a laptop / Notebook, you get all pilots that manufacturers of PC and NOT of MSUpdate site system. Driver version numbers shown on the MSUpdate site cannot be relied on as correct

  • can perform us two actions with a single button in two clicks, one after the other?

    Mr President.

    can perform us two actions with a single button in two clicks, one after the other?

    I want that when I click on the button Add once it add data to the database and when I click again on this button it clears the form data to the empty fields.

    Concerning

    Tanvir

    In the code, it should be easy.

    The following code adds that a button called butman with text 'ADD '.
    It then registers a listener that will be called if the user clicks the button.

    This listener then calls the runAddData method if you clicked butman while it contained the text of "ADD" and it calls the runClearData method otherwise.
    That's why he will swap the functionality of the button between ADD and CLEAR on each click.

    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler() {
              @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 that's what you wanted.

    Further reflection.
    You might want to run the ADD and CLEAR methods in their own son so that it can run in the background without slowing down your user interface.

    I also reuse rather a single button for several features instead of to apply with hundreds of nodes used only rarely with masses of code to show and hide as needed.

  • Using two buttons market timer / stop, need help please.

    Hey everybody.

    I am stil working on my project, and now I'm trying to implement a timer using two buttons market / stop. Everything I do now is when you press start the stopwatch starts and when you press stop I want the timer to stop and display the time.

    Whats happening is when I press start, the timer starts, but when stop is pressed the timer displays a value of say 12 seconds, a second more later I press stop again a value of 14secs arise and it stops at 14.  Now, whenever I press on start it will start at 14 and repeat this process.

    So I think that somewhere, I did not put my right timer.

    Could someone say somethings that I should change in my code.

    They are declared at the top:

    static public boolean status=false;
    static public int count=0;
    static public Timer timer;
    

    Here is my code:

    ButtonField start = new ButtonField("Start",ButtonField.USE_ALL_WIDTH|                          ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                          start.setChangeListener(new Listener1());add(start);
    
    ButtonField stop = new ButtonField("Stop",ButtonField.USE_ALL_WIDTH|                            ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                            stop.setChangeListener(new Listener2());                          add(stop);          
    
                public class Listener2 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer is at" + Integer.toString(count));            status = false;            timer.cancel();            }            }
    
                public class Listener1 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer started");            status = true;                try                {                                                timer = new Timer();                                        timer.scheduleAtFixedRate(new StartEvent(),1,1000);                }                catch(Exception e)                {                //do nothing                }            }
    
        private class StartEvent extends TimerTask    {    public void run()       {        if(status = true)              {              count++;                        }        else            timer.cancel();//        count=0;    }    }    }
    

    any help is appreciated

    Thank you guys

    Probably best to follow just a matter of a Thread.  So next time, you can start a new Thread with a new question.  However, you should also search the forum before asking questions, that your two supplementary questions have been answered in other posts on this forum.

    Concerning your problem to press the stop and get another moment, I think that you must have application logic that disables the stop button once pressed, until you press the Start button.  For example, you could do by assigning to the time of departure - 1 in the Stop button, and then, when you press the Stop button, he can check the start time and displays a message saying "Timer not started" If the start time is - 1.  There are a number of other ways to do this, I described this method because it is easy to explain.  It is not really how I'd do.

    The best way to set the buttons next, is to add then to a HorizontalFieldManager, then add the HorizontalFieldManager to your screen.

    To stop the button displays the menu, you must set it with the style CONSUME_CLICK, for example:

    ButtonField stopButton = new ButtonField ("Stop", ButtonField.CONSUME_CLICK);

  • Can we apply a createInsert single button for the two master form, details of Table?

    Mr President.

    Can we apply a createInsert single button for the two master form, details of Table?

    I want to just click a button and fields are available in form-Master and details-table.

    As below

    vfdt.png

    Concerning

    Mr President.

    My worm jdev is 12 c

    And I can do your job for you.

    His code

    For any organization that wants to do this job

     public void createVoucherAndVDetailsRow(){
                VoucherViewImpl voucherVO=this.getVoucherView1();
                VoucherViewRowImpl row=(VoucherViewRowImpl)voucherVO.createRow();
                voucherVO.insertRow(row);
                RowIterator iterator= row.getVoucherdetView();
                String voucherNumber=row.getVoucherId();
                NameValuePairs nvps=new NameValuePairs();
                nvps.setAttribute("VoucherId", voucherNumber);
                VoucherdetViewRowImpl voucherdetRow=(VoucherdetViewRowImpl)iterator.createAndInitRow(nvps);
                iterator.insertRow(voucherdetRow);
                }
    

    Concerning

  • I want to use two different images for a button state...

    I want to use two different images for a button state... [Normal] grayscale media social icon outline [rollover] color media social status icon.

    Option 1:

    Create a status button which becomes transparent in the mouse above.

    Have the other underneith of the image.

    Option 2:

    Create a status button with a background image.

    Then select a different background image for each State.

    You can also do cool stuff like Sprite buttons too.

    Example: Adobe Muse Social Sprites by MuseThemes

    Widget page: Adobe Muse Social Sprites by MuseThemes

    Themes of Muse had a great video about these doing just now.

  • Two actions with a single button Oracle adf

    Hello
    Dear all,
    I want two action with a single button. Before posting, I studied this thread, but it seems that it cannot solve my problem two actions with a single button?
    It's my button and its action http://4.bp.blogspot.com/-tpP5wIW8JLI/T66zhLZgG0I/AAAAAAAAAPY/F1A-Ka8KGPY/s1600/req1.JPG
    getReqID button is actually a call to a procedure that returns a value to his class of action. The cb1_action function is...
    public String cb1_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getReqID");
    Object result = operationBinding.execute ();
    int id = Integer.parseInt (result.toString ());
    System.out.println ("result =" + id);
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    Returns a null value.
    }
    It works very well. Don't know I want to, click this button, it also opens a page of .jsff. but I'm unable to open this page.
    Help, please
    Thank you
    Muhammad Nasir

    The first image you provided shows a small 'Attention' sign on the "request for quote-global-TF" which, I guess, gives you the sentence.
    This warning tells you that there is a problem with the task flow that you imported from the pot. Move the mouse over the warning sign a see what message you get from the frame on the error. If you don't get one, in 'source' view and look for red or orange squares in the gutter of the right hand. Scroll to the position of the red square and move the mouse over the underlined part red or orange of the code.

    Timo

  • How to use a single button to drive another click of the button

    I am trying to find a way to fix a bug in my application.  The simple solution would be to have a single button that animates a mouse on another button click event whenever the PlayBar in my application reaches the end of the screen and go back to its origin.

    How could do?  I made a lot of progress since my last post a question in the forum of the ActionScript 3, which was last night.

    Thanks in advance,

    Markerline

    So just run the function one of the buttons would otherwise be run when you click on it, then just call this function when you need to.  If you set the event to the function null argument, you can call it without havoing of clicking on anything...

    function whateverBtnClicked(evt:MouseEvent=null):void {}

    etc...

    }

    So if you need perform this function without clicking the button you can just use...

    whateverBtnClicked();

  • Addition of two functions in a single button (gotoAndStop, sound judgment)


    Hi all! First of all, I would like to say that I am a beginner total with respect to as3. Okay, let's look at my problem... I have 2 scenes (first of all is a main menu with the button New Game; second scene is the intro for the game). I'm having difficulties to do two functions within a single button. Why do I need that? The first function is to go to the next scene (in my case, IntroScene). Second is to disable the sounds, so I can not hear them in the next scene.

    Here is the code:

    var bobobg:bobomusic;
    var sndChannel:SoundChannel;

    bobobg = new bobomusic;
    sndChannel = bobobg.play ();

    MAIN - NEW GAME MENU BUTTONS
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick3);
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick4);
    function buttonClick3(event:MouseEvent):void {}
    gotoAndPlay (1, "IntroScene");
    }
    function buttonClick4(event:MouseEvent):void {}
    bobobg. Stop();
    }


    Error message: "TypeError: Error #1006: stop is not a function."
    to MainMenu_fla::MainTimeline/buttonClick4().

    I would appreciate if someone could help me with this. Thank you!

    Ok.  Just do this:

    var bobobg:bobobgmusic = new bobobgmusic();
    var sndChannel:SoundChannel = new SoundChannel();

    sndChannel = bobobg.play ();

    MAIN - NEW GAME MENU BUTTONS
    newgame_btn.addEventListener (MouseEvent.CLICK, buttonClick3);

    function buttonClick3(event:MouseEvent):void
    {
    gotoAndPlay (1, "IntroScene");
    sndChannel.stop ();
    }

Maybe you are looking for

  • Does not print after the replacement of cartridges

    I changed cartridges in a few years on this printer successfully. I have Windows 7, and it is an officejet 6500; E709N model #CB803A; Serial No. [personal information]. Today, when I replaced the black ink, nothing will be printed, and the printer sa

  • RIP a DVD

    I have a House for movies on DVD that I can play through Windows Media Player, but cannot pull them up on the hard drive or on an external drive. Am I right that it is impossible without having to download specialized software? If so, which? Y does i

  • RAID 1 configuration on a 8700

    I just got a new 8700 Dell with Windows 7 and a 2 TB Seagate drive.  I'm trying to install and configure an identical Seagate drive for RAID 1.  I read a similar post for the 8500 which was helpful, but I always use a problem.  When I go into the app

  • UCS Central - SSL certificates

    Where can I find documentation on the use of a central with UCS SSL certificate?

  • Error 1053 of the queue

    I bought the Dell Inspiron 1545, previously installed with Windows 7 in Nov 2009. I have not any installed printer before & I just bought a HP Photosmart C4680 printer.  However, I am unable to complete the installation because of an error of queue.