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

Tags: Java

Similar Questions

  • 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.

  • Two actions of a single button-click

    Hi all
    I have a button I want to do two things. When I test the movie I have to click the button twice to make two things happen. Is my machine on drugs, or is there something that I am missing? Here's where I use the button.

    on (release) {}
    gotoandStop (2)
    }
    on (release) {}
    holder_mc.loadMovie("my_movie.swf",1);
    }

    Thanks for any help,
    Mike

    Yes, it worked perfectly. Thanks for the basic lesson.

  • Two calls with a single button - I'll explain

    I have a URL button that calls the following in my column in the APEX;
    <script language="JavaScript" type="text/javascript">
    
    function executeCommands() 
    {
      // Instantiate the Shell object and invoke
    //its execute method.
    var oShell = new ActiveXObject("Shell.Application");
    var commandtoRun = "c:\mybook_start.bat";
    
    // Invoke the execute method.
    oShell.ShellExecute(commandtoRun, "", "", "open", "0");
    }
    
    </script>
    Now before you all go security mad, that's the only way I can call a java program of APEX I could think, if there is a way safer please let me know.


    Now before this process works I need a call to a stored procedure to run (it is an APEX process to call a stored procedure)
    Begin
    bi_pub_data_1();
    END;
    I have a button, can the button first call the stored procedure then call java script code? Please help, thanks, Doug

    You can use a java stored procedure? Or should it be called from this server?

    Also I have the second idea of Kofi in the link he gave out... We use a java stored procedure for some of our unix systems to make pl/sql stuff. Of course, you have to be careful because it can execute OS commands, but its another option.

  • 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.

  • 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 ();
    }

  • 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 to call the two actions in the same button

    Hi all

    I'm new to ADF,

    My requirement is after the user enters the details in the Page. Some of the information (values) is passed to call some of the information (values) and web service is passed to the database.

    To do this, I created two buttons. One for spending details for the web service (button created from web service data control) and another button to pass the values to the database (created according to the validation of data control operation). The two actions of button work properly.

    But I need to call the two operations in a guide only button.pls me briefly to do this.

    Concerning
    C.Karukkuvel

    Hi C.Karukkuvel

    Maybe this blog post from Shay Shmeltzer can help, "making two declarative operations with a button.
    at http://blogs.oracle.com/shay/2010/04/doing_two_declarative_operatio.html

    success
    Jan Vervecken

  • How to get out of edit mode tex with a single button?

    Hey,.

    Is there a way to escape from the editing of text with a single click or a button?

    Until now I always press CTRL + ENTER, then V and then I click outside the canvas so that the subsection is not highlighted. But it's a pain in the butt! Cant it be a single button for this?

    Thaks

    AO

    Something interesting, I just noticed: double click outside a text box can have different effects depending on the context.

    • With the selected pointer tool, double click on a text box allows you to edit the text. In this "quick editing" mode, double click outside the text box to go back to the pointer tool.
    • If the text tool has been manually selected, double click outside a text box will create a new text box.
  • Read multiple audio files with a single button - Playlist

    Hello

    im working on an interactive project that require the playlist function,

    The idea is to have a single button on a page that will play all the audio files on the page in the order they

    as you play a complete album in itunes or other players, when the first ending song the following begin to play and so on.

    Any ideas?

    Thank you

    Guy

    (1) put all the audio files in the Indesign document.

    (2) create a button,

    3) go to the Control Panel button and add multiple actions for 'Her', and for what actions define the audio file name

    Now go to the Panel of Timing and to organize the sequence of the audio file to read, just as the Panel layer, (drag / drop)

    Check the output.

  • Insert two tables with a single query (same ID)

    Hello

    I want to insert two tables at the same time (with a single request) provided that both records get inserted with the same identifier. How can I do this?
    Table Movies
    id 
    name
    
    Table Category
    movie_id
    cat_type
    (a) insert in the first table, retrieve the id (can be using
    my_sequence.currval
    and then insert into another table.

    question: He brings three queries to the Database, I also suspect that when several people trying to insert there is a problem, I could be wrong.

    I have no other idea.

    Greatly appreciated!

    think you need to do as an anonymous pl/sql block.

    Dim cn As New OracleConnection("DataSource = xx'; user id = xx; password = xx;")
    
    Try
     'build the anonymous pl/sql
     Dim sb as New System.Text.StringBuilder
     sb.Append("declare")
     sb.Append(" l_N number;")
     sb.Append("begin")
     sb.Append("insert into movies (id,name) values (my_sequence.nextval, 'film1') returning id  into l_N;")
     sb.Append( "insert into category values (l_N, 'Category type');")
     sb.Append(" END;")
    
     'create commd object
    
     Dim cmd as New OracleCommand(sb.ToString,cn)
     cmd.Connection.Open()
     cmd.ExecuteNonQuerry()
     cmd.Connection.Close()
     cmd.dispose()
     Catch ex as Exception
    
      blah blah blah
    
    End try
    
      
    

    Published by: pollywog on May 28, 2010 10:48

    Published by: pollywog on May 28, 2010 10:49

  • Control of several regions ' hide / show ' with a single button, how can I do?

    I have a series of reports that use a model "Hide and Show region." When reports are posted at the beginning they are all closed. What I want, it's has the option to create a button (or what ever) that I can mark "Expand All". When the button is clicked, all regions "unmask" and when you click it again they are all nearby. Also, I don't want this facility to interfere with the ability of the user to open/close a single report. Some reports are conditional and others are not.

    Environment: Release of APEX 5.0, issue 21, Oracle DB 11.2.0.4, Red Hat Enterprise Linux AS 4

    Thanks for the info. It worked.

  • Audio Play/Stop clip with a single button

    I'm having a hard time to understand how to use the advanced actions to enable / disable an audio button. I have read several articles and messages on the forum, but it is still confusing me!

    I want to create a button that can be clicked once to read data audio, click a second time to pause and click a third time to restart the audio (in the same place, she had stopped).

    Can anyone help with a really clear ride of the how to use the advanced actions to create this? There only seems to be pieces of the puzzle in the messages and blogs I've found so far!

    I started with a smart form which has a picture fill to a speaker:

    Screen Shot 2016-04-22 at 10.31.29.png

    I used simple actions for this audio trigger but there is now way to pause, and then start it again as far as I can see without the aid of a tip. My apologies if this has already been answered, but I can't find any post exact a walk has in the process.

    Thank you!

    Ruth

    OMG this is something totally different from the title of your son who literally said "toggle Audio Narration on / off. This title is not good at all for what you're asking here. You want a button for play/stop an audio clip. I'm going to your title in this way (using the power of my present by host)

    If you want an audio file to play when a button is clicked you use the command

    Play the Audio

    If you want to stop it using the command

    Audio triggered stop.

    If you want to use the same button for play/stop a specific audio clip, you must create a similar action, as I explained in th article toggle button, but do not use the variable cpCmndMute of system, but a user variable. It has almost the same meaning as the variable v_visib that I used to show/hide images. Tagged this audio variable v_audio, with a default of 0. The conditional action will then be:

    IF v_audio equals 0

    Play the Audio...           indicate the audio clip
    Toggle v_audio

    ON THE OTHER

    Stop audio Triggered
    Toggle v_audio

    I do not add changes state from here, can be done the same way, as described in the article.

  • How to increment and decrement a counter with a single button

    Is there anyway you can increment and decrement a counter using only one button?

    I want this counter in place so that when I leave the stage and go back to it, the visibility of my button will remain the same because of being linked to the meter number.

    What would be the best way to implement that it doesn't work when I do it this way.

    function show_hide_MC(evt:MouseEvent):void {}

    MC.visible =! MC.visible;

    (Counter = 0) = (counter = 1);

    }

    btn.addEventListener (MouseEvent.CLICK, show_hide_MC);

    Thanks in advance!

    You can use a Boolean value (true/false) rather than a meter to keep track / affecting visibility.  You can use the counter simply to determine if you are starting the file or not.   When you click this button, you set the mc.visible property, and then assign the Boolean value of the visible property of the mc.

    var mcVisible:Boolean;    These two variables need to extend the length off the coast of the timeline
    var int count;

    if(Count == 0) {/ / you just started things so set up}
    mcVisible = mc.visible;
    Count += 1;
    } else {}
    MC.visible = mcVisible; you refer then set the visibility of the mc
    }

    function show_hide_MC(evt:MouseEvent):void {}
    MC.visible =! MC.visible; Toggle visibility
    mcVisible = mc.visible;    Remember how you left it
    }

    You can just use the number of establishments, incrementing every time that you click the button and using the module to determine if it has been clicked on an even number of times compared to an odd number of times, and then have a conditional that tests, which affects visibility... something like...

    var int count;           will start with a default value of 0

    We need to increase the length of the timeline

    If (count %2 == 0) {/ / this is the same value}
    MC. Visible = true;
    } else {/ / this is an odd value}
    MC. Visible = false;

    }

    function show_hide_MC(evt:MouseEvent):void {}
    MC.visible =! MC.visible; Toggle visibility
    Count += 1;

    }

  • How do I turn on/off outputs multiples with a single button using USB-6501 &amp; Labview 2010

    I've written a VI with 24 buttons, one for each output of the USB-6501, for turning on and off 24 relay.  Now, I want to add more buttons that activate and deactivate the outputs multiple.  We will call these Presets buttons and pressing the Preset button a few outings turn and some turn off.  Get it?  The VI I've included a screen shot is used to test a transmission controller and rather than to manually select one at a time relay I want a preset button that sets up instantly relays for the next stage of the event.

    The VI I wrote uses tasks created in NI MAX.

    I am a beginner of Labview, so please try to keep your easy to understand solutions if possible.

    Thank you

    Kevin

    BTW, I'm registered in Core 1 and 2 month next to Richardson, Texas.

    Here's an example - you will learn about the grapes, berries, events, etc., in the class, but this will give you a head start. Code is attached but I took a screenshot to give people an idea of how simple the schema becomes:

    As your learn about them, I suggest you also make the cluster a TypeDef and make management mistakes, but I've omitted the example to keep things as simple as I could.

    Good luck, LabVIEW learning, it is worth!

    ~ Simon

Maybe you are looking for