Delete confirmation on button in regions items

I have created a delete button which is of type "button in regions items".
I want to add the delete confirmation functionality to this button..
javascript:ConfirmDelete()
The only thing is this type of button does not allow a url to be specified. Is there anyway of getting around this??

Hello Farhan,
"I ended up creating a new template for the delete button"Carl always says there is more then one way to skin a cat, so if it's working as you need, it's great.
would like to know why the 2 button types have different attributes and whether the button with regions items type will have the additional attributes in the next release?? "I've asked the same question almost a year ago. Nothing seems to change in the latter versions - http://forums.oracle.com/forums/thread.jspa?messageID=1123993&#1123993 .
Regards,
Arie.

Similar Messages

  • Buttons among region items and branching

    I've got a page with many buttons that are supposed to simply branch to their respective pages. I used buttons among region items so that I'd have control of placement withing each region. After clicking on the first button that branches to its correct page, the other buttons branch to that page as well even though I have branches set for each button.
    What am I missing?
    Thank you!

    Also, arranging them all on the page was a headache. I'm almost there but have had to create empty regions just to space things out because I don't understand how to space buttons out. I can with items, but buttons are a new one. I'm leaving at noon today to visit my sister and brother in law in your favorite city (no not really - not San Diego...LA) so I want to wrap this project up as much as I can before I leave.
    The other project is live!

  • Buttons among region items - all right justified

    Is it possible somehow to right align all buttons (defined among the region items) to the right edge of the region border? e.g
    | this is field 1|                                            (Button1)
    | this is field 2................|                       (Button2)
    rather than
    | this is field 1 |(Button1)
    | this is field 2 ................| (Button2)
    regards
    Paul P

    Try the following:
    Set the HTML Table Cell Attributes property for field 1 to style="width: 100%;".
    In the Displayed properties for each button set Begin on New Line to No and Begin on New Field to Yes.

  • Javascript Button Among Region Items

    I would like to add several buttons (which would call popupURL) among my region's items (next to the items they reference).. When I go to add a button, I have two options:
    1. Create a button in a region position:
    2. Create a button displayed among this region's items:
    I want to use (2), but in this option, I cannot set my button to "Redirect to URL without submitting page" which is what I think I need to do to incorporate JavaScript.
    Also, within the Help, I am not getting a clear description of what the "Request" value does/means/is in option (1).
    Thanks much!

    Hello,
    This is a well known issue with buttons among items. I believe that the simplest way to deal with it is to define your own buttons, using the Post element Text field of your referenced item. Just use something like this:
    <input type="button" id="xxxx" value="yyy" onclick="JS_Function()" />The "Request" is an internal built-in variable that the system automatically set, each time you press a button, to the button name (and NOT the button text label). This helps the system to identify which button was presses, and act accordingly. The main usage for users is, probably, the option to condition validations and processes according to a specific button press. The main advantage of using "Request" is that the system is setting and clearing its value automatically. If you'll create your own buttons, as I describes earlier, the "Request" value is not relevant.
    Hope this helps,
    Arie.

  • Processess on Buttons created among region items behaves strangely

    I have two buttons Button1 and Button2 and item TEMP.
    Buttons are of type (Button among region items)
    Now our requirement is that when Button1 is pressed TEMP should be set to 1 and
    when Button2 is pressed TEMP should be set to 2.
    But it does not happen.
    I have written 2 processess for it.
    First is - Set :P1_TEMP = 1 - (when button pressed *P1_BUTTON1)
    begin
    :P1_TEMP := 1;
    end;
    Second is - Set :P1_TEMP = 2 - (when button pressed *P1_BUTTON2)
    begin
    :P1_TEMP := 2;
    end;
    The values in TEMP are not populated accordingly.
    It is always set to 2 even if I press button1.
    I have created a demo at
    http://apex.oracle.com/pls/otn/f?p=20426:1:1861250906981044:::::
    Now if I remove the second process than TEMP gets set to 1 when BUTTON1 is pressed.
    Any ideas on this strange behaviour.
    Thanks
    Ameya

    Hi, Ameya
    I have test your application.
    I had tried to add two branches : one activated when button1 is activated
    , another activated when button2 is activated which submit your page 1,
    affecting the value of item TEMP .
    It's working for button 1 but for button2, despite the fact I tell him to send 2 for the
    value of item TEMP in the branch, it seems that it was "the branch of the button1" which is activated...
    So, I let the 2 branches (with condition never) (I think processes is not needed here) in case you want to see the method.
    Hope Jes can help you.
    Mike

  • Button created among region items cannot be horizontally aligned

    If I create a button amongst region items, and say new line = NO and new field = YES, it creates the button in its own table cell. However there is no apparent interface to horizontally (or vertically for that matter) align the button within the cell.
    If I create any other region item, or a button in a region position, I can see the alignment options which work as expected.
    Am I missing something here?

    A workaround here is to add the item as post element text on the previous item in sequence. But then the item is "lost" when looking at the page edit screen, and common editing features are not available.
    I see no logical reason why a button created amongst region items should not have all the operations permitted on it as do the regular region items.

  • Reorder Region Items

    I have region with two items "Select List" and "Textarea".
    I want to change order these items then I click on button "Reorder Region
    Items" then I see following error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    All reports/forms created in version 3.0.0 is reordering fine...after update to 3.0.1 every report/forms not reordering fine, Drag and Drop layout not working too...
    What does't mean?
    Best Regards
    Daniel

    Yes, I checked it and I think that the image directory on my server is updated correctly.
    Version of IE which I use is 7.0.5730.11, but in Firefox 2.0.0.6 it doesn't work too. Below is error message:
    Error: $x(pThis).values has no properties
    if (($x(pThis).value.length==0) || ($x(pThis).value==null) || (($x(pThis).value.search(re)) > -1)) {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Delete regions items buttons and pages using sql.

    Hi,
    Is there any way to delete from apex pages, regions, items and buttons using sql.
    I noted that in SQL Developer a display of these objects is enabled, but no actions can be carried out on them from what I can see.
    Ben

    Hi and welcome,
    do search in the [Java Database Connectivity (JDBC) forum|http://forum.java.sun.com/forum.jspa?forumID=48], I'm sure you'll find a few examples there.

  • How to delete buttons in region buttons in oracle apex?

    how to delete buttons in region buttons in oracle apex?
    i have created unwanted buttons...so i have to delete...
    but i dont know how to do this?

    Hi,
    -> In apex page go to buttons region where list of buttons are located.
    -> Select the button which you have to delete.
    -> Click on "Delete" button on top of page.
    -> It will ask for confirmation click "Ok" to delete that button
    OR
    -> In apex page go to buttons region where list of buttons are located.
    -> Click on "Edit all" icon and go to "Delete multiple buttons" tab.
    -> Check the buttons which yo want to delete.
    -> Click on "Remove Botton" button to delete selected button
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Deleting confirmation not possible for particular PO item.

    Dear experts,
    we are on an SRM 5.0 server 550 with a classic scenario.
    We are experiencing some problems when deleting confirmations on 1 certain process.
    case:
    - puchase order created with 1 item (10 pieces)
    - confirmation was created for 5 pieces.
    - invoice was created for these 5 pieces.
    - confirmation created for the following 5 pieces
    - trying to delete the confirmation but not possible because the delete button is greyed out
    Does anybody has an idea why we cannot delete such a confirmation? There is an invoice on the PO item, but only on the first 5 pieces, not on the last 5...
    Regards,
    Tom

    Hi,
    Check the followwing points:
    -Tx_RZ20. Check under menu Confirmations for Backend errors.
    -Check Idocs exchanged. Check Outbound IDOCS(Type MBGMCR) in SRM an Inboudn Idocs in the backend.
    -Check GR in Tx BBP_PD. Search using Object Type: BUS2203 and GR number. Search for alerts in the GR.
    There is a recurrent root cause for the "GR error in process": Posting Date locked". You could try to change posting date to the currente date in th GR and confirm again.
    Thanks and Regards,
    Abraham

  • Button created among region items generates a spurious table cell

    To reproduce:
    =============
    1. Create a text item X in an HTML region.
    2. Create a button B amongst region items, to appear after X and on the same line, new field.
    3. Run the page and look at the source. I would expect to see something like:
    <td>X</td><td>B</td>
    But instead I see
    <td>X</td><td align=right></td><td>B</td>
    This is messing up my item alignments and I can't get rid of the extra table cell. What's going on?

    Any ideas, anyone?

  • JQuery UI modal delete confirmation

    Hi,
    I am looking for suggestion on how to fix my script.
    What I am trying to accomplish is to replace a regular javascript delete confirmation window with jquery modal. My regular javascript delete confirmation (as it is build-in thing) looks as:
    in page header I have:
    script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>and I have a template based button with Database Action: SQL Delete action and Option URL Redirect to
    javascript:confirmDelete(htmldb_delete_message,'DELETE');
    What I am trying to do with jquery ui is:
    1. I have this script in my page header
    <script>
    $(function() {
         $( "#dialog:ui-dialog" ).dialog( "destroy" );     
         $( "#dialog-confirm" ).dialog({
                   resizable: false,
                            autoOpen: false,
                   height:140,
                   modal: true,
                   buttons: {
                        "Delete all items": function() {
                             $( this ).dialog( "close" );
                        Cancel: function() {
                             $( this ).dialog( "close" );
         </script>
    <div id="dialog-confirm" title="Empty the recycle bin?">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">
    </span>These items will be permanently deleted
    and cannot be recovered. Are you sure?</p>
    </div>and I have a template based button (the same as before) with Database Action: SQL Delete action and Option URL Redirect to
    javascript:$('#dialog-confirm').dialog('open')
    My Issues:
    1. When I click on my "Delete" button, I am not getting my modal confirmation pop up in IE at all but I am getting it in Firefox for 0.5 second and then in both browsers I get white page with " [object Object] " on it.
    2. If I change my button to HTML button, I am getting my modal pop up screen but if I am confirming my delete option...it doesn't delete anything. For delete I use "Automatic Row Processing (DML)" process and I want to use Template based button not the HTML.
    I would really appreciate any help and suggestions.
    Thanks

    Hi,
    Create HTML region without template to before footer.
    Place to region source
    <script>
    $(function(){
    $("#dialog-confirm").dialog({
      resizable:false,
      autoOpen:false,
      height:140,
      modal:true,
      buttons:{
       "Delete all items":function(){$(this).dialog("close");doSubmit('DELETE')},
       Cancel:function(){$(this).dialog("close")}
    function confDialog(){$('#dialog-confirm').dialog('open')}
    </script>
    <div id="dialog-confirm" title="Empty the recycle bin?" class="hideMe508">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">
    </span>These items will be permanently deleted
    and cannot be recovered. Are you sure?</p>
    </div>And button URL target
    javascript:confDialog()Regards,
    Jari
    Edited by: jarola on Nov 10, 2010 9:02 AM
    Edited by: jarola on Nov 10, 2010 9:36 AM
    If you do not like change all your delete buttons:
    Just create HTML region to page zero before footer without template.
    Place to source
    <div id="htmldb-conf-dialog" title="Confirm"></div>
    <script type="text/javascript">
    $('#htmldb-conf-dialog').dialog({resizable:false,autoOpen:false,modal:true});
    function confirmDelete(m,r){
    $('#htmldb-conf-dialog').html($nvl(m,htmldb_delete_message)).dialog('option','buttons',{
      "OK":function(){$(this).dialog("close");doSubmit(r)},"Cancel":function(){$(this).dialog("close")}
    }).dialog('open')
    </script>This will overwrite original alert
    Regards,
    Jari

  • SRM - Delete confirmation (service entry sheet)

    Hi,
    we have the 5.00SRM.
    The user tried to post twice the same confirmation (service entry sheet) so the system replicated the first one in R3 and the second is in error for the Purchase order lock (message class SAP-T100 message-id BBP_ADMIN 010).
    It's right that the second is in error (Luckly!!!), but now we don't know how delete it (the second wrong confirmation), because in the confirmation transaction the delete button is inactive. Now the user need to create a new confirmation for the same purchase order, but since now all the confirmations for that purchase order go in error.
    Please, help me ... I looked all SAP notes and forum messages but I didn't find the solution.
    Thanks
    Lara

    Hi
    Which SRM scenarion and version are you using ?
    <u>Seems to be some bug in the system (Either due to wrong implmentation of some OSS note or some other reasons).</u>
    <b>Anyways, better to raise an OSS message with SAP as well.</b>
    <u>Refer to following OSS notes.</u>
    <b>535765 Too many entries in BBP_DOCUMENT_TAB
    1028584 You cannot delete confirmations that are in approval process
    863198 Confirmation screen is locked on click on delete button
    668829 Error when deleting held goods receipt confirmations
    852327 Disable Deletion of Confirmed PO Items
    994529 Conf can be deleted despite error in DOC_CHECK_BADI
    778489 Partial confirmations for back-end service purchase orders
    602973 Duplicate error messages during confirmation
    499917 EBP: deleted return delivery: BBPERS creates no invoice
    786051 Deleted service lines are checked
    515754 Deletion of held confirmation documents in back-end case
    355138 Cancellation of goods receipt/service confirmation
    430660 Deletion, change, return delivery possible after return</b>
    Hope this will help.
    Regards
    - Atul

  • Error while deleting confirmation in EBP

    Hi,
    We are using SRM 5.0 & ECC 4.6c. Currently we are not able to delete the confirmation from EBP. i.e. from "Display\Process Confirmation" screen. But we can create new confirmation against the PO.
    The scenario configured in our system is Classic.
    Kindly provide us with your inputs on this.
    Regards
    KGp

    Hi,
    Have a look at these threads:
    Store user is not able to delete the confirmation !
    Delete confirmation (impossible)
    Confirmation Error in SRM
    SRM - Delete confirmation
    Re: Delete button not available for goods receipt when PO has GR-Based IV set
    BR,
    Disha.
    DO reward points for useful answers.

  • Problems w/ rendering of buttons inline w/ items

    It would see that buttons that are positioned withing region items are rendered according to different template rules. These kinds of buttons appear both in the "Buttons" section of the page designer and in the "Items" section.
    Page Designer => Create New Button => Chose "Create a button displayed among this region's items" => Template Style set to "Template Based Button" & select a template
    1: Button templates that use the #BUTTON_ID# replacement are not substituted. If id="#BUTTON_ID#" is used in the template and you have more than one button inline with elements, there are now multiple elements w/ the id of "#BUTTON_ID#".
    2: The text label of the button is wrapped with a label and span tag, causing CSS that attempts to use pseudo elements ( i.e. .BUTTON a:hover ) to fail. This is because the label and span keep the CSS from being a valid target of the CSS declaration. Pseudo element assignment to non-anchor tags in IE is buggy/non-existent. (i.e. .BUTTON label:hover / .BUTTON span:hover are not viable). There is no reason to have a label tag and span tags inserted here automatically.
    Message was edited by:
    andrew.martinez

    Hi, I'm sorry you are having such a difficult time. Let's assume for a moment that Flash Player is Installed correctly.
    I don’t know if anyone has suggested this or not but what I did to make Flash 10.3 work on my IE9 (32 bit on a 64bit Windows 7) was to click on the gear icon, then click on “internet options”, then “advanced”, then finally check “use software rendering instead of GPU rendering” finally you must close IE9 for the settings to work.
    If that doesn't help, then we'll need to check to make sure FP is Installed correctly.
    Let me know,
    eidnolb

Maybe you are looking for