Select and validate the newly created lines (data stop) in ADF

Hi all

Here's the problem of mine: I want to validate and save the data in the SERIAL_EXCHANGE table, include NEW_SERIAL_NO and OLD_SERIAL_NO. The OLD_SERIAL_NO is not allowed to save in 2 files, I used the getCurrentRow method to select the new created line and validate it. This method works when I do not change the selected line and create other rows consecutively. But when I do, the method does not work well.

So I want to find a way to select newly created lines and validate their value before they are committed to the database. Please help if you have an idea how to solve.

Thank you
VnMa

This in the right place - DB

unique index on the old serial number
foreign key to validate the existence of the old serial number of the other table

In the ADF, you would use a unique key for the uniqueness and association EO to validate the existence of the other table.

Tags: Java

Similar Questions

  • Insert new line in VO, engaging, and then call vo.executeQuery () does not display the newly created line.

    Hi guys

    I use jdev 12.1.2.

    I have a question about stale view object and entity data object.  My use case is: I have an af:table bound to data that I use to insert a new row in the database.  I create the line with a call from createWithParams, and everything works fine with it.  I call commit on the application module that contains the view object, and the data is correctly inserted in the database table.  Then, as part of my needs, I call vo.executeQuery () on the view object, however the newly inserted row is not present in the af: table or view object.  The line does not appear until I leave my application and return to it.  Once I do this, the line is in the object view and appears correctly in the table.

    It is not enough that I need the view object to be aware of the new line (s) without having to restart the application.  Y at - it a setting I am missing in my display object?  I guess my entity object contains stale data, but I don't know how to refresh its data.  Thanks for reading.

    Lance

    Hello

    you use a viewCriteria, so the value of this method of execution both (database and memory) in the Panel of viewCriteria

    try it once

    Thank you

  • Delete operation does not remove the newly created line of VO

    Hi all

    I use Jdev 11.1.1.7

    I try to use a simple delete on a line of an af:table operation.

    The line is newly created (not in DB) and I have some autoSubmit = "true" defined on certain inputText of the table (not sure if it's relevant information).

    I followed the nice post of Andrejus on the immediate = "true" the button Delete.

    Andrejus Baranovskis Blog: Deleting line new form ADF (ADF followed Webinar)

    It works fine when I delete the line, it ignores validation and disappears from my af:table.

    But when I commit my transaction, all new lines, even those deleted, stored in DB.

    No idea what could be the problem?

    Let me know if you need me to post the code.

    Thanks for your time!

    I found the problem in the definition of my VO.

    The use of the entity has been defined with the property DeleteParticipant = "false"...

    What I don't understand is the reason why I had to go to the source to change, in the overview of the VO, the box is read-only...

  • How do I get the handle to the newly created line

    Hello
    I have a classic table with button to add a line, property of AutoText on the bean table is true.
    I need to get a handle to the newly inserted row, once I click on Add button line.
    I tried getCurrentRow and also vo.last (), but it does not work for me.
    The new line is always added last (which is normal) but the cursor always go to the first row of the table that of why I guess currentRow don't get me the newly inserted row.

    How can I put the cursor on the new line or get the current line add after click on the button in the row.
    The workaround I use so far is defined the AutoText to false and then manage the button Add a new rank by rank to create on the VO but I want to assure you that the reverse also works.

    Thank you
    Anatoliy

    Hello

    We can create a line in 2 ways:

    (1) setting the Autoinsertion property to true.
    (2) dynamically by code

    -wht im saying is that you can set the value of the attribute using the nd method 2 only. (Autoinsertion to false)

    Concerning
    Meher Irk

  • Cursor does not focus on the newly created line.

    I use JDeveloper 11.1.1.4. Whenever I create a new line in the table of the adf, the cursor does not focus on new line. He always focuses on the last line that clicked before adding the new line.

    see that this can give some ideas

    Information about ADF: creating a new line and create update auto focus

  • Windows Live Mail - How can I move old files to the newly created folders mail?

    How can I move old files to the newly created folders mail?

    original title: windows live mail/vista/records
    1. Simple click on the header of a message to select it.
    2. CTRL + F3 will highlight all.
    3. Right-click on highlighted messages and drag them to the new folder.
    4. Release the mouse button and select copy here.
    5. If the move is successful, delete the original folder if you wish.
  • Cannot open a session to the newly created user account

    I created a new standard user account via account management/accounts/user control.  When I log into the admin account and try to connect to the newly created account, I get the error message "the service user profile Service has no logon" "could not load user profile.  Click OK and it disconnects.  I can still log on to all the other 5 accounts that I created after I implemented this new laptop (preinstalled with windows 7).  When you click on a new account the first time, the system should establish the office and create the user records.

    I went into the Admin account and checking the application event log.  Event ID 1509 "Windows cannot copy file C:\Users\Default\ to the C:\Users\New Test Account\ location.  This error can be caused by insufficient security rights network problems. "DETAIL - access is denied.

    I solved my problem.  The index was at the event journal entry.  The permissions on the folder C:\Users\Default screwed up. (not sure how that happened).  I compared the authorization for this folder on my laptop win 7 with permissions for the same folder on my computer vista laptop.  Computer laptop win 7 has a few additional entries.  I deleted them and now I can create and open a session on new accounts on the laptop win 7.

  • Impossible to select and move the letters while playing 'Word with friends' through facebook

    Original title: play games

    During playback "words with friends" through face book... I can't select and move the letters on the touch screen without the screen, scrolling up and down.
    I need the touch screen to allow the movement of the letters c A C H, etc. on the game board without scrolling of the image of the screen!
    Several of my Face book games does not load completely without hanging... both Adobe Flash player and Windows are also perfectly up-to-date.
    Kind regards

    Hi Stephanie,

    Looks like you are unable to play words with friends on Facebook and also problems with other facebook games.
     
     
    Since you are faced with a design problem with the play on words with friends on facebook, I suggest you to contact the administrator of the game to get more information about the compatibility of the game in Windows RT. You can also ask if they provide latest app for the particular game.

    support.Zynga.com/Home/Words-with-friends
     
     
    I would also ask you to contact Facebook to get information about other games:
     
     
     
    Hope this information helps.
  • What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.

    But you must be careful, your external drive is always connected and available before the Photos and to import new photos.

    If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.

    But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately.  To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.

    Or use third-party "PowerPhotos" to move photos between libraries.  But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software

  • Select and hide the query

    In Photoshop CC when I use select and hide the 'onion skin' filter does only rarely. Any suggestions as to why this could be?

    Works perfectly! I'm wondering now if I had the - ticked instead of +. Seems as if could be the answer and if it does not work in the future I'll check everything here first. Thanks for your time and your help.

  • Paint with white in selection and hide the workspace

    Hello

    I'm in selection and hide the workspace > discovers black & white. When you use the Paintbrush tool, how to switch between painting with white and black?

    With the Brush tool selected paint just in the black and white view and this is equivalent to paint with white. Now the alt key or option is equivalent to paint with black.

  • 4.0 ai2 - cannot select and copy the code from a package body when opened in read-only mode

    4.0 ai2 - cannot select and copy the code from a package body when opened in read-only mode

    He was connected/buggy. It is not fixed yet. But it will be.

  • How to use a parameter query to select and display the data in the table of the façade

    Hiiiiii

    I am using Access 2007 database
    I want to select the specific data in the database using control of the chain as 'select product, size, weight of ProductInfo where barcode (chain control) =?'  and also display the same table of façade.

    I use the connected database toolkit.
    I saw the example of the parameterized insert, but it did not help to use parameterized select query, as well as to display data of parameterized select query.

    I looked for example on parameterized select query, but I don't have any.
    So pls guide me how to do this. I would like to know the other method (if any) that the use of parameter query to perform the same thing.
    If possble pls share a vi reference.
    Thank you!!!

    HII szewczak
    Thanks for the reply
    but I did not getsolution in one of your shared links
    My problem is solved. There is no need to use the parameter query to select control values
    In my case I want to display data from database where bar code is even entered by the user
    I use the data function DB TOOL CHOOSE and create the condition of chain based on concatenation of strings

  • loading data into the newly created table

    I have a basic question


    I have a table named 'A' and it has 5 columns

    Now, I created a new table 'B' and copied the 4 columns of table "A".

    Now, I have to add the 5th column along wiith given in table "B".

    my table for 'B' have now 5 columns and the same data that the table 'one '.

    Could someone tell me the procedure. According to my knowledge, it is not possible. Can I even the reason for it.

    Note: With let them down my new table

    Thanks and greetings
    Pallis

    Assumption: You have the following table:

    Table1 (a number, b, c number, number d, e number);

    You made Table2 from table1 as below with the same data as for these 4 columns table1 table2.
    Table1 (a number, b number, number c number d)

    Now, you want to copy the e column too in table1 from table2...

    Means the simplest is:

    drop table table2;
    crate table table2 as select a,b,c,d,e from table1;
    

    Another way is:

    alter table table2 add e number;
    
    update table2  t2
    set  t2.e = ( select t1.e from table1 t1 where t1.a=t2.a and t1.b=t2.b and t1.c=t2.c and t1.d=t2.d);
    

    If you have the primary key on table1, then only the primary columns must be mapped in this inner query where clause.

    Kind regards...

  • How to associate the data store of the target for the newly created using the API Interface

    How to create a new Interface under project, need to associate the data store target for mappings for the interface by using APIs "."

    Able to get the associated interface created temporary data store. You need to associate a new database model. How to do this using the API

    My code is,

    String pCode = "DEVELOPMENT";
    Context OdiContext = (mgr.getFinder (OdiContext.class)) .findByCode (pCode) (IOdiContextFinder);
    System.out.println (Context.getLastDate ());

    OdiInterface pInterface = new OdiInterface ("toDeleted_Interface", pFolder, context);
    pFolder.addInterface (pInterface);

    The list of ds < DataSet > = pInterface.getDataSets ();
    < DataSet > iterator itr = ds.iterator ();
    DataSet ds_nxt = itr.next ();

    PAlias string = "HRA_TMPL_DEFNS_TL";
    pOrder int = 0;
    OdiModel pModel = (mgr.getFinder (OdiModel.class)) .findByCode ("FILE_PM_MODEL") (IOdiModelFinder);
    String pName = "HRA_TMPL_DEFNS_TL";
    OdiDataStore pUnderlyingOdiDataStore = new OdiDataStore (pModel, pName);
    SourceDataStore pSourceDataStore = new SourceDataStore (ds_nxt, false, pAlias, pOrder, pUnderlyingOdiDataStore);
    ds_nxt.addSourceDataStore (pSourceDataStore);

    TargetDataStore tdata = pInterface.getTargetDataStore ();

    If (tdata.isTemporaryDataStore ())
    {
    }

    http://odiexperts.com/creating-interface-for-single-source-and-target/
    http://odiexperts.com/creating-temporary-interface-using-ODI-SDK/

Maybe you are looking for

  • "Data dashboard" version 2.0 list drop-down list seen only "one, two, etc.» Instead of the text Enum

    I am currently using the new data on an iPad dashboard 1. I'm coding in suite developer Labview 2012. I found that switches work very well when it is associated with a shared variable. I finally managed to get the drop-down list to control a shared v

  • The installation journal

    I work in a lab environment that is not connected to an outside network. We run a simple domain controller in AD DS. We also administer a U1c 5.5 with about 20 mV and four hosts vSphere suite. Everything works on Server 2008 R2 (we do not have a lice

  • Comparing CAN messages

    I'm sending a voltage to a node we build and seek to control the message BOX the node spits back, which is converted into a real number of PSI by one of our consoles.  How can I just wait for a single message and CAN have other compaired so that I ca

  • Cannot cling to the network-WRT 54GS

    Every day I learn something. Today I learned that I don't know sh *. I have an old WRT54GS router (what a V1.2?) and a 54GS WUSB adapter. I'm back to the old system after having tried a Netgear N system added strength or speed signal. After a near co

  • Trying to create the recovery for Vista, error message disk on scriptlibrary.dat

    try to create a recovery disc for vista, cannot that a window pops up with the following. ScriptLibrary.dat cannot be varified for digital certificates, automation server can't create object Help, please