How to remove newly added line in table advanced

Hello

It comes to 12.1.3.

I have a case of use with advanced table and the "Add Row" button.

The user can add two lines (empty), field 2 (both part of PK, the two LOVs), then start filling, then realizes he added too many, because the TooManyObjectsException exception is thrown. What would be the 'Nice' way of having the last added row deleted, or some newly added lines to delete if a few lines have been added (before actually trying to commit). I mean how must reference any row that has been added and should be removed - this line do always not PK (PK because not even adjustable due to violation of PK if this makes sense). Is there a fun/easier way to do it? Would be great if someone could share a line or two...

Thank you

Anatoliy

PS

I have a delete button in a footer with action to fire the event as 'remove' in LICS, I like below, and copy the following code deletes the LAST record in the advanced table, not the one where the cursor is?

If ("delete".equals (pageContext.getParameter (EVENT_PARAM)))
{
String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Line OARow = (OARow) am.findRowByRef (rowRef);
Row.Remove ();
}

Asmirnov-Oracle wrote:

Hello

Yes, I actually try this approach too.

Have what approach you tried? 1 or 2?

If you try to follow the second approach, you can try this?

OAViewObject srcAppvo = (OAViewObject)findViewObject("SrcAppVO1");
if (srcAppvo != null) {
    RowSetIterator srcAppRowItr =
        srcAppvo.createRowSetIterator("srcAppRowItr");

    try {
        Row srcAppRow;
        srcAppRowItr.setRangeStart(0);
        srcAppRowItr.setRangeSize(srcAppvo.getFetchedRowCount());
        int recCnt = srcAppvo.getFetchedRowCount();
        while (srcAppRowItr.hasNext()) {
            srcAppRow =
                    srcAppRowItr.next();
            if (srcAppRow != null) {
                if (srcAppRow.getAttribute("SelectFlag") != null &&
                    srcAppRow.getAttribute("SelectFlag").toString().equals("Y")) {
                    srcAppRow.remove();
                }
            }
        }
    } finally {
        srcAppRowItr.closeRowSetIterator();
    }
}

Tags: Oracle Applications

Similar Questions

  • How to get to the newly added line in the advanced table

    Hello

    I moved to table. In the table contain actions, add a line button. After adding the new line how to access the new line to the runtime so any solution.

    That's why I suggest you take a sequence of database and the following value whenever you create a new line. Many Oracle Applications follow this approach and I would highly recommend you to do the same thing.

    Concerning
    Sumit

  • How to remove a column from a table in a dell identtiymananger 7.0

    How to remove a column from a table in a dell identtiymananger 7.0

    Hello

    In Version 7 of the removal of a single custom column can be accomplished by a stored procedure, available in the database called: QBM_PColumnDrop

    Hope that helps.

    Cordially Fatih

  • How to display a line newly added to a table.

    Hi friends,

    I use JDeveloper 11.1.1.5.0.

    I added an Add button in my jspx page. When clicking this button, I'm adding data in a table, which are already stored in the session.

    When do the refresh of the page, I want to show the data newly added as a line in the table.

    Please help me.

    Thank you

    $@M$

    You forgot to mark the good and useful response...

    your branding can help others find a solution to their problems of eaisly. ;)

  • How to remove the black line with a canvas stacked at run time?

    Hi all
    I developed a canvas stacked in a table of content, when I run the form takes the apeared canvas stacked with a black line.
    How to remove this line, or how to remove this line at run time?
    I tried to do by putting (no line) in the Toolbox of the line color tool after selecting black line one and after selecting the stacked another painting once, but this has not solved the problem!

    I need something else:
    I put the canvas stacked to the block of data in detail and did not appear since I run the query in the database block
    How to make appear stacked directly canvas before you run the query in the master data block?

    What is your version of forms? I don't know what black line you're talking about.

    Regarding the display of the canvas, first make sure it isn't about who has the focus and she rides (located under the canvas completely or partially) your canvas stacked, this will cause to the canvas to hide in order to display the item that has the focus. And you can also try using SHOW_VIEW ('your_stacked_canvas'); in your form, this will show the stacked canvas.

    Tony

  • How to remove the colors of the table of characters fill colors

    Hmm. I got to ask questions of the pages for Mac screen, but it looks different from what I've seen in the past. So, I hope I'm in the right place. Over time, I selected some colors in the color popup in the character frame and saved.  I tried to change a color by changing the opacity. Then I tried to save this color has changed for the lines at the bottom of the pop-up window.  It did not work. I would have saved the color that appears in the large square on the left.  Anyway my question is how to remove these incorrect colors lines down.

    I know that this little logical so I am attaching the screenshot I'm talking about.  I want to remove the three red squares, two on the line and the other on row down all in the middle of the screen.

    Thanks for your help.

    EHW

    HI ehw.

    This is the right place. He underwent extensive design of the overnight changes.

    don't think that you can "erase" the colors that you place in the custom palette, but you can replace them easily using the same method the first time:

    Set up color using the sliders or the color space, and then drag the big box and drop on the color you want to replace.

    Here I replaced two red with white.

    Interesting change of color of the header between the two images. Both are screenshots, the left using shift-control-command-4 then pasted from the Clipboard to an empty page in the Pages, the right is the actual color palette. Both were then with SHIFT-command-4 to maks a file that was then inserted here.

    Curious.

    Kind regards

    Barry

  • How to remove contacts added without my permission?

    When I clicked forward, my contacts list contains e-mail addresses highlighted in bold black print.  They seem to be sites for adults that I have never visited but might have found a door furtively in my junk e-mail.  They are not in my contact list and I can't understand how to remove them.  And is it possible to block new added to my list.  Thank you.

    In Hotmail,.
    1. Click on Contacts.
    2. Click on View invitations.
    3. Click groups.
    4. Click No, thank you to those who show themselves.
    5. Click on change settings of your invitation
    6. Select private.

    Hotmail has its own support at the Windows Live Solution Centerforums. Please address any other question you may have on one of the forums on the right side of this page.

    Noel

  • How to remove the new line?

    Hello

    I read a text file using java and send its contents by mail. I want to remove space (new line) as shown below in line 3. How can I do in java?

    Content of the file text (line numbers for reference)

    Line1: Sales details 1
    Row2: CN P1 C1 E1 1,958
    Line 3:
    4: Sales details 2
    Line5: CN P2 C2 E2 2,529

    Thank you
    K. Henry

    May not be more obvious.

    if(!(members.contains(strLine)) &&!"".equals(strLine.trim()))
    
  • I still have not found "help" to tell me how to remove all the lines and columns beyond those needed for my spreadsheet.

    I used several worksheets.  More allows me to specify the rows/columns and then delete them.  This is to remove all the lines/columns beyond those set up and formatted for my spreadsheet.   I tried many ways to remove all additional lines/columns, but without success.  I even took the time to scroll down/on to highlight all the unnecessary lines and columns, but they do not remove it.
    Any suggestions?  I used spreadsheets most allow me to specify the number of rows/columns for my worksheet

    You can ask your question in the office | Excel Forum because it is not really a problem of Windows XP performance and maintenance.

    Office | Excel

    http://answers.Microsoft.com/en-us/Office/Forum/Excel

    Also, providing specific information may help to get a faster response or better, such as the version of Office or Excel? version of Windows XP? Home, Pro, 32-bit or 64-bit.

    I hope this helps.

  • How to remove live wallpaper of mesquite table 1800

    I accidentally put wallpaper on my tablet from hp 1800 mesquite.  Now I can't understand how to remove it.  Help with this please.

    1626 wrote:

    I tried and it is not what I wanted.  I don't want any wallpaper.  How can I remove it?   Thank you

    Go to settings app/display/papers painted.

    You can choose something.  If you want a black background, take a picture in the dark, then use it as your wallpaper.

    WyreNut

  • Link to view County line in table advanced

    Hello

    I Advanced Table in an array of advanced in the area of retail.

    ADV Table1

    ADV - table 2

    I used the link view to display data from Adv Table2. My requirement is to make false the second table advanced when there is no data.

    I want to understand the points below: -.

    (1) link should be performed explicitly or it is performed when executing Adv Table1.

    (2) can we get the number of rows of the VO AdvTable2.

    I tried to use the code below, but he doesnnt seem to work

    ViewObject itemspecvo = (ViewObject) am.findViewObject ("xxitemStepSpecInfoVO1");

    System.out.println ("number of lines ItemStepSpec" + itemspecvo);

    If (itemspecvo. GetRowCount () == 0)

    {

    OAAdvancedTableBean specbean = (OAAdvancedTableBean) webBean.findChildRecursive ("region128");

    specbean.setRendered (false);

    }

    Any help is appreciated that this requirement is urgent.

    Kind regards

    XYZ

    get the h VieLink descriptor, using the findViewLink method and then use the getDestination method.
    This method will give you a display image region (advanced table) object.
    Then use VO object, you can use getFetchRowCount.

    ViewLink vl = am.findViewLink("View_Link_Instance_Name");
    Get the Master VO

    Vo1 OAViewObject = vl.getSource ();

    Get retail VO

    OAViewObject vo2 = vl.getDestination ();

  • How to set a Total sum only for the newly added lines

    Hi Experts,

    JDeveloper 12.1.3.0.0

    Hi I have a table and above, I have an Add button. During the click on Add I only show new lines using CreateWithParams.

    Existing or rescued lines that I went under certain conditions as false. So, how can I calculate the sum of the salary only for new lines and display it in the column Footer.

    Thank you

    Roy

    One approach would be to browse all lines and sum of lines in the getter for the variable 'total '.

    http://adfcodebits.blogspot.com/2010/04/bit-4-iterating-view-object-using.html

    Dario

  • How to remove the jump line, characters and past of a table column?

    HII,

    I m using 4 Apex.
    I m find the problem by removing the line break, characters and captures existing data in the column of the table.


    thnx in advance

    for example

    replace(replace(l_string_var, chr(10)),chr(13))
    

    Best regards
    Marko

    Published by: Marko Goricki, January 17, 2011 10:52

  • How to show newly created lines of a table... Tabe does not display old lines

    JDEV 12.1.3.0

    Hi Experts,

    I should not show older recordings of VO

    only the new lines should be displayed

    Created using EmptyRowSet(). But he showed first record on the line in default. THEN played around with the visible property.

    created a transitional and determination of insertion as attribute 'Y '. Visible condition so I did transition attribute.

  • How to remove the added by BrowserContent menu item

    I have an application where a browser obtained from browserContent.getDisplayableContent () field is added to the main screen. This adds 'Selection Mode', 'Page View' and 'Find' menus. How can I get rid of these. I overrode protected makeMenu Sub (menu Menu, int for example), but the menu items do not fade.

    protected void makeMenu(Menu menu, int instance)
    {
        Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
        if(focus != null)
        {
            ContextMenu contextMenu = focus.getContextMenu();
            contextMenu.clear();
            this.getContextMenu().clear();
        }
    }
    

    My request is basically similar to the example of BrowserFieldSampleApplication.java, which is part of the SDK.

    Thanks for your help

    I managed to solve it this way. In my class that extends the screen, I substituted makeMenu():

    protected void makeMenu(Menu menu, int instance)    {        menu.deleteAll();     menu.add(myMenuItem1);        menu.add(myMenuItem2);        super.makeMenu(menu, instance);    }
    

    The deleteAll() method removes all menu items - then I add my own menu items. Finally, super.makeMenu (calling) adds the "Close" menu item

Maybe you are looking for

  • HP Pavilion Notebook - 17-f237: conversion to wireless printing

    Instructions for conversion to wireless printing seem to be up to Windows XP. I need the most recent which is Windows 10. Is there a site for this?

  • How to clean disk defregmnet

    I tried to scan my laptop on essential security, but up to 4 steps happening. But he doesn't answer is no for a long time for defregment disk .will u please let me know how defregment all disks, as indicated on the scanner. ? or guide me if IS IT NEC

  • Backup the files before reinstalling XP

    I'm trying to back up files before as I have reinstall XP Pro on my computer. Do not remember where to find my Outlook Express e-mail files and favorite files in Explorer.

  • Problems with Windows Firewall

    Recently, I removed Windows Live OneCare from my laptop and installed Windows Security Essentials. I am running Vista Home Premium (32) with all of its updates. I access my internet through a network that is secured via a router. When I turn on the W

  • M175nw MFP

    I received a '79 error' message and my willingness to device now or print or scan.  Troubleshooting instructions say to turn off for 30 seconds, unplug surge protector and plug directly into the electrical outlet, then restart.  This does solve every