Delete button added later.

I have created a number of page pairs in my application using the "form on a table with report" method. Initially I asked for insert and update buttons but no delete buttons because I wanted to protect our test data. I now need to add the delete buttons. Sometimes they work and sometimes they do not. I have compared everything I can - please help me. Trudy.
My delete button definition is as follows:
Sequence = 20
Button Name = DELETE
Label = Delete
Region is correct
Button Position = Region Template Position #DELETE#
Button Style = Template Based Button
Button Template = Button
Database Action = SQL DELETE action
Condition Type = Value of Item in Expression 1 Is NOT NULL (or != Zero)
Expression 1 = Pnn_NAME_ID where nn is the same page number
Target = URL
URL Target = javascript:confirmDelete(htmldb_delete_message,'DELETE');
The delete buttons that work do not have an associated branch.

*** MORE SPECIFIC PROBLEM DEFINITION
The Delete button works when I change my definition as follows:
Target = '- No Target -'
URL Target = unavailable
*** Please explain how I can to do the confirm delete popup.
My delete button definition was as follows and it works OK for some other tables:
Sequence = 20
Button Name = DELETE
Label = Delete
Region is correct
Button Position = Region Template Position #DELETE#
Button Style = Template Based Button
Button Template = Button
Database Action = SQL DELETE action
Condition Type = Value of Item in Expression 1 Is NOT NULL (or != Zero)
Expression 1 = Pnn_NAME_ID where nn is the same page number
Target = URL
URL Target = javascript:confirmDelete(htmldb_delete_message,'DELETE');

Similar Messages

  • Is there a quick delete button that can be added next to emails?

    When reading through emails in Thunderbird there are some emails that I know I don't want to read and would rather quickly delete them without having to click on the email itself.
    What I am looking for is a quick delete button similar to the 'star' button that can be added as a column. I would like a button that sits next to message titles in the email pane that allows me to quickly delete messages.
    Microsoft Outlook (windows mail) has something like this on all messages and I would like if that functionality would be replicated in Thunderbird.

    Are you saying that features and design of other software should not be adopted by Mozilla software? I think the past few years of Mozilla software would highly disagree.

  • Delete button in CFGRID

    I am attempting to use the CFGRID tag on a ColdFusion 8
    Server. I have set the format attribute to HTML and have it binding
    to a cfc. I have set the onChange attribute to a cfc method.
    SelectMode is set to edit and the Delete attribute is set to yes.
    The data grid does allow me to edit the records and
    successfully updates. The issue is that I can not delete rows. I
    don't see a delete button at all. I feel like I am missing
    something very simple.
    Any help would be most appreciated. Thanks.

    I got it.
    Because I was only displaying two columns, the grid was not
    wide enough to display the DELETE button.
    I fixed it by adding the attribute WIDTH="350" and then also
    added the attribute AUTOWIDTH="yes".

  • Disable delete button in Table Maintainance Generator

    Hello all,
      How to disable delete button in Table maintainance generator???

    Hi Maya,
    It is very interesting question. If you debug your table maintenance screen, the program of table maintenance screen will not have statically defined pf status. So you cannot exclude delete functionalities using the below statement.
    SET PF-STATUS <the GUI status> EXCLUDING 'DELE'.
    For viewing pf status SAP has programmed in dynamic manner using this FM VIEW_SET_PF_STATUS.
    Before calling above FM you need to exclude delete function. Follow the following step for achieving this
    Go to sm30. Put your table name and press on maintain push button. It will display table entries in maintenance screen.
    Go to system->status
    Click on program name.
    Go to your flow logic of you table maintenance screen number.
    It will have following code in flow logic
    PROCESS BEFORE OUTPUT.
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZMAINTAIN CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        FIELD ZMAINTAIN-KUNNR .
        FIELD ZMAINTAIN-LIFNR .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.
    Add new module in PBO for excluding delete function. ex  module set_pf.
    PROCESS BEFORE OUTPUT.
    ****here I added my own code for excluding delete function
    ****begin of addion
    module set_pf.
    ****end of addition
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZMAINTAIN CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        FIELD ZMAINTAIN-KUNNR .
        FIELD ZMAINTAIN-LIFNR .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZMAINTAIN-MATNR .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.
    *****inclule one line of code for excluding delete fucion
    module set_pf output.
          MOVE 'DELE' TO excl_cua_funct-function. COLLECT excl_cua_funct.
    endmodule.
    Basically sap fetching status dynamically from program SAPLSVIM using FM VIEW_SET_PF_STATUS. Status name is EULG.
    Please donu2019t hardcode anything by using set pf status statment, you just add one line of code the PBO by creating new module.
    Let me know if you need any help .
    Cheers.
    Regards,
    Peranandam

  • Disabling 'Change' and 'Delete' buttons in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    I have solved the issue Alhamdulillah by the foll. method:
    1. Copied CL_GOS_SRV_ATTACHMENT_LIST to ZCL_GOS_SRV_ATTACHMENT_LIST
    2. In ZCL_GOS_SRV_ATTACHMENT_LIST there is a method called: CHECK_STATUS. I overwrote with my check;
    on_mode_changed( 'D' ). --- For display
    on_mode_changed( 'E' ). --- For edit mode.
    3. In SGOS tcode, added VIEW_ATTA to point to ZCL_GOS_SRV_ATTACHMENT_LIST
    Regards,
    Fawaz

  • Can't delete newly added row in inner advanced table

    Hi!
    Im using advanced in advanced table and i can't delete a row after i added in detail table, i have to refresh the page in order to delete the row.
    This is what i do.
    execute query from master table
    expand row in master table
    click Add row button in detail table(standard button in footer)
    add data in columns
    click save button
    select row with multiselect and then click delete button but nothing's happend i just can delete older rows
    also i can't edit the new row just older rows.
    i think that is something wrong with the cache :S
    any ideas?
    thanks!
    Edited by: 892088 on 03-nov-2011 16:06

    still no answers, the problem is with the new row created because i cant delete or modify it.
    any comment?

  • Need different processes for Update and Delete buttons

    I'm using a customized version of the Issue Tracker sample application. I've added a table called project_person(project_id,person_id) so that a project can have multiple people assigned to it and so that one person can have multiple projects. I have a form report that lists all of the projects with an edit link which opens one project. On the individual project page, there are page items for each of the columns in the project table and a item for the person assigned to the project--this item is pulled from the separate project_person table. I have two buttons--Delete and Apply Changes. If you click on Apply Changes, the project table should be updated and then the project_person table if the assignment was changed. If you click on Delete, it should delete the project_person record first and then delete the project record. I created a new conditional pl/sql process that updated two tables if 'Apply Changes' button is cliicked. I then created a separate conditional process when the Delete button is clicked. This conditional process checks to see if a record in the project_person table exists, and if so, delete the record. Then delete the project record.
    The update process works fine. The delete process reloads the list of projects with a success message at the top without actually doing a delete and I have no idea why. Does anyone have any suggestions?
    I am not using the automatic row processing, but should I? Or is it ok to have the two separate conditions for the two different buttons?

    Hello again Miah,
    Check the "Sequence Number" for your processes. Typically, APEX will increment by 10, each time you create a Page Process as I recall. You can set this to be any number you want; even if you duplicate the sequence number (ie: you can have multiple Sequence 10 processes).
    Make sure that your Delete process is firing properly and walk through the logic in the source code to be sure that any "IF" or "WHERE" logic is satisfied. For example:
    Begin
      delete from emp_table
        where 1=2;
    End;If this was your page process code - you would receive a SUCCESS message because the PL/SQL code executed successfully, even though nothing will be deleted since 1 will NEVER equal 2.
    So, check Delete Source carefully.
    {size:14}{color:green}Can you post the code from your delete page process here?{color}{size}
    Good luck,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)
    Edited by: dfcii© on Oct 27, 2009 10:55 AM

  • Delete Button not active in Change PO

    Hi All,
         I looked at security and authorizations, and checked the PO status in both SRM and ECC. All seems to be ok. But not able to delete the PO line items. We are in SRM 5.0 ECS SP15.0. PO was changed, added lines and ordered and transferred to Backend as well. Now when I want to delete the PO line items, Delete button is inactive. Please advise.
    Regards
    Rao

    Hi Rao,
    Is this for all PO's?
    Deletion is not possible                                                  
       i. for the POs which are in status 'ORDERED'                           
      ii. active version of the PO for which follow-on document exists.....  
    As per the standard system behaviour, once the PO is already sent out       
    to the Vendor, the Delete button at Header will be disabled. And this       
    is the standard behavior. You can not delete the PO from the header         
    and the only option you can do is deleting the items from this PO.          
    Also, maybe try MANUALLY running update reports CLEAN_REQREQ_UP and BBP_GET_STATUS_2 which will ensure that SRM and the backend are uptodate and retest.
    Hope this helps,
    Kind Regards,
    Matthew

  • Need to revert to previous non-icloud ical -- new Delete button in Edit window is a problem.

    Does anyone know how to revert to a previous version of iCal?
    The new 5.0.3 iCal update is giving me huge problems.
    When editing events, sometimes a delete button appears in the bottom right corner of the Edit window. Reflexivly, I click the small button, which I don't realize until it's too late, had changed to a 'delete' button. The new event is gone; there is no undo available.
    I lost several appointments until I realized what was happening. I have lost new appointment with all the details I'd entered since.
    Realize that this is just an opinion, but it is unfathomable why the UI change after all this time. There seems to be no good reason for having a delete button sometimes appear on the edit window.
    Another change that is driving me crazy is that the Edit window open and close shortcuts were both command-E. Now, the commands have changed.
    Please help! This is driving me crazy. I use iCal dozens of times a day. The new changes are not making me happy.
    Thanks.

    Hi flamechaser,
    Welcome to the HP Forums.
    I see that you are having some issue's when attempting to scan to the computer.
    I do have a few suggestions we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    I have also located a document that deals with communication issues between the computer and printer. Please click on the following link for a Windows Error: 'No HP devices have been detected. HP Solution Center will now close.'
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • I Need Help In Deleting Table row by clicking on "Delete" button inside the

    Dear all,
    first i'm new to Swing
    i have created table with customized table model, i fill this table using 2d array, this table rows contains JButtons rendered using ButtonRenderer.java class and action listeners attached by the AbstractButtonEditor.java
    what iam trying to do is when i click on a specified button in table row i want this row to be deleted, i found some examples that uses defaultTableModelRef.removeRow(index), but iam using customized table model and the following is my code
    JTable tblPreview = new JTable();
              DbExpFormTableModel model = new DbExpFormTableModel();               
              tblPreview.setModel(model);
    //adding the edit button          
              tblPreview.getColumn("Edit").setCellRenderer(new ButtonRenderer());
              tblPreview.getColumn("Edit").setCellEditor(new AbstractButtonEditor(new JCheckBox()));
              //adding the delete button
              tblPreview.getColumn("Delete").setCellRenderer(new ButtonRenderer());
              tblPreview.getColumn("Delete").setCellEditor(new AbstractButtonEditor(new JCheckBox()));
    and here is the code of the code of my customized table model ( DbExpFormTableModel )
    public class DbExpFormTableModel extends GeneralTableModel
         public DbExpFormTableModel()
              setColumnsNames();
              fillTable();          
         private void setColumnsNames()
              columnNames = new String [5];
              columnNames[0] = "ID";
              columnNames[1] = "Database ID";
              columnNames[2] = "Prestatement";
              columnNames[3] = "Edit";
              columnNames[4] = "Delete";
         private void fillTable()
              int numOfRows = 2;     // = getNumberOfRows();
              data = new Object[numOfRows][5];          
              data[0][0] = "1"; //we must get this value from the database, it is incremental identity
              data[0][1] = "AAA";
              data[0][2] = "insert into table 1 values(? , ? , ?)";
              data[0][3] = "Edit";
              data[0][4] = "Del";
              data[1][0] = "2"; //we must get this value from the database, it is incremental identity
              data[1][1] = "BBB";
              data[1][2] = "insert into table2 values(? , ? , ? , ?)";
              data[1][3] = "Edit";
              data[1][4] = "Del";
    and this is the GeneralTableModel class
    public class GeneralTableModel extends AbstractTableModel implements Serializable
         public static Object [][] data;
         public static String[] columnNames;
         //these functions should be implemented to fill the grid
         public int getRowCount()
              return data.length;
         public int getColumnCount()
              return columnNames.length;
         public String getColumnName(int col)
    return columnNames[col];
         public Object getValueAt(int row , int col)
              return data[row][col];
         //i've implemented this function to enable events on added buttons
         public boolean isCellEditable(int rowIndex, int columnIndex)
              return true;
         public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();
    public void setValueAt(Object value, int row, int col)
    //fireTableDataChanged();          
    data[row][col] = value;          
    fireTableCellUpdated(row, col);     
    And Now what i want to do is to delete the clicked row from the table, so please help me...
    thank you in advance

    Hi Sureshkumar,
    1. Create a value attribute named <b>select</b> of type boolean.
    2. Bind the <b>checked property</b> of all the checkboxes to this attribute.
    3. Create an action called <b>click</b> and bind it to <b>OnAction</b> event of the button(whose click will check all the checkboxes) and write this code in that action.
    <b>wdContext.currentContextElement().setSelect(true);</b>
    Warm Regards,
    Murtuza

  • Table delete button doesn't work with Virtual Forms

    I applied all of Winston Prakash's tips to my project table (http://blogs.sun.com/winston/category/Creator), but my table is not the only component in the page, so I had to use Virtual forms.
    When I add the "Delete" button, i have to put it on a Virtual Form. I followed the steps on the multi selection table and the "Adding a button panel to the table component header" post, but when I select a row, the JavaScript works well (the row changes to yellow)... but the action code gets a :
    getTableRowGroup1().getSelectedRowsCount()==0
    and getTableRowGroup1().getSelectedRowKeys().length==0.
    I tried almost everything with the forms... I don't know what I missed...

    It works for me. Is it the Delete button in the Toolbar that doesn't work, or the Delete key in the keyboard, or what? Doesn't any other way of deleting a message work either (e.g. Edit > Delete)?

  • Where is delete button on mail notifications in Mavericks?

    I've upgraded my late 2008 Macbook to Mavericks.  I was excited to be able to delete emails directly from the pop up notifications.  Instead the notifications are worse.  Before I could open the email or close the notification.  Now the two choices are close or replay so I can't even just go to read them.
    Where is the delete button that I see in everyone's screenshots of the mail notifications?  Does it only work with icloud mail?

    http://www.apple.com/osx/whats-new/features.html#notifications
    Even on this page it says...
    Mail notifications
    Notifications from Mail include a reply and delete button so you can act on them without leaving the app you are in.

  • Deleted recently added playlist how do i add back to playlist and make destination playlist for imports

    i deleted recently added playlist and want to add back, and make it destination for imported songs how do i do

    Howdy Mark,
    The Recently Added playlist is a Smart Album that has specific settings to automatically add new content to that playlist. It can be recreated manually if accidentally deleted, you can use this article named Archived - iTunes: How to create a Smart Playlist found here http://support.apple.com/kb/HT1801.
    Choose File > New Smart Playlist.
    To have iTunes add songs that match specific criteria, make sure to select "Match the following rule," then make your selections from the pop-up menus.
    For example, you might want iTunes to only add songs that are by a particular artist, or songs with at least a four-star rating.
    To add additional matching criteria, click the Add + button.
    Here are the parameters to use when you create the new Smart Album:
    1. Check the box that says Match the Following rule:
    2. Change the first set of criteria to Date Added, In the Last, 2, weeks.
    3. Add another line for criteria by clicking the + button
    4. The second set of criteria should be as follows. Media Kind, is not, podcast.
    5. Uncheck Limit To, and Match only checked items, and check Live Updating.
    That when that is done you will have a new smart playlist that you can rename to Recently Added by double clicking the smart album name.
    All the very best,
    Sterling

  • Delete button

    Hello, I have added a button on my form to delete records as in the same way as the forms applet toolbar record/remove option. But for some reason, my button with coding as "do_key('delete_record') does not want to delete the record where the cursor is positioned as it states that it cant delete a master record, although the record/remove method does. How can i get the button to delete the record where the cursor is positioned?
    I hope that made sense,
    Thanks in advamce.

    1) make sure your delete button is in the block where your records are!!
    OR
    2) before issuing the delete command, go_block('block_name_where_record_is')
    I am doing the above mentioned method. Because system tries to delete the current record in current block from where you issue the delete command.
    prasad.

  • Rendering Delete button in the table

    Hi,
    I have created a column in the table and dropped the delete operation in that column.
    My case is that whenever the create insert button is clicked a new row is added to the table and only to that row the delete button should be rendered, all the other older rows the delete button should not be rendered.
    This is similar to the advanced search option in the adf, when we add fields we will get a delete button at end of each field.
    How to implement the same case in the table ?

    I have given set property listener to create insert button and named to be 'new', then in the rendering condition of the delete button i gave as #{pageFlowScope['return']=='new'}. so initially the delete button is not rendered in the existing rows in the table but when create insert button is clicked delete button is rendered in all the existing rows and also in the newly created row.
    Am not sure whether this is the right approach.

Maybe you are looking for