How to create the new record of web service in the ADF?

Hello, I use JDeveloper 11.1.2.3.0. I created a class and published as a web service. I created a web method like this:

   public void addNewRow(MyObject cob)

{

MyAppModule myAppModule = new MyAppModule();

try {

ViewObjectImpl vo = myAppModule.getMyVewObject1();

================> vo object is now null

Row r = vo.createRow();

r.setAttribute("Param1", cob.getParam1());

r.setAttribute("Param2", cob.getParam2());

vo.executeQuery(); getTransaction().commit();

}

catch (Exception e) { e.printStackTrace(); }

}

As I have written in the code, myAppModule.getMyVewObject1 () returns a null object. I do not understand why! AFAIK AppModule must initialize the object itself, when I call "getMyVewObject1()", but maybe I'm wrong, or maybe that's not the way it should be for the web methods. Has anyone ever have this problem? Any help would be much appreciated.

You must use Configuration.createRootApplicationModule () to create the new instance of AM.

Example: creating root Application Module Instance & #8211; Oracle ADF | Techiecook & #039; s Nook

Also, the methods in your AM can be automatically exposed as service web soap:

Andrejus Baranovskis blog: Web Service Interface for molten Oracle 11 g ADF BC Application Module

And note that your code has other issues, for example:

vo.createRow () will not automatically add this line to the View object.

vo.executeQuery () is not necessary...

Dario

Tags: Java

Similar Questions

  • How to create a new record with the old values

    Hi all

    I have the creation with 45 page are there fields
    the user will enter all areas and save, it will call the uneditable mode

    If the change button is clicked it will call for the editable mode

    My requirement is user will not change among these ites (45 items) clcik on save again it will call to view mode

    in this user will change one value among 45 Articles and click on the button Save I need to create more than one record in the database

    If the user will not modify one of the field elements of the 45 I will not create a new record in the database

    How can we achieve this feature


    Concerning
    Anthony

    Hi Mary,

    Please try this method to copy a line in the new line...

    public void copy()
    {
    Pervert SuppliersVOImpl = getSuppliersVO1();
    Rank rank [] = pervo.getFilteredRows ("SelectFlag", "Y");
    for (int i = 0; i)<>
    {
    Rowi rank (SuppliersVORowImpl)= SuppliersVORowImpl;
    OADBTransaction trx (OADBTransaction) = getTransaction ();
    Number b = trx.getSequenceValue ("FWK_TBX_SUPPLIERS_S");
    AttributeList a rowi = (AttributeList);
    R = (SuppliersVORowImpl) pervo.createAndInitRow SuppliersVORowImpl (a);
    Define your unique attribute values here, I'll put here Ref supplier as with each new line, it must be different.
    r.setSupplierId (b);
    pervo.insertRow (r);
    }
    }

    Kind regards
    Out Sharma

  • [ADF, JDev12.1.3] How to create a new record in a table filling one filed with the IP address of the client?

    Hallo,

    I create a stubborn workflow that begins with a create operation on the table where a new record should be added.

    The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.

    Could you kindly advice me which are the possible recommended approaches to achieve this?

    Thank you

    Federico

    Hello

    See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request

    You can use a createWithParams operation and to fill in this field.

    Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC

    Kind regards

    Ruben.

  • How to create a 404 with LabVIEW web services page?

    Hello community,

    I guess the question says it all... I have my site up and running, but I would like to create a default 404 page just in case the user mistypes something. How can I do?

    Thank you!


  • How do I create a branch to the form after you have created a new record

    Hello

    I created a master/daetail form with detail on the same page.
    It works very well.
    When you create a new record, on the details of the page, you enter the data, and you click Ok.
    Then you are directed to the main form, a report containing the lines of recordings.
    You must then click on the link in the column to change the record to add details.

    I want to do it is to branch directly on the same page after you create the record. Order to dot Hat I created a branch whith the value equal to CREATE demand.
    And the target is the same page. The problem is to the value of the primary key. This KP is created after sending, and it is not possible to recover because it is created right now. I hope I'm clear.

    To sum up the question: how to create a branch immediately to the same page after creating a new record?

    I have the page on

    [http://apex.oracle.com/pls/otn/f?p=4550 | http://apex.oracle.com/pls/otn/f?p=4550]

    The workspace is ESPACE2008
    Is the user name: guest
    the password is: noproblem

    The long form is page 42.
    The main form is page 41
    Unfoirtunately tables are not available.
    You can see the process of branch No. 50 on page 42.

    Thank you very much for your help.

    Christian

    Christian,

    I couldn't connect to your ws because I don't think that your guest user has developer privileges. But have you tried 'Back in the agenda key' property in the region of origin of your page DML process. This should return the value of the primary key newly generated in a page element when the page is loaded.

    Anthony.

    -----------
    http://anthonyrayner.blogspot.com

  • How to create the new folder on Oracle UCM?

    Hello

    After that I start the UCM_server I can't find how to create the new folder and I can't find the record of the 'Contribution records '. as shown in the attached picture.

    ucmfolder.JPG

    Hello

    Is it a new installation? You can configure the WCC with folder folder_g or framwork. You can use Server Admin-> component for Manager screen set up. It is recommended to use the framework with version dot 8 for optimizing the performance and scalability.

    About java applet question please check forums UCM browser compatibility issue

    Internet Explorer
    1. Click on Tools , then Internet Options
    2. Select the Security tab, and then select the custom level button
    3. Scroll to script Java applets
    4. Make sure the enable radio button is checked
    5. Click OK to save your preferences
    Chrome

    Chrome 42 version and more. From Chrome version 42 (released in April 2015), Chrome has disabled the way the browsers support plugins. More information

    Firefox
    1. Open the Firefox browser or restart it if it is already running
    2. In the Firefox menu, select Tools, and then click the option Add-ons
    3. In the Add-ons Manager window, select Plugins
    4. Click on plugin Java (TM) Platform (Windows) or the Java Applet plug-in (Mac OS X) to select the option
    5. Ensure that the option selected is Ask to activate or enable always or on older versions of Firefox, click the Activate button (if the button is disable, Java is already enabled)
    Safari
    1. Click on Safari and select Preferences
    2. Choose the Security option
    3. Select allow Plug-ins, and then click manage the Web site settings
    4. Click on the Java element, select an option (Ask, authorize or allow always) in the drop-down list When you visit other Web sites
    5. Click done, and then close the Safari preferences window
    Opera 4.x and Up
    1. Opera for Windows does not use Java, but an embedded already inside the Opera Web browser version.
    2. Opera for other platforms can supports Java. Please consult your Opera Platform documentation.
    3. For more information, please see the following Opera support article:
      Support for the Java software at the opera

    Thank you

    Amey

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • Smartphones blackBerry how to create a new folder in the video folder in the media

    Hi, I'm trying to figure out how to create a new folder in the video folder in the media. I can easily create new folders in the pictures folder, but not in the videos... Why? Thanks in advance for your help.

    well I'm sorry, I think that I have not read your emails correctly.

    The media application doesn't care about records at all. It will read the files, the tags when they are available, playlists, but it will not show the files. with the exception of the pictures.

  • Need to create a new record with the rules of the takeover bid

    Hi all

    I want to create a new record with OPA according to the result value (Service request is valid)

    For example
    When the demand for services is valid if
    There are (the activity is valid)
    the activity is valid if
    activity type = 'other '.

    Can someone help me how to

    Can you provide a little more information on what you want to do?

    If you want to create an object in, for example, a database based on the results of the OPA assessment or investigation, then that lies outside of the OPA and is usually performed by the client that calls the rules.

    If you want to create an instance of entity within the am Session OPA, then this will be involved custom code. There is an example of this in the OPA 10.2.0 documentation, see: example: enter into instances of entity with an inference listener in policy of Automation Developer Help. It is available online at http://download.oracle.com/docs/html/E20344_01/toc.htm

  • Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition

    Hello

    I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.

    I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.

    I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?

    And the help is very appreciated.

    Thanks and regards,
    Dinesh

    Recovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.

    A sort of migration of files from one to the other HARD disk is not solution.

    Only for laptop with factory will work and the usable recovery partition.

  • How to create the menu on the LEFT, as in new BBM?

    Is there any sample how to create the menu on the left of the application as in the new BBM?

    As I know not - there's a good menu, context menu, top menu... but how to create left?

    It's just a TabbedPane: https://developer.blackberry.com/cascades/reference/bb__cascades__tabbedpane.html

  • How to create a new project with other page with the new version of Muse layouts?

    Hello
    If someone would continue to operate as before with the inadmissible Muse version... is - this posible to have both versions installed? or how to create a new project with other page with the new version of Muse layouts?
    Or how to download third party) 3 different configurations (desktop/tablet/mobile) under the same url with a clean result, like up yet with the Muse does not?

    Thanks for any help,

    Patrick

    Use the new version! What you want to achieve, will work! Go to the 'Page' menu and choose 'Add another Layout' and the missed buttons are in plan view.

  • I out of the CC to my previous laptop and I can not understand how to create the link connection in my new laptop

    I out of the CC to my previous laptop and I can not understand how to create the link connection in my new laptop

    Hi Steven,

    You have the CC of Adobe desktop application installed on your machine?

    In the case is not, please see the help below document to download the same:

    Creative cloud to desktop

    Kind regards

    Sheena

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • I can't find the password for the digital signature. How to create a new.

    Several months ago, I created a digital signature. Now, I need and that you do not have the password. I don't know how to create a new. Any suggestions?  I'm not a person 'tech' so if you have any suggestions please make it simple!

    Hello

    I'm sorry but there is no option to recover the password for the digital signature.

    You can create a new one by following these steps in Acrobat Reader ms.

    Edit-> preferences-> Signatures-> identities Trusted certificates $-> more and click on "Add ID".

    You will see another dialog box and choose according to your requirement in case you want to create a new one by using an existing ID or with a new ID.

    Let us know hot, happening.

    Concerning

    Sukrit diallo

Maybe you are looking for

  • iMovie on ipad closed pro

    When I try to add my video of the right menu, stop just app. How to fix it.

  • No sound on Satellite 1400-103

    I have no sound after I re-formatted my Satellite 1400-103. I tried a number of drivers, including the last ALI WDM Audio Driver. The system indicates that the audio device is not functioning and there is no conflict of interest. I checked the BIOS a

  • How to read the Thai language in .txt file?

    AttN; Who may apply. How read txt file in another language (Asian language like Japanese, thai or Korea)? Please let me know urgent... I have to use emergency... Best regards SAE

  • How can I get a map?

    Whenever I try to buy a plan, this page is in place. It of nothing to click on the page, or anywhere for me to purchase. I tried to follow the instructions, but I can't even add in my payment information. Anyone experience the same problem? If you kn

  • New computer, existing agency CC project will not open "the project appears to be damaged, we can't open."

    I just got a new computer and my existing projects will not open. I get a message on the launch only: the project appears to be damaged, it cannot be opened.I move the same project to my old MacBook Pro, and it opens.I move to a HP Z820 with Windows