How can I create a button that will execute some SQL such as UPDATE, DELETE ststements

Hi all.
I'm new on ADF.
I start with this example from oracle
[http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html]

My question is how can I make a button that executes sql statements like "set 'name' = last_name employees where employee_id = 111; updated"
any hint will help you.
Thank you

If you are using JPA/EJB then you can write in your session bean method to access the EntityManager and using createNativeQuery to perform the update:
http://download.Oracle.com/docs/CD/E17477_01/JavaEE/5/API/javax/persistence/EntityManager.html#createNativeQuery (java.lang.String)
This method will be exposed in your ADF data control and you will be able to drag it to your page.

If you use ADF BC then you can use the methods of service level AM:
See 9.7 to 9.9 in the Fusion developer's Guide:
http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcservices.htm#sm0206
http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcadvgen.htm#BABEIFAI

Tags: Java

Similar Questions

  • How can I have a button that will show/hide one area of text and images on the same page?

    I have a page like below:

    4ef3986b768c1642dac40a3eb1d534dc.png

    I want to make sure these 3 buttons display text different under them when they are pressed. How can I achieve this?

    Thank you.

    Hello

    Please try to use the Widget for Composition of ToolTip to achieve this...

    You must customize the trigger as long as the button and you can use the target to insert images or the desired text area.

    You can find it in library of Widgets Panel > composition

    Please let me know in case you need further details on that.

    Concerning

    Vivek

  • How can I make a button that will move the mail that I consult to a specific folder?

    I'm moving to Eudora, where I had several buttons that I had added to top to move e-mails in specific folders, such as invoices, orders, Support, etc. I see that I can customize the top bar in Thunderbird, but I can't seem to find a way to make buttons to automate the movement of e-mails in specific folders. Is there a way to do them in this program?

    I think this add-on can do what you want:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/tidybird/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

    Also consider the method of the filters:

    http://KB.mozillazine.org/filters _ (Thunderbird)

  • Can I create a button that will load a graphic on the page?

    I want to create a page where users can change the colors in a chart by clicking on a set palette (series of colorful buttons)

    I want them to be able to define a background color (from a predefined file selection), and then a secondary color (also amongst a selection of predefined file include transparency).

    For example, imagine a polka dot design. I would like the user to specify the background color and the color of the polka dots by clicking on the buttons of the same color on the page. I have a series of background files and a series of pea files (where everything but the polka-dot Jersey is transparent).

    Is it possible to create buttons on a page that, when clicked will load a graphic to a certain size and location?

    Would appreciate any input.

    Thank you

    Nick

    This should be possible with 2 widget compostion nested:

    The composition of 'parent' contains background on the triggers and the images corresponding to the target colors. The transition between the targets must be set to 'Fade '.

    The 'child' widget, is nested within the widget 'parent', its bottom of target must be transpaent to show the underlying background of the composition of 'parent' and its triggers contains the color of the polka dots. Its objectives show the points himself.

  • How can I create a button that remains in the active state when you click on it?

    As a follow-up, which remains following when I click on it, without reloading the whole page?

    Thank you!

    I'm not what you're trying to do. Can you provide an example of a site that does what you need to do?

  • Can I create a button that the copy is a certain test for my Clipboard?

    Can I create a button that the copy is a certain test for my Clipboard?

    For example, when I click the button on the site, then the next time to paste it somewhere, a specific text appears?

    If possible, could someone please explain to me how? =(

    Hi Travis,

    There is no native function to Muse to achieve this goal. However, you can use custom code to achieve this. Please see the following link for the code example: How to copy to the Clipboard in JavaScript?-stack overflow

    Kind regards

    Aish

  • I can now create a folder that will hold all of my photo files?

    Original title: search folder

    I did a search with the little dog under (music photos or videos).  I have all my photos gathered.  I can now create a folder that will contain all the? I use Microsoft Word or Word Perfect 10, but most of my documents are in WP. I have photo files in Picasa and Photo Shop as well as those of Word Perfect.

     

    Hello


    What documents are there in WordPerfect?

    Yes certainly, you can create the folder that holds all of the image files.

    See the following steps to create a folder.

    (a) to highlight all the images files or press Ctrl + A on the keyboard

    (b) go to the location where you want the folder to be (example: Office)

    (c) right-click and click New, and click folder

    (d) the name of your choice.

    (e) open the folder, right click and click on paste.

  • How can I create DVD now that there is not yet?

    How can I create DVD now that there is not yet?

    I need to create menus and chapters etc.

    You can use the CS6 version, see here - https://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html

    Thank you

    Jeff Pulera

    Safe Harbor computers

  • How can we create a promotion that is not out of the box?

    Hello
    How can we create a promotion that is not out of the box?

    Hello

    You can create a new descriptor from point to point in atg/commerce/pricing/pricingModels.xml.

    ~ Abdelali

  • How can I create a new folder and add some choose another folder

    How can I create a new folder and add some pictures a different folder?

    Click Start-> computer.  Navigate to where you want to create the new folder.  Then, hold down the ALT key and press F.  Point again-> file and click folder.  Now, you have created the folder if you need to name it.  Type the name you want to give the file and press ENTER.  Now you have the new folder with the name you gave it.  Use him copy / paste to copy the images to the new folder.

    Good luck.

  • How can I create a button 'Next' with database insertion action

    Hello

    I want to create a button "Next" will redirect to another page, and at the same time to do a database INSERTION action. I searched on google but I can't find anything specific that would help me.

    Here are a few screenshots:

    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg

    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg

    Thank you.

    Fund a process at the level of the page with the SQL to insert values, when click the button (NEXT) and then redirect the page.

    or

    set the item & values to the landing page that passes the values for page location.

  • How can I make a button that presses that the object appears and the second press the object disappear

    Hello

    I'm quite new to flash programming, and I don't know how I can make a button that will make the object appear and disappear. Up to now, I have this code for calling:

    (press)

    {

    _root.top1.gotoAndStop (2);

    _root. Topp.gotoAndStop (2);

    _root. MM1.gotoAndStop (2);

    _root. M1.gotoAndStop (2);

    }

    but where I'm stuck.

    Thank you for your help

    What you can do, it's the object _visible property allows you to appear and disappear, or more correctly, use the _visible property opoosite.  You should not put the code 'on' objects, keep it in the timeline.

    If the 'object' is the name of the instance of the object you want to fail over, and then in the code to the timeline you can use...

    Object._visible = false;  First, the object is invisible

    yourButtonName.onRelease = function() {}

    Object._visible =! object._visible;

    }

    Only one line in the function sets _visible to be opposite of what it currently is.

  • How can I create a button print a PDF using Acrobat Pro, that will also work on iOS?

    I created a button to print a PDF document using Adobe Acrobat Pro on my Mac.  The Print button works perfectly on different browsers on my Mac and Windows (running under Parallels Desktop) as well.

    When I open the document on my iPad button print does not yet appear.  I'm guessing that it is a problem with Flash, but it can be informed about East of the action of the button to access the print menu item that does not exist in iOS.

    Is it possible to create a button print using Acrobat Pro, which works on a Mac and Windows, but also on iOS?

    To start printing by clicking on a button, the button must have either an action of type "run the menu item" or use the method JavaScript 'print '. As you may have guessed, the former will not work because there is no menu item to run, and may not work if the particular PDF Viewer you're using supports. I'm not aware of all that are on iOS.

    The button does not appear because you are probably opening in the default PDF Viewer, which does not support forms. If you open the form in Adobe Reader, you will see the button but it wouldn't work.

  • You can create a button that will go to several key frames?

    Hi, I'm doing an rpg style character select interfaces.  What I'm trying to do is very similar to the image below. How to create a button like the stats, equipment and supplies that will each show a different image or text depending on the character you choose. If noone played this game facebook before wonder, if you choose, for example, Ironman, the buttons on the right then go stats, bio and the train. Each character will show a different bio when we click on the button of bio. Make a different screen for each character with the same layout of the buttons in the same place? I think I've just answered my own question but I want to assure you that it is possible. Each portrait of character, his stats, bio and gear is on its own layer and have the buttons go to these specific key frames? Thank you

    menu.jpg

    While you could create a different screen for each, a better way to do it is by a form of database.  Buttons cause the functions to be performed and functions use data resources account required to choices that are put in place.

    So if find you a particular character, a variable is assigned a value which indicates that.  This variable is then used to retrieve the data associated with the character and build the screen elements related to the options of this character.

  • How can I create a button to an e-mail form is completed

    I created a form using Adobe Acrobat DC.  I want to be able to provide a button so that the user can simply click on the button and have saved and sent by e-mail form

    out to our purchasing manager after they fill it out.  Is this possible?

    I managed to do it in the shape tool prepare.  Add a button (click the OK button in the top menu), and then double-click the button you have space in your pdf file.  Under Actions, select Action, scroll to submit a form.  Change the submit the form and add a mailto link: [email protected].  Check document PDF The Complete to send the entire form.

    Options: Put the text in the section of the label (such as submit or email).

    Save the PDF file.

    When your users click this button, it will prompt you to use their e-mail application and also give them an option to save the document.

    This is different from the distribution function which I hope to figure out soon.

Maybe you are looking for

  • Now, Firefox is ready for me to start using?

    I just want to know if everything is ready for me to start to use firefox?

  • Back-up on Satellite A505

    Hello First of all I am sorry for my English :-)I have a problem with my Toshiba Satellite A505-s6979My HARD drive shows that I have a free space of 13G 48g HARD drive and the sum of all the files is only 26 GB.And... the HARD drive is full every day

  • Connection more hard shores and CD disks results in failure of Windows startup

    Original title: connection more hard shores and CD players. Hellomy computer using the IDE master and one slave SATA hard drives. the problem is when I try to connect a third hard drive to the system. It takes a while to show the start screen "Intel"

  • Laptop computer connection HDTV

    Try to connect my HDTV to my laptop to watch porn TV. Connected via a HDMI cable and selected the right input. My basic desktop with no icons, but everything that I select on the laptop, that I have only the sound and my desctop base coming through m

  • How to get the output of a compiled solution?

    I'm writing an automation, but I'm unable to get the output of devenv, but receive nothing.  I have reduced my example considerably. I have a lot of files that looks like this "B:\Microsoft Visual Studio 9.0\Common7\IDE\devenv" "My_Types\My_Types.sln