Delete the work of nto lines button code.

Hello
I developed a table in a custom page and I added the deletion icon to that one. If I click on delete, records are deleting application but don't not removing database table... I used following code to delete the records... Pls suggest.


Controller of

Boolean isAuthorisedDelete = pageContext.getParameter
("DeleteAuthorisedToYes")! = null |
pageContext.getParameter ("DeleteAuthorisedToNo")! = null;



If (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)
. Equals ("deleteauthorisedrow"))
{
System.out.println ("in XXIosCO.processFormRequest ()," +)
"deleteauthorisedrow event fired");
deleteauthorisedrow (PageContext, AM);
}

If (pageContext.getParameter ("DeleteAuthorisedToYes")! = null) {}
String rowRef = pageContext.getParameter ("rowRef");
String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
System.out.println ("In XXWorkOrderAMImpl.delete1" +)
(".rowRef:" + rowRef);
am.invokeMethod ("deleteauthorisedrow",
New serializable [] {rowRef});
}


Private Sub deleteauthorisedrow (pageContext, OAPageContext,
OAApplicationModule'm) {}
String rowRef = pageContext.getParameter (EVENT_SOURCE_ROW_REFERENCE);
System.out.println ("In XXWorkOrderAMImpl.delete2" +)
(".rowRef:" + rowRef);
String default = "";
Object addNewRecord = am.invokeMethod
("getAuthorisedRecordStatusByRowRef", new [Serializable] {rowRef});

If (addNewRecord! = null & & addNewRecord.toString (.equals("Y"))) {}
Default = "do you want to delete the record?
} else {}
Default = "you sure you want to delete the record?
}

OAException = message
New OAException (default, OAException.WARNING);
OADialogPage = dialog
new OADialogPage (OAException.WARNING, message, null, "", "");

dialog.setOkButtonItemName ("DeleteAuthorisedToYes");
dialog.setNoButtonItemName ("DeleteAuthorisedToNo");
dialog.setOkButtonToPost (true);
dialog.setNoButtonToPost (true);
dialog.setPostToCallingPage (true);
dialog.setOkButtonLabel ("Yes");
dialog.setNoButtonLabel ("No");
Hashtable deleteParam = new Hashtable (1);

deleteParam.put ("rowRef", rowRef);
deleteParam.put ("WipEntityId", pageContext.getParameter ("WipEntityId"));

dialog.setFormParameters (deleteParam);

pageContext.redirectToDialogPage (dialog);

}


AM

public void deleteauthorisedrow (String rowRef)
{
XXIosAuthorisedVORowImpl = rowToDelete
(XXIosAuthorisedVORowImpl) findRowByRef (rowRef);
If (rowToDelete! = null)
{
System.out.println ("In XXWorkOrderAMImpl.deleteauthorisedrow ()" +)
(".rowRef:" + rowRef);
IsAddRowRecord = Boolean
rowToDelete.getaddNewRecord ()! = null & &
rowToDelete.getaddNewRecord (.equals("Y"));
rowToDelete.remove ();
if(!isAddRowRecord)
{
getOADBTransaction () .commit ();
}
}
}

public String getAuthorisedRecordStatusByRowRef (String rowRef)
{
String recordStatus = null;
XXIosAuthorisedVORowImpl line =.
(XXIosAuthorisedVORowImpl) findRowByRef (rowRef);
If (line! = null)
{
recordStatus = row.getaddNewRecord ();
}
RecordStatus return;
}
Thanks in advance,
Roxanne.

Roxanne

You can try the workaround instead of using rowRef, create the parameter in the settings property fire action and get this value to check what the line clicked and delete this line.

Thank you
-Anil
http://oracleanil.blogspot.com

Tags: Oracle Applications

Similar Questions

  • Delete the file as an attachment button does not work

    I have a form with a box the user can attach files. There are three buttons. To add a file to open the file to see it and the third button to delete the file that is highlighted in the drop-down list. Remove the button does not work. You see something wrong with my script?

    ADD A SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button1::click - (JavaScript, client)
    myDoc = event.target var;
    sFile var = "myFile" + NumericField1.rawValue;
    myDoc.importDataObject ({cName: sFile});
    myDataObject var = myDoc.getDataObject (sFile);

    sFileName var = myDataObject.path;

    ListBox1.addItem (sFileName, sFile);

    NumericField1.rawValue = NumericField1.rawValue + 1;

    OPEN THE SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button2::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.rawValue;

    myDoc.exportDataObject ({cName: sFile, nLaunch: 2});
    }
    catch (e)
    {
    App.Alert ("Click on the file you want to open (select)," + "\n" + 'then click on the button to open the selected file' ");
    }

    REMOVE THE BUTTON SCRIPT

    MeetingMinutes.LogoControls.Attachments.Button3::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    If (sFile! == "") {}
    var nResponse = xfa.host.messageBox ("you are about to delete the attached highlighted file. \n\nDo you want to continue? ', 'delete an attachment ", 1, 2);
    If (nResponse == 4) {}
    myDoc.removeDataObject (sFile) + ListBox1.deleteItem (ListBox1.selectedIndex) + (NumericField1.rawValue = NumericField1.rawValue - 1);
    }
    } else {}
    xfa.host.messageBox ("no document selected. Click on the file to delete. ») ;
    }
    } catch (e) {}
    xfa.host.messageBox ("error in deleting of document");
    }

    Change var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    TO

    var sFile = ListBox1.rawValue;

    Kyle

  • Fill the table with the formula nodewith a line of code

    Hello

    This is my first post of the community, OR maybe this question has been asked 1000 times but I could find no answer.

    Before using LabView I used Matlab a lot. I find a bit that it's too complicated without reason sometimes in labview work with arrays.

    I inherited, and I'm doing a little cleaning. what it does is extractr 2 and 3 position and creates a new table with her and another oner with other elements of the first table. In my view, that he becomes confused because you should rely on the cell of the table, the position of the output and I didn't wat to work this way.

    I replaced it with a knot of formula. Here is the code

    The departure is FP, the table of 6 elements is mdot and the 2 elements array is press

    MDOT float64 [6], press [2];

    MDOT [0] = FP [0]; MDOT [1] = FP [1];
    MDOT [2] = FP [4]; MDOT [3] = PS [5];
    MDOT [4] = PS [6]; MDOT [5] = FP [7];

    Press [0] = PS [2], press [1] = PS [3];

    Now, I want to know if it is possible to do as I would in matlab or C, where you can create a table with one line of code. What would the syntax in formula node to do something like:

    MDOT [6] = [FP [0], FP [1], [4] of FP, FP [5], FP [6], FP [7]];

    Press [2] = [FP [2], FP [3]];

    Thank you

    Use remove the table.  You can provide an index and length of elements to remove.  One of the outputs will be the original with the subset of the deleted table and the other output is the subset deleted.  1 NŒUD!

    EDIT: Created a snippet just after my previous post.

  • Delete the work of history

    Hello

    I need help to create a scheduled task procedure that deletes the rows in the table based on the following x.
    table name x

    (1) If is old more than 30 days and the since the date of the day
    (2) always keep at least 10 records independently as well, they are 30 days old.

    I worote indudival commands to do the above but no luck.
    DELETE FROM x
          WHERE x_date < SYSDATE - 30 AND ROWID NOT IN(SELECT rid
                                                         FROM (SELECT   ROWID AS rid
                                                                   FROM x
                                                               ORDER BY x_date DESC)
                                                        WHERE ROWNUM <= 10)
    
  • delete the last character of line break

    How can I remove the newline character from the end of a string? (Note: there are several line break characters in the string). Thank you!

    This may or may not work, but it is worth it.

    If (right (Votrechaine, 1) is 10)
    Votrechaine = left (Votrechaine, 1, len (yourstring)-1);

  • the implementation of this line of code C: for (int i = 0; I &lt; G_ReadLen; I = i + 2).

    I would like to implement in labview C++ code, but I can't do or loop to increase by two

    int j = 0; for (int i = 0; i)< g_readlen;="" i="i" +="" 2="">

    {

    AD_H BYTES = ByteArray.GetAt (i);

    AD_L BYTES = ByteArray.GetAt (i + 1);

    [J] ValueArray = AD_H<>

    [J] ValueArray = ValueArray [j] + AD_L;

    unsigned long Temp is ValueArray [j] > 12;.

    Volts [j] = ((float) [j] ValueArray) * 0.0048875; () Message.Format

    ("%X %x - %X, - %d, +%.3f volts", AD_H, AD_L, [j] ValueArray, [j] ValueArray Volts [j]);

    m_output_ep1i. InsertString(0,Message);

    j = j + 1;

    }

    Thank you

    Thank you very much sexy problem solved I have attached the solution

  • Photosmart C6380 - cannot delete the document removed from the print queue.

    Photosmart C6380 - cannot delete the document removed from the print queue.

    Hello

    From the desktop, hold down the Windows key and press R.  In the run window, type services.msc and press to enter.  Scroll down to the print spooler , made service right click and select Properties, then click the Stop button.  Now search for C:\Windows\System32\Spool\PRINTERS, then delete the work inside this folder - you may need to click a command prompt to get the authority to open the PRINTERS folder.

    Restart the computer and you should find that the documents have been deleted.

    Kind regards

    DP - K

  • Printer won't delete the task

    I have a printer HP 2050 J510. I tried to cancel the 3 documents to print... the 1st 2 deleted fine but the 3rd is always marked as delete in the status bar... I can't get rid of him for because of this, I can't print anything else. I disconnected the printer and plugged back in, but it is still pending and will not erase... help!

    Hello

    From the desktop, hold down the Windows key and press R.  In the run window, type services.msc and press to enter.  Scroll down to the print spooler service, right click and select Properties, then click the Stop button.  Now search for C:\Windows\System32\Spool\PRINTERS, then delete the work inside this folder - you may need to click a command prompt to get the authority to open the PRINTERS folder.

    Restart the computer and you should find that the documents have been deleted.

    Kind regards

    DP - K

  • Cannot delete the folder of online storage

    Although I don't use SkyDrive, I thought that someone could help me with a problem I have with a cloud storage; I can't delete a file zip of my stock, which is an integral part of my Web-based e-mail program. I put a check mark in the box next to the folder (not file), press DELETE, OKAY the confirmation but nothing happens; the record remains in place. Is there a way to access storage and deleting the folder from command line? I'll be very grateful to anyone who has a suggestion. I have Windows XP Pro SP3 and IE8, which are up to date.

    Hello

    This thread has been created in the SkyDrive forum; the Microsoft moderation team has moved this thread in forum Windows XP files, records and research .

    Thank you!

  • Export previews as JPEGS, once you have deleted the original file.

    I deleted the original files, but I need to get some pics of lightroom and can be used in jpeg format. Is there a way simple-ish to do this on a PC?

    In the menu.

    Library > previews > build 1:1 previews.

    In the settings of Catalog under the file handling tab, change the setting to automatically discard 1:1 previews to never.

    Caution: keep for all your images 1:1 previews will eat plenty of hard drive to work and is probably not a good solution for the 'what if' scenario here. I recommend a backup strategy of the original files in offline mode, so you can rebuild a complete overview, if you accidentally delete the work files.

  • access code will work no - has rejected the correct password, deleted the data

    Hi people

    Had a problem with the iPhone OS 9.3.1 (6 s)

    The password was rejected, even if she did the same every time: it worked randomly.  This question has followed a request to change the password to another.  I put in an alphanumeric password with a special character, as he refused to let me use the previous password.

    I tried to change the password but failed at each point and wouldn't let me delete the iPhone either.  He decided to spontaneously clear the data while it was in my pocket.

    I restored the iPhone and will monitor.

    I was wondering if anyone else has had this problem and it could be a virus or something.  Could it be spyware? Or simply corrupted software?

    Your thoughts appreciated

    Unless your phone has been jailbroken (and I doubt it was) it wouldn't get a virus.

    It's a working phone? Is there an exchange account or an email from work?

    The request came via a pop-up of Safari?

    If the request came from Safari, I would follow the steps below. If it's a working phone that I would like to talk to your people in TI.

    Close Safari completely from the window of the selector app by double clicking the Home button and slide up the preview pane of Safari until it disappears from the display. You may need to search the Safari part covering scribbles to the left. Then go to settings > Safari > clear the history and data from the Web site. Then perform a forced reboot. Hold down the Home and Sleep/Wake buttons simultaneously for about 15-20 seconds, until the Apple logo appears.

  • That's why when I press the button to increase volume on my pc, I suddenly a developer kit that broadcasts the line of code on my computer? I'm really confused

    have firefox open a strange thing happens when I increase the volume on my computer, the high and the low volume are the F11 and F12 keys if I press volume down on my toolbar and albums completely disappear? If I press volume up I suddenly a toolbar developer appear at the bottom of my screen streaming lines of code for what im page currently on

    F12 is the default key to open the Toolbox of the integrated developer same as Ctrl + Shift + I

  • missing text in the button Delete the bookmark.

    There is missing text in the button Delete the bookmark. The key works but the text is missing.

    Here is a screenshot of the problem:
    http://Tinypic.com/view.php?pic=dltkau & s = 8 #. U0rV96KrFEM

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • I tried several ways to delete the cookies listed in options and nothing works to get rid of them.

    I tried all methods to remove cookies that are available on your support site. I have tried them if the choice in the Options is for authorized cookies and cookies not allowed. Also with 3rd party cookies allowed and not allowed. Normally, I fixed it to authorized cookies but 3rd cookies of third parties not allowed.
    I tried CCleaner, cleaner, cleaner Auglogics Euslings, Wise Cleaner, SuperAntiSpyware, Spybot, and WinPatrol and remove temporary files in Windows. All that the software deletes the cookies. I also Spyblaster to protect against hundreds of tracking cookies. It was SuperAntiSpyware who brought the problem to my attention in the first place. It just started doing this a few weeks ago but only the past several days I've worked hard to get these deleted cookies. There must be hundreds of them. I managed to remove about 5 or 6 of them, but others did not move. I want to clean up everything to start over and analyze them on a daily basis. I don't want most of them. SuperAntiSpyware claims it deletes them but when I go to Options in the browser, they are still there. SuperAntiSpyware claims that cookies are there whenever I run the program before you shut down the computer.
    I just added that convenience store and looked at the information. I'm sorry but I'm not understand anything. I'm not savvy in computer science.

    You may have installed an extension that adds the so-called opt-out Firefox cookies.

    These opt-out cookies are to be sent instead of the regular cookies and you cannot delete these opt-out cookies unless you disable or uninstall the extension.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • On all websites, buttons at the top don't work, such as the sign in and sign buttons. Also the scroll up button doesn't work. I click on the scroll bar to move upward. I just upgraded to Firefox 901 and it does not solve the issue.

    If a button is in the top 24 mm of a web page, it does not. This includes the scroll bar. If one button operation below that is introduced in this area, it stops working. The dead zone is across the entire screen. I've upgraded to Firefox 9.0.1 and it did not fix the problem. Think that question may have started after I installed a program called Babylon and it installs a browser bar. Deleted the program and the bar of the browser, but did not affect the dead zone.

    Hello

    Please see this.

Maybe you are looking for