How to call the two actions in the same button
Hi allI'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
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
TanvirIn 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.
-
How to call the function (function Build-in user) in Pro * C program
We have developed the application Pro * C program.
TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.
We would like to develop Pro * C program you are using PL/SQL.
We have a few questions.
How to call the function (function Build-in user) in Pro * C program?
#########
TEST
#########
ttisql:
Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
> BACK NUMBER
> o_number NUMBER;
> START
> select i_str
> in o_number
> double;
>
> O_number RETURN;
>
> EXCEPTION
> Others THEN
> RETURN 0;
> END;
> /.
display errors
The function is created.
Order > show errors
No errors.
Command >
Command > set serveroutput on;
Command > declare
> number of num1;
> start
> num1: = F_SAMPLE ('A');
> DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
> end;
> /.
F_SAMPLE 0
PL/SQL procedure successfully completed.
Command >
Pro * C case:
EXEC SQL BEGIN DECLARE SECTION;
number of num1;
EXEC SQL END DECLARE SECTION;
EXEC SQL EXECUTE
Start
: num1: = F_SAMPLE ('A');
end;
END-EXEC;
Make sure to install:
Error on line 146, column 3, file plsqlPROC.pc:
Error on line 146, column 3 in file plsqlPROC.pc
number of num1;
.. 1
PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:
Thank you.
GooGyumThere are two problems with your variable declaration:
1. the name of the variable and type are thew misplacement autour.
2. you may not use a host variable type.
If you change this to:
EXEC SQL BEGIN DECLARE SECTION;
int num1;
EXEC SQL END DECLARE SECTION;Then it will work very well.
Chris
-
What happens when two parallel process call the same VI in an FPGA?
Hi all
I was wondering, what happens when say two parallel processes call the same Subvi in an FPGA? I think that the FPGA would create two instances of the Subvi, not sure. Any point of view?
Thank you
Altras
I don't know if the FPGA adds any ordinary special, but in LabVIEW rule and in LabVIEW Real-time, a VI by default is not reentrant. Therefore, a process that is called when it is already in use is blocked and must wait.
If the VI is reentrant, however, then you have two (or more) for the VI dataspaces, so that each can run independently.
-
How to call the setting menu of the BIOS on HP DV4 1540us netbook?
Hi all
How to call the setting menu of the BIOS on HP DV4 1540us netbook?
F2 does NOT an on-screen BIOS setting.
Is there another trick? Or, perhaps, defining the procedure step by step to start the BIOS?
TIA
Power on the laptop and all logo HP being displayed, press F10.
-
How to call the web service?
Hello
I want to know how to call the web service from my application HTML5 & javascript.
Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.
I just want that when you call a web service method, I will return the result.
Please try this out for a WebService call
var xmlhttp; xmlhttp = new XMLHttpRequest(); xmlhttp.open("get","your url",true); xmlhttp.setRequestHeader("Accept","application/json"); xmlhttp.setRequestHeader("Content-type", "application/json"); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.status == 200) { console.log(xmlhttp.responseText); } } } xmlhttp.send();
This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.
-
How to call the procedure type table
Hi I have the below requirement
Created in the sub table type
CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);
create or replace procedure test_proc_type (p_type char_type) is
Start
I'm looping 1.p_type.count
dbms_output.put_line (p_type (i));
end loop;
end;
How to call the procedure with parameter as a type!
SQL> create or replace type char_type as table of varchar2(4000) 2 / Type created. SQL> create or replace procedure test_proc_type (p_type char_type) 2 is 3 begin 4 for i in 1..p_type.count loop 5 dbms_output.put_line (p_type(i) ) ; 6 end loop; 7 end; 8 / Procedure created. SQL> set serveroutput on SQL> SQL> exec test_proc_type(char_type('A','B','C','D','E')) A B C D E PL/SQL procedure successfully completed. SQL>
-
How to call the java function with javascript setting in mobile adf?
How to call the java function with javascript setting in mobile adf?
The ADF Mobile utility container API can be used from JavaScript or Java.
-
How to call the stored procedure when I press the button
Hello
I want to know how to call the procedure/SQL statement when I press the button using callable statement.
can someone give me it please link who knows the steps to do this.
Thanks in advance,
SANHello
read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html
~ Abhijit
-
How to call the variables of the scene inside movieClips
How to call the variables of the scene inside movieClips
One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;
-
How to call the javascript function in ADF
I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.
Kind regards
Surya
Published by: sgodavar on Sep 24, 2010 11:44Include JavaScript to the jsff/jspx as page:
Call it like:
Type = "dblClick" / >
Amit -
How to disable the setting button in Tools - Options - advanced - network of windows registry?
Dear support,
Now, my office has use Firefox as default browser to access the Web server. And there is a policy that users must use ProxyServer. I don't want to change user setting in Firefox proxy. How to disable the setting button in Tools - Options - advanced - network of windows registry?
Thank you.
TrekyYou cannot use the Windows registry to disable the elements in Firefox. This link shows how to lock the proxy settings of Firefox, change the values as needed:
http://www.stbernard.com/ip5kb/iPrism/whatsnew/50SupportFiles/SupportFiles/IP0460.htmA change of minor importance, in step 4, instead of add this line to all-js, you can create a file called local - settings.js containing the indicated line and save the file in the same folder as all.js
-
Can I call the same SSI file twice on the same page?
I called the same include file (form.inc) twice on this page, just below each of the two links "download the printable file.
It works perfectly for the first instance 'PARTNER Ares & Co', but does not appear in the second case, the "CHIEF MARKETING OFFICER")
Current research of work & Partners
I used the exact sam call at both locations
<!-BEGIN FORM INCLUDE->
<? php require_once ("form.inc");? >
<!-END FORM INCLUDE->
Will very much appreciate your advice.
Try
-
How to use the same services-config for servers the and remote.
My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.
<? XML version = "1.0" encoding = "UTF-8"? >
<>services-config
< services >
< id = 'amfphp-flashremoting-service' service
Class = "Flex.Messaging.services.RemotingService"
messageTypes = "flex.messaging.messages.RemotingMessage' >"
< destination id = "amfphp" >
<>channels
< Ref channel = "my-amfphp" / >
< / channels >
Properties of <>
< source > * < / source >
< / properties >
< / destination >
< / service >
< / services >
<>channels
< channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
" < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
< / channel-definition >
< / channels >
< / services-config >I think the problem is the line
" < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "but I don't know how to use the same services-config for servers the and remote.
I'll back up a bit.
Breakpoint URLS are defined as follows in the services - config.xml:
https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure
The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.
If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.
In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.
-
How to disable the close button during execution
Hello world.
Please help me how to disable the close button at the top of the window during execution. I don't want the user to use this button to close. I used the button called out in this form but sometimes users of closing by clicking this button.
I use the formula of Oracle 10 g R1.
Thanks in advance,Or if you want to stop the closing by button close the main WINDOW. Then create a trigger on called KEY-OUTPUT at the FORM LEVEL and just write the value NULL ex.
Trigger = KEY-EXIT (FORM-LEVEL) NULL;
-Clément
-
How to remove the download button located next to my home button?
You can use customization feature to move it to a less irritating location. I suggest the bar the module if you keep this poster.
Start customizing with one of these, and then drag the arrow to a new location, or in the dialog box to remove all the bars:
- Right click on a zone empty of the tab bar > customize
- Press the Alt key > menu view > toolbars > customize
You will notice that some combined controls separate in the view to customize. If you put something between them, they will not be able to recombine. (For example, if you separate stop and reload or put something between front/rear and area URL.)
Maybe you are looking for
-
Satellite M50-148 backlight intermittent
My backlight M50 4 year old suddenly disappeared off the coast. It remains on during the start up but then turns off. Movement of the screen or a little en by pressing the bottom of the screen seems to help, but not for long. After much research, I b
-
Should I remove the applications that have been pre-installed on my Mac I ever use – like "GarageBand", etc.. ? This will make my Mac last boot like, faster, or is it not important?
-
Acquisition of data using C++ and cRIO-9066
Hello! I want to write a C++ application that would make the acquisition of data from modules installed in the cRIO-9066 chassis and this application should work without LabView. How can I do? This chassis connect to my PC using NI-DAQmx? Is this pos
-
W510 doesn't wake up when she goes to sleep - Bit from Windows 7
Hi all The Lenovo thinkpad w510 won't wake once she goes into sleep mode, I have to press the power button until it stops completely and restart completely, I tried different settings in the management of food etc. We have the same pissue on 3 differ
-
I want to just set up a new user account for my beautiful - how should I do this?
I just want to create a user account for my beautiful... She wants to download i tunes and I don't want that on my account.do I have just tap setting a new user account and go from there? Original title: I want to set up a user account for my niece s