Problem with deleting line in the object view

Hello

I get the reference to the line of display object using pageContext.getParameter (EVENT_SOURCE_REFERENCE)

can I remove this particular row of the view object using this reference...

What makes the user does is...

The user has created a line in the table using the addrows button and without entering the data in the same row that he wants to delete this line. In this case, we have no primary key to delete this line by performing an iteration using RowSetIterator

Please tell me how to remove that particular line even I do not data in the same row

Hello

You can use the below (may be u require to change a bit)

super.processFormRequest (pageContext, webBean); Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
Event string = pageContext.getParameter ("event");

If .equals (event)) ("")
{
Get the identifier of the event PPR source line
String rowReference = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Line OARow = (OARow) am.findRowByRef (rowReference);

If (line! = null)
{
Row.Remove ();
TRXN.Commit ();
}
}
}

Thank you
Pratap

Tags: Oracle Applications

Similar Questions

  • problem with deleting lines!

    Hello

    I use sql * plus I try to remove a line using delete statement

    SQL > delete customers
    2 where customer_id = 4;



    I get this msg

    ERROR on line 1:
    ORA-02292: integrity constraint (STORE. PURCHASES_FK_CUSTOMERS) violated - child
    record found

    ... Please help... Thank you for all.
    Error:
     ORA-02292: integrity constraint  violated - child record found
    Cause:
     You tried to DELETE a record from a parent table (as referenced by a foreign key), but a record in the child table exists.
    Action:
     The options to resolve this Oracle error are:
    1.This error commonly occurs when you have a parent-child relationship established between two tables through a foreign key. You then have tried to delete a value into the parent table, but the corresponding value exists in the child table.
    To correct this problem, you need to update or delete the value into the child table first and then you can delete the corresponding value into the parent table.
    

    Ref:
    http://www.techonthenet.com/Oracle/errors/ora02292.php

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Qosmio G10 begins with vertical lines on the screen

    Hello, can anyone help?

    When I try to start my sign qosmio G10 comes on with vertical lines on the screen. And the screen goes black and I can only hear the fan.
    In VGA mode, it begins upward, but always with the lines on the screen.
    Is there something wrong with the video card? In my view, that there are more people with this problem.
    Toshiba offered little help?

    I'm 'out out of warranty '. I need to by a new complete motherboard or y at - it another option? Replace the video card?

    Hello

    Its a shame about the warranty because you ask the service partner Toshiba for the verification of the laptop and this procedure would be free. You know, the warranty would cover the audit of the laptop.

    But I would say the external display connection and then you can check if the same vertical lines appear on the external display.
    If you see the lines on the second monitor, then I guess it could be something wrong with the graphics card or motherboard.

    I think that this procedure is the best way to find out what could be the problem, but anyway, I think you should ask a technician for assistance if you want to solve this problem.

    PS: Have you tried to reinstall or update the graphics driver? I think you should do it but I don't know if it will help you, but you know Mr. try is free ;)

    One of my friends had a similar problem with the vertical lines on other mobile manufacturing, and it was a WLan cable which was responsible for the strange lines on the screen.

  • Problem with MDT 2012 on the computer.

    Hello guys,.

    We had some problems with deployment workbench. I'm stuck since 2 weeks and I have no ideas.

    So, we have already a precedent of deployment, but it is old, and we wanted to make a new one, in order to really understand all stages of the construction of a deployment.

    So we created a PXE boot, who works there.

    The thing is when we start the installation, Windows Setup is fine, so I run certain applications (Microsoft Office, 7zip, Adobe Reader, Flash Player, Chrome, etc.).

    To explain, I added applications with command lines in the workbench, then I made a bundle with them. In the task sequence, I install the bundle.

    We get the 1632 error code, which seems to be related to the temporary folder. He says it's full or inaccessible.

    So I tried different things, I read that it was possible that the temp folder has been locked by another plant which may have gone wrong. So I took away from facilities that were not going very well.

    It worked once, then it still make me error codes 1632.

    I disabled the step "Install applications" in the sequence of tasks, which does nothing for me. (That I created the facility overall.)

    My boss has the idea to disable GPOS that install stuff, so now I try it.

    Hello

    The Microsoft Answers Community
    focuses on the context of use. Please reach out to IT
    Following the link from a professional background in the MSDN forum:

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Problem with deletion of snapshots

    Hello

    I have a problem with deletion of snapshots for virtual machine running on ESXi 3.5. I had a problem with the lack of free space on the drive where VM is hosted. I managed to free up space and wanted to commit snapshots (delete) to free additional space. Unfortunately, at the time of the withdrawal of clichés that I ran out of space again on this store now I'm stuck with clichés present in the store but not visible in the Snapshot Manager.

    Any suggestions on how I can get rid of these pictures now? All I can think is move VM converter of this virtual machine to a new one.

    Thanks, Marcin

    The reason that you ran out of space is the way a "Delete All" is handled.

    I guess in your case a 'Delete All' may temporarily need up to approximately 115 GB of additional disk space. Troubleshooting VM snapshot problems perfectly describes the process. Take a look at the animation in the "process behind 'Remove all' snapshots '.

    So what you can do is:

    -Free up enough space, create another cliché, and then do a "Delete All".

    -Cold clone or V2V the VM in another data store

    -Recreate the vmsd file based on the instantaneous channel from the header vmdk files and delete the snapshots one by one starting with the first (oldest) snapshot. If you want to try this make sure you fully understand other snapshots that it will end in the corruption of data!

    Due to the size and the possible impacts on the storage I recommend doing this during peak hours and with the virtual machine shut down.

    If you have a different available datastore (~ 300GB), I would recommend cloning. This does not affect the original files in case something goes wrong. If the clone works, you can safely remove the "old" VM and files and migrates the virtual computer is back to datastore original.

    André

  • Master - Detail of the object View and Javabean

    I have a table with data from VO (database, let's say in table A). This table has Id, name and processId table. I also have a second table below the first table, what data comes from a javabean (source data not DB). I created this bean data control, which in turn, I created the second table.
    What I want to achieve, it is when a user to select a row in the first table, I wish that the second table is updated according to the processId value of the selected row in the first table.
    Would you share how to do it?

    Thank you.

    Hello

    my Oracle Magazine July/August 2012 column covers a similar use case of Web Services that work in a relationship master / detail with ADF business components view objects. In this article I recommend using the programmatic view objects and entities that this ensures the consistency of the master / detail is handled by the template and cannot be controlled manually on the view layer. I think that the possibility of using a JavaBean domain controller and synchronize it with the object View is a valid option, however, if the rest of your application using ADF business components then I would consider programmatic view objects (and entities if the app is CRUD to the POJO too)

    Here's a sample and a good report:

    http://jobinesh.blogspot.in/2011/06/building-programmatically-managed_25.html
    http://jobinesh.blogspot.in/2011/06/building-programmatically-managed.html

    Frank

  • my computer will not install itunes 10.5, it tells me "Setup has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330.

    original title: Itunes problem

    my computer will not install itunes 10.5, it tells me "Setup has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330. "What should I do?

    Contact the manufacturer (Apple) of the application (iTunes) you are having problems with.

    Uninstall all previous versions, try to download (re-record not running) and then do a right click on it and RUN AS ADMINISTRATOR.

    (Vista 32-bit or 64-bit)?

  • Problem with Windows Update after the new installation of Windows 7 Pro the Lenovo ThinkPad X 200

    I'm trying to do a fresh install of Windows 7 Pro on a Lenovo ThinkPad X 200. The product key is easy to find on the sticker of the ThinkPad. However, the version of Windows is hidden (for example, I can't check that my ThinkPad had originally installed Windows 7 Pro). I was able to install by using a Pro Win 7 SP1 CD ROM I bought for another installation. I used the ThinkPad I was trying to make the new facility on the product key. I was able to activate the Windows 7 Pro using the phone call and my cell phone. I checked the activation! However, I have problems with Windows update. The product key may be a different version of Windows 7. If so, why did it install and activate OK? Y at - it a fix for this problem or I have to buy a new version of Windows 7 Pro? Please note that I have not yet installed all drivers Lenovo ThinkPad as I can't seem to install correctly. Thank you!

    Since the issue is updated to Windows, it is not a product number key.

    You can reset the Windows Update components by running the Fixit on this page. But if there is malware present, she will continue to reset the connection to the update servers:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

  • Problem with silverlight download, download the error code 2104.

    Original title: problem with Sliverlight download
    get the error code 2104. tried to uninstall and reinstall

    Hello

    Thanks for the reply.

    We are pleased to know that the problem is solved. Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows. Please contact the Windows community.

  • I have problems with my application of the java language.

    I have problems with my application of the java language. It will be open only for about one second, and it won't let me write all programs, it looks like the command prompt when opening. what the * is underway and what can I do to solve this problem.

    Hey Kevin,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it.

    I would really appreciate if you could answer the following questions:

    1. is the specific question of the application of the Java language?

    2. did you of recent changes made to your computer before the show?

    3. you receive an error code or message?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    If the problem is specific to the Java application, then I suggest you to contact Java support from the links below:

    http://www.Java.com/en/download/support.jsp

    Java Help Center:

    http://www.Java.com/en/download/help/

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • I have problem with value NULL when the use CASE statement please help this question

    I have problem with value NULL when the use CASE statement please help this question


    Table: digital_val

    SNO cl C2

    1 San1 11

    2 22 San2

    Actual result: expected to A         B

    A            B                                                                           11        22

    11 NULL

    22 NULL



    query:

    Select case when c1 = "san1" then c2,.

    case If c1 = "san2" then c2 B

    of digital_val

    I'm more curious why, when you select 2 rows, you expect a result of row?

    WITH digital_val

    AS (SELECT 1 AS 'Sno', 'San1"C1, c2 FROM DUAL 11)

    UNION ALL

    2 SELECT AS 'Sno', 'San2"C1, c2 FROM DUAL 22)

    SELECT CASE WHEN c1 is "San1" THEN END AS A c2.

    CASE WHEN c1 = "San2" THEN END AS B c2

    OF digital_val;

    With no other input, if you select 2 rows, you get 2 rows.  One of the other solutions use a max function, but is this really what you want, does not specify?

  • Bridge does not open? Initially the 8.1 Win & problem had started. Have now earn 10 & still a problem with not to open the bridge?

    Bridge does not open? Initially the 8.1 Win & problem had started. Have now earn 10 & still a problem with not to open the bridge?

    Hi Matthew,

    If you use Bridge CC, update to the latest version 6.2. Adobe Bridge CC 6.2 version now available! Adobe content corner

    1. Please, do a right-click on the bridge on the desktop icon and select "Run as Administrator".
    2. If this does not help, reset the Bridge preferences and then try it.

    Steps: -.

    Start Adobe Bridge, and immediately press Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS down) until the dialogue box reset settings appears.

    Select all three options - reset preferences, reset Standard Workspaces and all miniature Purge Cache - and then click OK.

    Reference: troubleshooting errors, freezes | Adobe Bridge | Windows, Mac OS

    Let us know if it works.

    Kind regards

    Assani

  • The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    I understand that it is a live paint object you use.

    Try this:

  • problem with delete in the OPS

    Hi all

    I have a problem in the functionality of deletion in the OPS,

    I have a table advanced with data when loading the page, because I have an icon to the trash, I'm clicking on the icon of deletion and the page, I am able to remove that line but he isn't deleteting in the database of this line.

    I tried below way.

    If ("updatedelete".equals (pageContext.getParameter (EVENT_PARAM)))
    {
    am.invokeMethod ("getUpdateDeleteData", null);

    }

    ---------------

    Public Sub getUpdateDeleteData()
    {
    XXXXXCONTAINLISTLINESVOImpl vo = this.getXXXXXCONTAINLISTLINESVO1 ();

    System.out.Print ("vo count" + vo.getRowCount ());

    Rank rank [] = vo.getAllRowsInRange ();
    for (int i = 0; i < row.length; i ++)
    {
    Rowi rank (XXXXXCONTAINLISTLINESVORowImpl) [i] = XXXXXCONTAINLISTLINESVORowImpl;
    If (rowi.getseltodel ()! = null & & rowi.getseltodel (.equals("Y")))
    {

    Rowi.Remove ();
    getOADBTransaction () .commit ();

    }
    }

    }

    You can help me thanks

    Thanks to all its solved, in fact my vo was not based on any OS is why it did not record data, aftre creating EO based VO it works

Maybe you are looking for