Undo the insert does not properly - Popup

Friends

To speak frankly fed up with Oracle ADF (Newbie .net was much easier)

I have a use case for the edition of Masters details... Details are displayed in the table... For detail edit and create operation I use popup with the Control Panel window.

My problem.

I used a managed bean and operation of 'Create' to add new lines of appeal. Works well, but when I cancel my code does not work, I still see a blank line in the table of means...


I get the rwStatusfrom method AM to check the status of the line. Please see the code.


If (NEW".equalsIgnoreCase (rwStatus)) {" "}


RW. Refresh(Row.REFRESH_UNDO_CHANGES |) Row.REFRESH_REMOVE_NEW_ROWS);


}
on the other
{
RW. Refresh (Row.REFRESH_UNDO_CHANGES);

}


If I add dtIter.getViewObject () .clearCache (); the code above Houston line concurrency exception is thrown, but new line is deleted.

I even regenerated my table... No use.



At the beginning I used "CreateInsert" for the insert operation and it was much easier remove the line but the question during the insertion of the first record my validation was immediately called in the showPopup (before adding data) so I tried the "Create" operation.


Advice me please. I'm in the third day with this problem. (Creation of Bothe and CreateInsert works perfectly well in a form (view) but only question in popup).

Thank you

Published by: KK_Ash on May 26, 2013 08:13

Hello

in fact + "to speak frankly fed up with Oracle ADF (Newbie .net was much easier)" + "

is a very very very bad start for a question of aid - honestly. Its never a good idea to disrupt a forum before asking for their time to solve your problem. To delete the line of the display, you must remove the link layer and not in the morning (which should get updated automatically). Then in the dialog box change the logic to cancel it if you access the current row of the iterator

  BindingContext bctx = BindingContext.getCurrent();
  BindingContainer bindings = bctx.getCurrentBindingsEntry();
  DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("iterator name");
  iter.getCurrentRow().remove();

See for how to handle the OK/Cancel button in a dialog box: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf

(which is basically your use case)

Frank

Tags: Java

Similar Questions

  • Scrolling the page does not properly respond to BlackBerry Curve9360

    Hello friend

    I have developed applications for BlackBerry (JqueryMobile, Phonegap) the application works fine in BlackBerry Torch 9800.

    But once I've installed in BlackBerry Curve9360, scrolling of the page does not properly, that I am not able to view the complete list of items and long text.

    Help, please

    I came up with the solution, the problem occurs because BlackBerry Curve 9360 isn't a touchscreen, there fore scroll doesn't work.

    In my applications, I add 2 pages "index.html."

    on the first page, you have to test if the device is not touch and redirect to the second page.

    Do not use the page for "BB Curve" scroll and any other animation like CSS "" - webkit - transform: translate3d "»

    The other js script go without a problem.

    The page "BB Curve" to redesign the html for use with the cursor,
    For example, the menu is smaller, the police is smaller.
    the size of the screen is fixed.
    Dimension height is better indicate a value min eg 300px
    etc...

  • Go back to the snapshot does not properly

    Hello everyone

    I did a VM machine to make images on, in order to get own image as possible. And during this process, I took a lot of pictures and came back, but now it seems that the revenant does not work. It does not the machine in the State wherever it was, even if the server indicates its restored.

    Any suggestions on this?

    Greetings Slasky

    No, do not remove them. There are references to these. Create a new snapshot and remove it via the Web GUI. Then all the others should go, as well.

    If this does not work, we can manually delete snapshots.

    AWo

    VCP 3 & 4

    Author @ vmwire.net

    \[:o]===\[o:]

    = You want to have this ad as a ringtone on your mobile phone? =

    = Send 'Assignment' to 911 for only $999999,99! =

  • The function does not properly when you use the shortcut to insert

    Hello everyone. I am using first Pro CC V9.2 on a PC.  I am as well as a Lynda tutorial and told me quite clearly that using the comma key insert a subclip in my sequence.  However, using the shortcut brings in the full clip, not the sub.  I just bring my subclip using a drag and drop, which is really slow me down.  Anyone know what this could be?

    When you perform your subelements, you Restrict toppings to the limits of a verified subitem?

    MtD

  • Re: x 505-"turn off the display" does not properly

    To make a long story short, I had a load of problems with my Toshiba Qosmio X 505. I talked to tech support and they had me completely clear the computer and reinstall the OS. Everything has been fine for days until today!

    For some reason any whenever my screen turns off (for energy saving), I can't get my computer to respond. I don't know if he's asleep, going into hibernation mode, or even the difference between one of these things, but when I press the buttons, move the mouse/Touchpad, try multimedia keys, the power button, nothing makes my computer come back. I have to hold the power button / stop and completely restard come back again the computer.

    Why is this happening? It worked great for everyday, but I think it has something to do with the NVIDIA driver update I downloaded. It is the main change I have made to the computer yesterday and now it seems to do. Does anyone have recommendations? How can I make my computer stop doing that? I have all the options of my black screen off for now, but that does not seem a good solution for this problem that he used to work properly.

    Hey,.

    Akuma is right, you should only use the display drivers provided by Toshiba and not nVidia. The nVidia drivers are not pre-tested and that's the reason why they can cause such problems. Also they don t have an overheating protection, installation happens on your own risk.

    If you need to test it with the drivers from the official website of Toshiba. Prior to installation, remove the current display driver, and then restart the computer. Then you can begin with the installation of Toshiba display drivers.

    In the worst case it of necessary to reinstall the whole system again, but before that, you try a system restore to an earlier point.

  • If else check box in the table does not properly

    I'm new to this forum and hope someone can help me with that.

    I created a dynamic array and I have 2 types of boxes.

    One is a check box for the individual lines that fills a value in a cell. Otherwise, it will be zero.

    Another is a master checkbox that activates the check all lines and value box

    Problem statement:

    When I click on the master check box, every individual is selected. However, the value of the cell is incorrect. Value of all the rows is based on the value of the first row.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    Table.Row1 [*]. Cell4 = table.row1 [*]. Cell2;

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    Table.Row1 [*]. Cell4 = 0;

    endif

    Check box for the individual line (using the formcal in click):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Otherwise, I tried to turn the master value of the box fill off & put a validation in each line instead. This time it works! but it kept prompting a message for each rows whenever I unchecked the box: "the value of Checkbox1 is not valid.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    endif

    Check box for the individual line (using the formcal to validate the event):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Appreciate all the help that I am at a loss as to why the tis error occurs and how to solve it.

    Thank you!

    Hello world

    I managed to find a solution to my problem. I write for the benefit of any1 facing the similar problem.

    I changed formcal to Javascript.

    Master box (Click event):

    vRows var = Table._Row1.count;

    for (var i = 0; i)

    {

    If (this.) RawValue is "1")

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "1";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell2.RawValue;

    }

    on the other

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "0";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = 0;

    }

    }

    Another point to note, it only works for the table of data binding. If the row in the table has been created original, somehow the Table._Row1.count does not work. It detects that the value = 1.

    Thanks to all who tried to help me!

  • Android version of the site does not properly.

    I created a site with a mobile version, that works perfectly on the iPhone, but the horizontal Android version does not seem to be scaling to fit in horizontally. There is nothing complex in the site and all images seem to stay the same size and hugging the left during a rotation.

    Home

    Hello Akshay,

    Thanks for the research on the question for me. I can get to the bottom of it. I was design to the default size of phone Muse. My Android device seems to have a high resolution, so it does not move up. Pushing the page width to 640px it seems to work. Probably a stupid mistake on my part!

    Kind regards

    Matt

  • Wind of the filter does not properly - CS5

    Hello

    Maybe because its Friday, but for some reason my wind filter is not create the "plotters" or "trails" that I'm used to seeing.

    My goal is to create a movement on white text effect.  "Tails" do not grow in length when duplicate filter on & more as it should.  What I am doing wrong?

    Example:

    This is the text after the filter is applied once.

    Test1.JPG

    Here is an example after the 3rd time of application of the wind filter.

    Test2.JPG

    As you can see, the streaks are still in the text. It does not create fine streaks that I need.

    Probably I'm missing something obvious, but I can't find a solution to this anywhere.

    Thank you!

    -CM

    Bright pixel is blown out in the dark. See the thread: trouble with wind tool.

  • Edge of the scans does not properly?, synaptic touchpad

    Hi Matthew, I have exactly the same problem. Have you sorted? It seems to be a problem related to the options and where the touchpad decide or think it should work or use certain features.

    The fact that it works in the start menu, seems to indicate that it is a problem not to know if it is functional, but that in some way, Windows changed functions. I could be wrong of course, and maybe it's a common bug.

    I spent all morning trying to understand why the touchpad work not at all. Once I figured out that Windows had extinguished after an update that I am now faced with a sort of settings modified on this subject. I can't redo the update because it cut the functionality of scrolling all together.

    Any help would be appreciated.

    That's great. I push an update that was made for the driver and then installed again. That helped for a while, and then the same exact sequence of events began to reproduce which involved a gradual dropping out of the feature. So I sent back for repair or replacement. But thanks again for your help.

  • point by point the filters does not properly?

    I have attached a .vi which shows what looks like a bug in one of the filters point by point, is there a fix available or I do something wrong?

    Thanks for posting,

    John

    Hi John, I did tests on the SUbVIs used in your program and found the following: compare schemas block 'PtByPt.vi of Inverse Chebyshev filter' and ' filter of Chebyshev reverse (DBL) .vi. The 'Inverse Chebyshev filter PtByPt.vi' uses 'Chebyshev Coefficients.vi', then the 'filter of Chebyshev reverse (DBL) .vi' uses 'Inv Chebyshev Coefficients.vi. Shouldn't the function of point-by-point also to use the same 'Inv Chebyshev Coefficients.vi' VI for the co-effecients. I'm not an expert in the theory of filter, so can't really say if it is a bug in LabVIEW. I had to convert your VI to 8.5. Do not know if that could have messed up things. I hope this helps.

  • Cut the light does not properly

    Hello

    I have a HP Pavilion dv6648se Special Edition purchased 10 years ago.

    I've recently been helpedby the community to fix my audio driver, but now, something has gone wrong.

    The mute button on the quick launch buttons remain blue, even when it is silent. It's a very small detail, but I would it is fixed.

    Thank you.

    SwiftMonkey.

    Hi again SwiftMonkey,

    Thanks for the quick response!

    QuickPlay is designed as a fast access to music, video, DVD, games and karaoke. QuickLaunch is a function used to key recommended to adjust applications such as sound, the WiFi radio and press mute. The solution should still work even if you have a QuickPlay application installed on your system!

    Please re-post with the results of your troubleshooting, and I look forward to your response!

    Concerning

  • Search the walkman does not properly

    I've just updated to the latest version of lollipo, it is very good when I want to play my music and search for the word, nothing is displayed. Please hel... Thank you.

    It works now, as they said just cut paste, the internal SD and on SDCard again. Work is very well now...

  • I was doing a winpeshl.exe.error when starting "the application was not properly initialze (0xc0000006). "Click to complete the application.

    I was doing a winpeshl.exe.error when starting "the application was not properly initialze (0xc0000006). "Click to complete the application" when I click ok it reboots. I can even recover the system, tried F8 startup, alt/F10, F2, launch repair system, Safe Mode and all the rest and still get the same error. System specs are Acer Aspire 5920, Intel T5450 processor, 2 GB ram, 160 GB of HDD, windows vista edition Home premium.  I am currently under the memory diagnostic tool windows, but it is said that the test results will be displayed again once you log in, but I can't log in to view them.  The test seems to be hanging around 21% so I don't know how well it will do

    Hi A1W1LL,

    A clean boot helps eliminate software conflicts.  Let us check if software is causing the problem by following the clean boot procedure that may help you resolve the issue.

    To perform the clean boot procedure, follow the instructions in the link below.

    Step 1: Perform a clean boot
    Step 2: Enable half the services
    Step 3: Determine whether the problem returns
    Step 4: Enable half of the startup items
    Step 5: Determine whether the problem returns
    Step 6: Resolve the problem
    Step 7: Reset the computer to start as usual

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    After reviewing the issue, put the computer into Normal mode.
    Uninstall or update the program that is causing the problem.

    If you are not able to boot to the desktop, you can try to restore your computer from WinRE.

    1. Insert the Windows Vista installation disc in the disc drive, and then start the computer.
    2. Press any key when the message "Press any key to boot from CD or DVD".
    3. Select a language, a time and currency, and a keyboard or input method, and then click Next.
    4. click on repair your computer.
    5. in the System Recovery Options dialog box, select the drive of your Windows installation and click Next
    6. in the System Recovery Options dialog box, click System Restore.
    7. follow the instructions in the wizard to restore system as usual and choose the appropriate restore point.
    8. click Finish to restore the system.

    Please post back and let us know if it helped to solve your problem.

    Kind regards
    KarthiK TP

  • I upgraded to latest version firefox 29,0 in windows machine 7. All the user interface looks very good. Undo close tab does not work for me. Is that not been addressed?

    Undo Close tab does not work in windows 7 for firefox latest version 29,0

    You can do this via CTRL + SHIFT + T as well.

    You can try to start Firefox in Mode safe to see if Firefox works correctly without error? You can start Firefox in Mode safe below:

    • Windows/Mac: choose Help > restart with disabled modules
    • Linux: run firefox-safe-mode in the Terminal/Konsole

    If Firefox opens fine with no problems, it is probably one of your extensions that is causing the problem. You can reactivate your modules one by one until you find the one that is causing the problem to be re-activated.

  • When I click and drag a window to move its location on the screen does not move properly.

    When I click and drag a window to move its location on the screen does not move properly. It leaves a "track" of windows. Whatever the problem is scroll is also affected when the page moves in waves. Why he started to do this, and if someone can offer a solution? Thank you!

    original title: "leakage" of windows

    It is a common problem with how XP displays the items on your screen. When things get a bit bogged down, you'll start to see trails of the window as you drag. Unfortunately, there is no solution, but future versions of Windows do not have this problem with a new rendering of the graphics system.

Maybe you are looking for

  • Pavilion 17-g011nm: bcm43142a0

    I buy HP Pavilion 17-g011nm and windows 64-bit eng SL 8.1 and have problem to install BCM43142A0. I try to install manually from the page http://support.hp.com/us-en/drivers/selfservice/HP-Pavilion-17-g000-Notebook-PC-series/7771368/model... but with

  • Pavilion 127c 550: 550-127 Office c a 10-7800 wakes up from sleep

    I just got a desktop with windows 10 computer and it worked fine for 2 days.  Now, when he goes to sleep he is unresponsive to the mouse or keyboard to wake up.  I completely close and restart to make it work.  Support online resources can not downlo

  • Satellite P200-144 - lost profile user & Running very, very slowly

    Hi, please excuse my explaniation below, but I'm not very technical interest and need help? I have a Satellite P200-144 curries in Sep 07 was bought for my college courses. I listened to a CD of night via windows media player. CD proceeded to freeze

  • How to get windows 8 back?

    I bought a HP 2000 comes with windows 8 pre installed series. For reasons of work that I had to replace it for Windows 7, and in the process, I lost all my data. I would like to know where I can get the iso of windows 8 to reinstall because I don't h

  • Other user accounts can see items on the desktop on my user account?

    Hello If I save something in my office, sign out, and then someone else use my PC and sign as themselves. Can they see what I recorded on my desk? Thank you Sarah