Creating a 'CANCEL' button on Forms 5.0

I would like to have a 'cancel' button right next to my 'save'
button on a forms 5.0 application.
The save button will:
DO_KEY(COMMIT_FORM);
I want the cancel button to rollback all changes to the last
commit by that users. The problem is I don't know what code to
place there...it seems if I use a SQL rollback that it clears
the form...I guess this is because the button is associated with
an anonymous datablock.
Any help would be greatly appreciated,
Also does anyone know of any forms templates that are around
which may already have navigation and form control built-in....I
would like to roll-out some templates to my team, but would like
to get some ideas first.
Thanks in advance...please help,
Dennis
P.S. I am, as you can tell by the question, just getting my feet
wet with the Oracle Developer Toolset...can anyone recommend any
web-resources like this discussion group that I should check
out. I am already aware of comp.databases.oracle.tools Thanks.
null

Dennis,
You cannot rollback once you have commit data unless you use
POST (and savepoints) instead of Commit. I do not recommend
going down this path as it can cause some major headaches down
the road. I know it is nice to have feature but it adds some
major time and headaches to the Project. For Templates, take a
look at forms Demos for free stuff. For $$ stuff, Try Design
Assist by Seeristic's. This is a product designed for Oracle
Designer Generators but can be used by Developer only Teams. It
has the best features I have seen. Also take a look at Peter
Koletzke's Web Site. He, along with Paul Dorsey, has presented a
paper on how to use templates to develop faster. I don't
remember the address but you probably can find it if you do a
Search on the web. (Paul's website is http://www.dulcian.com,
Peter's Work Address is http://www.mvsn.com)
Sunil
daniel jensen (guest) wrote:
: Dennis Hancock (guest) wrote:
: : I would like to have a 'cancel' button right next to my
'save'
: : button on a forms 5.0 application.
: : The save button will:
: : DO_KEY(COMMIT_FORM);
: : I want the cancel button to rollback all changes to the last
: : commit by that users. The problem is I don't know what code
: to
: : place there...it seems if I use a SQL rollback that it
clears
: : the form...I guess this is because the button is associated
: with
: : an anonymous datablock.
: : Any help would be greatly appreciated,
: : Also does anyone know of any forms templates that are around
: : which may already have navigation and form control built-
: in....I
: : would like to roll-out some templates to my team, but would
: like
: : to get some ideas first.
: : Thanks in advance...please help,
: : Dennis
: : P.S. I am, as you can tell by the question, just getting my
: feet
: : wet with the Oracle Developer Toolset...can anyone recommend
: any
: : web-resources like this discussion group that I should check
: : out. I am already aware of comp.databases.oracle.tools
: Thanks.
: If you look in Help, there is a built-in called POST with will
: save changes without commiting the information to the
database.
: That might help you out.
null

Similar Messages

  • Cancel button on form of type form on a table or view

    I am a newbie for apex. I am using 10g. I have created form on table emp(empno , name , salary ) . Form is of type Form on a Table or View.
    Cancel & Save(Apply changes) button are not working at all. so I copied process reset page and execute on condition save button click. But still cancel button is not working. applcation has some other forms of type Form with a Report and are working properly. I have wasted 2 days on this problem.

    Hi,
    You can do that. If you have the branch to in the same form what you have to do use clear cache for that page. Click on the edit page, click on the cancel button in the left button section. scroll down to bottom and type the page 32 in the Clear cache field. However it is better to have branch to the report page (different page from the form).
    Hope this will help.
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • Exit using Cancel button from form preview.

    Hi
    I am looping into internal table and printing a smartform for every line.
    When I do the preview, and press back button, it takes me through the preview of all the items.
    Is there a way to come out of this preview.
    I am trying to use the cancel button in at user-command, but the program doesnot seem to recognise it.

    Hi,
    Regarding your qusetion about the preview.: In case you are calling the smartform inside a loop, the preview is going to get called. Incase you want just the 1st form to be shown, you could hardcode it in the program. Your logic could be:
    If its print preview, then exit in the 2nd pass of the internal table by checking the sy-tabix.
    Let us know if this suits your need. If it doesnt then throww more light on your question so that we cud suggest better!

  • Create NEXT RECORD button on form

    I want to create a NEXT RECORD and PREVIOUS RECORD button on my form. how do I do this so that the buttons are function.

    Review the discussions at
    http://forums.oracle.com/forums/search.jspa?threadID=&q=get+next+record+process&objID=f137

  • Issue in form and cancel button

    Hi,
    I have created one customized form, on that form i have created one cancel button for cancelling the record.
    when i click on cancel button it is not going from form , but when i close the form and open again then wont seen.
    i have to cancel the record as soon as i click on checkbox and then click on cancel button. and wont appear again.
    Also i have written one update statement for updating flag as a 'C'
    but when i take it inside a loop (for multiple record selection) form goes hang.....
    I have to write that statement, becoz end user may want to cancel a multiple record at a time
    Plz suggest.....ASAP..
    Thanks,

    Hi,
    Check the dates.
    If required perform a simulation run using forced retro date and check the corresping wagetype in Payslip/Payroll Log.
    If it is ok go for an actual run with forced retro date.
    Hope this helps
    - Param

  • Upload Button in forms

    Hi,
    I had created a push button in forms 10g if i click that button it should open a browse window so that i can select the image and display it in the forms can anybody tell me what is the plsql code that is to be written in when-button-click trigger

    dear bobby
    this property of button on form is available on 10g forms onwards, using webutility.
    have u installed the webutil...................
    teefu.

  • How to say that variable == null if pressed cancel button.

    Hi! I have code line in jspx page:
    #{viewScope.myParamSusceptibToCrackingKi == null ? SusceptibToCrackingKi.myParamInitialValue : viewScope.myParamSusceptibToCrackingKi}How can I say that myParamSusceptibToCrackingKi == null (nothing) if I press cancel Button in form, or press refresh button in browser?
    Best regards, Hope You help, Debuger!

    Hi, Timo! To better Understand:
    In jspx page I have some inputText fields:
    <af:inputText id="CropTypeKiExplain"
                                      value="#{viewScope.myParamCropTypeKi == null ? CropTypeKi.myParamInitialValue : viewScope.myParamCropTypeKi}"
                                      changed="#{changedFlagsMap['CropTypeKiSkaidr']}"
                                      partialTriggers="CropTypeKi" readOnly="true"
                                      contentStyle="color:Gray;"
                                      rendered="#{skaidrojumaApskate.radit != '5'}"/>
           <af:inputText id="VirusDiseaStatKiExplain"
                                      value="#{viewScope.myParamVirusDiseaStatKi == null ? VirusDiseaStatKi.myParamInitialValue : viewScope.myParamVirusDiseaStatKi}"
                                      changed="#{changedFlagsMap['VirusDiseaStatKiSkaidr']}"
                                      partialTriggers="VirusDiseaStatKi"
                                      readOnly="true" contentStyle="color:Gray;"
                                      rendered="#{skaidrojumaApskate.radit != '5'}"/>variables: myParamCropTypeKi and myParamVirusDiseaStatKi have some value. But I want that if I press button in my form, they will be empty. Where to put code?
    And what code I need to write to say that? Mabe I can write: #{viewScope.myParamCropTypeKi is null} and #{viewScope.myParamVirusDiseaStatKi is null} . But where?
    Best regards, Debuger

  • How to change the behaviour of the Cancel-Button of SSO-Login-Page (Forms)?

    Hi Folks,
    we use SSO-Login to authenticate users using Forms. How do I change the URL which is opened when a user clicks on the cancel button on the SSO Login page?
    In the formsweg.cfg file there is a parameter named ssoCancelUrl, but if I define it, it doesn't work anyway. Seems like it has something to do with ssoDynamicResourceCreate, but I don't exactly understand what.
    Can't I simply change the URL which is opened (globally), when a user hits the cancel button on any SSO-Loginpage.
    Thanks in advance.
    Regards.

    Exactly this does not work! Please watch my settings:
    Global Setting in formsweb.cfg
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=false
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    App-Specific settings in formsweb.cfg
    [proz]
    envFile=proz.env
    form=proz.fmx
    title=proz
    separateFrame=true
    width=1280
    height=960
    ssoMode=true
    ssoDynamicResourceCreate=false
    ssoCancelURL=http://machinename:port/zugangsportal/
    otherparams=useSDI=yes P_SERVER_URL=machinename:port P_REP_SERVERNAME=machinename_proz ZP_TARGET_ID=%ZP_TARGET_ID%
    When I now access http://machinename:port/forms/frmservlet?config=proz I got redirected to the SSO-Login-Page but the Cancel-Button still links to Middletier Home. Why?
    Regards.

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

  • For "select-form" in the same page, add a cancel button in editing status

    Dear JHeadstart team
    For "select-form" in the same page, I still have a trouble.
    How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit.
    If I want to learn the the JHS's Template costomizing (.vm file) and where can I find more reference documents about JHS's Template costomizing (excepting "Oracle JHeadstart 10g for ADF Developer's Guide").
    thanks!

    Can you be more precise on what you want:
    - should the cancel button be displayed when creating new row AND editing existing row?
    - when pressing the Cancel button, where do you want to go, to the select page?
    Steven Davelaar,
    JHeadstart Team.

  • Creating a customized Cancel Button

    I have a page with 2 regions.
    The 1st region has several text items and 2 buttons that are displayed conditionally.
    When the page first renders, Button A is displayed. The user then enters a value in one of the text items and clicks Button A. This displays the 2nd region. Button A then disappears and Button B appears.
    But I want the user to be able to start this process from scratch, i.e., have Button A appear on the form once again, with the form ready for him to enter another value in the text item and click Button A This is essentially just a Cancel button that returns the form back to its original state when the app was first entered.
    Can somebody please tell me how to do that?

    Hi Prohan
    You can add a button to a page that clears the cache of any page. What I think you are asking for is a button on page N that redirects to page N and also clears the cache on page N.
    To do this create a new button through the wizard and specify the page to re-direct to as the page you are adding the button to. When you've created the button you'll also have a branch created on this page for the button. Select the branch and in the Clear Cache section enter your page number.
    Alternatively, if you only want to clear some of the items on the page then create the button as above and leave the Clear Cache field empty. Instead enter the fields you want to clear in the 'Set these items' field and only enter comma's in the 'With these values' field. For example, to only clear fields 1, 2 and 3 enter
    Set these values - P1_ITEM1, P1_ITEM2, P1_ITEM3
    With these values - ,,
    Hope this helps.
    Sara
    http://www.apex-blog.com

  • How to add a "Create and Create Another" button to form

    I have an input form on a table with several LOV select lists and a text field. To ease data entry, the user wants to create several records, one at a time, by remaining on the same form page. Built-in APEX functionality adds the record and returns the user to the report page.
    User wants to create the first record by clicking the Create button, stay on the form with all the LOV values as they were (not clearing cache), change one or two LOV choices and the text field, and click a "Create and Create Another" button. The user will stay on the form until clicking the "Cancel" button.
    I changed the branch on the form to call itself. The LOV and text field values remain, but the "Create" button disappears to add another. Of course, I'll need to run the Get PK process to get the next sequence number for the new record.
    Looking for the best way to accomplish this. Thanks!

    If it is using the default setup, I believe you would clear the PK field (and now others) on branch to same for "Create and Create Another", as that is the default criteria for whether the Create button is shown.

  • Is there a way to create an export button on a pdf form that will send form info into ongoing excel spreadsheet?

    I'm trying to see if there is a way to create a submit button on my pdf form that will export the form data into a saved (ongoing) excel spreadsheet. The end result i'm hoping for would be a spreadsheet that lists all the information i receive from each form.
    Any help would be greatly appreciated.
    Thank you,

    Not really. But you can combine the data from multiple forms into a single (new) spreadsheet via Tools - Forms - More Form Options - Merge Data Files into Spreadsheet...

  • Blank row added after cancel button on create page

    Hi All,
    I have a create item page where I insert items into the item table in the database.
    On press of the cancel button on this create page, the control reaches a itemlist page with my old search criteria and result but with a new blank row added to it.
    Anybody know what's wrong?

    Sorry, I misunderstood your previous question. When the cancel button is pressed. I am using pageContext.forwardImmediately with parameters to forward back to my search page. Then in the search page controller I call the AM initQuery method to run the query. My initQuery method has the following code,
    StringBuffer whereClause = new StringBuffer(200);
    Vector parameters = new Vector(3);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null);
    if ((Program != null) && (!("".equals(Program.trim()))))
    whereClause.append("PROGRAM = :");
    whereClause.append(++bindCount);
    parameters.addElement(Program);
    clauseCount++;
    if ((PId != null) && (!("".equals(PId.trim()))))
    Number PIdNum = null;
    try
    PIdNum = new Number(PId);
    catch(Exception e)
    throw new OAException("AK", "FWK_TBX_INVALID_EMP_NUMBER");
    if (bindCount > 0)
    whereClause.append(" AND (P_ID = :");
    else
    whereClause.append(" (P_ID = :");
    whereClause.append(++bindCount);
    whereClause.append(")");
    parameters.addElement(PIdNum);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    executeQuery();

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

Maybe you are looking for