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

Similar Messages

  • Adding update and delete buttons to a  Report from SQL Query

    There is an option when creating a QBE to add update and delete
    links which i find quite useful, but this option doesn't seem to
    be possible on a Report from SQL Query. Do i need to do
    something special to add them? is the option located in a
    different place?

    Hi,
    You can only add Update ,Delete in QBE Reports,
    there is no option in Portal which can be used to
    have these buttons in the Reports from Query Wizard or
    Report from SQL Query.
    Thanks
    Vineet

  • My "Check for updates" and "Restore" buttons greyed out in iTunes.

    Hy this is a screenshot of my problem. Please help me out. Thank you.

    On my G4 iBook I was having issues, first with a first gen shuffle, greyed out update and restore, no info on serial number and such. Shuffle was blinking orange and red, took to Genuis bar tried the shuffle reset application, hosed. My 3rd Gen iPod and brand new Video iPod (just got today) also greyed out.
    Shuffle reset was giving numerous error messages, trashed and reinstalled iTunes and all plists, no good.
    Tried shuffle on old eMac running older iTunes, worked fine!!
    Tried brand new Video iPod on old eMac and older iTunes, worked fine.
    Archived and installed Tiger on iBook and voila, Video pod is good to go, haven't tried old shuffle on this yet but, bottom line, reinstall OS did the trick (or so it would appear for now).

  • HT1229 iphoto d/l under previous computer owner, what steps do I need to do for updates and to my name?

    I bought my mac used and iPhoto was already installed, I now have a bunch of pics in it, but can't get updates and want to uninstall the old and get iphoto under my name.  Do I just all pics out, then add them back in?

    Go to the Mac App Store main page and click on Support under Quick Links. If you want, you might be able to just delete the iPhoto application and redownload it from your Apple ID.
    (83645)

  • Trying to re-add UPDATE and DELETE default buttons to a form

    I created a maintenance form by copying a form I use for inserting rows into a table. I deleted most of the form's default buttons.
    Now I'm trying to add the UPDATE and DELETE buttons to the cloned maintenance form, with no luck. When I look at the source
    for another maintenance form, the update button shows the following code:
    <INPUT TYPE="BUTTON" NAME="FORM_TEST1_MAINTENANCE.DEFAULT.UPDATE_TOP.01" VALUE="Update" onClick="if (validateWWVM281(this.form)) do_event(this.form,this.name,1,'ON_CLICK','');">
    The newly inserted UPDATE button's code is:
    <INPUT TYPE="BUTTON" NAME="FORM_TEST2_MAINTENANCE.DEFAULT.UPDATE_TOP.01" VALUE="Update" onClick=" do_event(this.form,this.name,1,'ON_CLICK','');">
    So...... I added the code "if (validateWWVM281(this.form))" (no quotes) to the button's ONCLICK area. The source code for the form now looks like this:
    <INPUT TYPE="BUTTON" NAME="FORM_TEST2_MAINTENANCE.DEFAULT.UPDATE_TOP.01" VALUE="Update" onClick="if (validateWWVM281(this.form)); do_event(this.form,this.name,1,'ON_CLICK','');">
    Note the semicolon after the IF statement.
    Bottom line.... if I wish to add a button to a form to replicate teh functions of a default button, how do I do this?

    In the PL/SQL Button Event Handler for UPDATE button select 'Update' and write the following code:
    doupdate;
    and for DELETE button select 'Delete' and write
    dodelete;
    You don't need any code in the OnClick for these buttons.
    Hope this helps.
    -Krishnamurthy

  • XSQL updates and deletes

    Hello
    I can insert records in a table using the xsql but am unable to update and delete from tables using xsql ....
    need help its urgent ..
    can anyone mail me some sample code for xsql update and delete ...
    thank u
    null

    If you're using BC4J and XSQL together, then you can leverage the oracle.jbo.xsql.UpdateViewObject action handler that ships with BC4J for use in XSQL pages to make it easy to handle hierarchical XML documents using BC4J view objects.
    BC4J view objects can both produce and consume XML documentment using the writeXML() and readXML() API's on oracle.jbo.ViewObject, respectively.
    If there are view links in place, then the BC4J XML processing mechanism follows these links to nested, detail information. When you "feed" an existing XML document to the YourViewObject.readXML() method, it automatically processes inserts, updates, and deletes, as well as apply any BC4J business logic that exists in your Entity Objects (if any).
    The BC4J Action Handlers make it easy to combine BC4J with XSQL pages without having to write the writeXML() and readXML() calls by hand.

  • Disabling 'Change' and 'Delete' button 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,
    Probably you have uncommented the call to super class when you reimplement the method on child class (z class)
    I just implement the same thing now and it worked for me. Take a look:
    1 - Modify the SGOSATTR table by SM30, just write a Z class (in my case CL_GOS_SRV_ATTACHMENT_CREATE) .
    2 - Create/inheridt a subclass (not a copy) in SE24 of the standard class.
    3 - Implement the method CHECK_STATUS in the z class. Note that the call to method on super class came commented. You only uncomment if you want to also execute a standard code in the super class.
    Here is my code:
    method CHECK_STATUS.
    NOTE - In my real implementation I have uncommented the code below because I want do standard code be executed before my own check.
    *CALL METHOD SUPER->CHECK_STATUS
    EXPORTING
       IS_LPORB  = IS_LPORB
       IS_OBJECT = IS_OBJECT
    IMPORTING
       EP_STATUS = EP_STATUS
       EP_ICON   = EP_ICON
      Check for BUS2012 = Bussinnes Object for Purchase Order
      IF IS_LPORB.TYPEID = BUS2012
      Check authorization and disable create attachment item if the user does not have authority...
    IF IS_LPORB-TYPEID = 'BUS2012'.
    AUTHORITY-CHECK OBJECT 'Z_MM001' ID 'ACTVT' FIELD '01'.
      IF sy-subrc <> 0.
        ep_status = mp_status_inactive.
      ENDIF.
    ENDIF.
    endmethod.
    Regards,
    Alexandre

  • 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

  • Need data edit,update and delete in the gridview

    Hi friends,
    I am facing a common problem which everyone already faced but I need to know is there anything new comes with this issue?
    My problem is I want to Edit, Update and Delete data in gridview in multiple column. I can do the edit , update,cancel and delete but what I want is I dont want this button to perform this. I mean when I load data in gridview the data will show in edit mode
    and when I edit any dat, the update will occur instantly in the sql server database. 
    Is there anything new development comes? whatever it is if its ajax or java script or something else please give me detail.
    Thanks for reading my post.
    Regards

    Questions related to ASP.NET should be posted in the ASP.NET forums (http://forums.asp.net ).

  • RFC enabled function module for insert update and delete in a Ztable..

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
    Thanks and Regards

    Hi,
    Try this code.
    REPORT ZMMC071Z_RMV.
    TYPE-POOLS : ABAP.
    FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
                   <DYN_WA>,
                   <DYN_FIELD>,
                   <LV_CONDI>.
    DATA: DY_TABLE TYPE REF TO DATA,
    DY_LINE TYPE REF TO DATA,
    XFC TYPE LVC_S_FCAT,
    IFC TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_TABLE  LIKE DD02L-TABNAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK F1.
    Evento: At Selection Screen                                          *
    START-OF-SELECTION.
      PERFORM GET_STRUCTURE.
      PERFORM CREATE_DYNAMIC_ITAB.
      PERFORM GET_DATA.
    END-OF-SELECTION.
    *& Form get_structure
    text
    FORM GET_STRUCTURE.
      DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
      XDETAILS TYPE ABAP_COMPDESCR.
      DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
      DATA VL_LENGHT(30).
    Get the structure of the table.
      REF_TABLE_DES ?=
      CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
      IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
      LOOP AT IDETAILS INTO XDETAILS.
        CLEAR XFC.
        XFC-FIELDNAME = XDETAILS-NAME .
        XFC-DATATYPE = XDETAILS-TYPE_KIND.
        XFC-INTTYPE = XDETAILS-TYPE_KIND.
        XFC-INTLEN = XDETAILS-LENGTH.
        XFC-DECIMALS = XDETAILS-DECIMALS.
        APPEND XFC TO IFC.
      ENDLOOP.
    ENDFORM. "get_structure
    *& Form create_dynamic_itab
    text
    FORM CREATE_DYNAMIC_ITAB.
    Create dynamic internal table and assign to FS
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = IFC
        IMPORTING
          EP_TABLE        = DY_TABLE.
      ASSIGN DY_TABLE->* TO <DYN_TABLE>.
    Create dynamic work area and assign to FS
      CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
      ASSIGN DY_LINE->* TO <DYN_WA>.
    ENDFORM. "create_dynamic_itab
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
    *Get data from p_table into internal table <DYN_TABLE>
      SELECT * INTO TABLE <DYN_TABLE>
          FROM (P_TABLE)
    Here you can implemente function DELETE, INSERT.
    ENDFORM.                    " De_para

  • Updating and deleting Partner functions for functional location

    Hi ,
    I am having a requirement of updating and deleting partner function for functional location .
    If anyone can suggest some BAPI or function module for same .
    Thanks n Regards
    Manik

    Hi Fritz,
    Thank you for your response,
    My need is to create a PARTNERS for the FUNCTIONAL LOCATION.
    LET ME DESCRIBE IT.
    WHEN I AM CREATING A FUNCTION LOCATION USING IL01, AS I ENTER A FUNCTIONAL LOCATION AND PRESS ENTER IN THE NEXT SCREEN.
    AND
    I NEED TO ENTER THE PARTNERS FROM THE DROP DROWN MENU  GOTO ->PARTNERS
    WHICH TAKES ME TO THE NEXT SCREEN WHERE I NEED TO FILL THE INFORMATION IN THE TWO FIELDS : FUNCT & PARTNER.
    I need a partner for the functional location that i mentioned above.and i need to upload that information in through Emigall.
    So my query was that can we customize that partner for this functional location and if yes, what should the constraints,
    what are steps required? Do we require a custom service module?
    Regards,
    Robert.

  • Apply and delete buttons need differentiation

    How do we get the apply and delete buttons put in different locations on the info window for ical? I've accidentally deleted when I meant apply because the buttons are in the same location. Mabye delete should be at the top right.

    Richard,
    That sounds like a great idea. Be sure to submit iCal Feedback.
    In the meantime, don't forget about the iCal>Edit>Undo menu command (⌘Z).

  • I have installed itunes 10.7 several times.  All goes well.  After reboot, I go into itunes and check for updates and it says I need to download the update 10.7! (And so cant sync with my Iphone)

    I have installed itunes 10.7 several times, all goes well. After reeboot, I go to check for updates and it still wants to update to version 10.7! I cant sync to my iphone4 because I get an error message saying I need version 10.6.3 or later. Help

    Thank you for getting me started on the track by mentioning "Revo" Uninstaller.  The results of "Revo" spoke volumns on why a successful install of ITunes is so difficult to achieve.  It is the evil "BONJOUR".
    I then tripped upon the following site by Apple and the detailed directions (I read, printed, re-read and followed the instructions.  It was intense) brought a successful ITunes, Quick Time and the lovely Bonjour home.  Thank you for the start JD42.
    http://support.apple.com/kb/HT1923

  • HT201380 Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    Yesterday this was automatically installed.  Today I can't access a document in Pages.  A prompt says I need a Pages update.  But the next screen tests for updates and informs me everything is up to date.  What's up?

    It's highly unlikely that the Pages update problem has anything to do with the ARD client update, since the client is not involved in any way with Software Update. I'd suggest asking for assistance with the update problem in the forum appropriate for your version of Mac OS X.
    Regards.

  • My ios7 update is frozen an says "preparing for update" and my computerkeeps saying I need to download the newest version of itunes even though I have. What can I do to fix this?

    My ios7 update is frozen an says "preparing for update" and my computerkeeps saying I need to download the newest version of itunes even though I have. What can I do to fix this?

    Go to http://www.apple.com/itunes/download and download the current version.

Maybe you are looking for

  • Time capsule failing to backup

    Hi. I am having a weird problem with my Time Capsule.  Apple does not seem to want to help; they say that I am using the Time Capsule in an unsupported configuration. Can anybody help here?? In short, I am using the Time Capsule (TC) as a network sto

  • My ipod touch 3rd gen. will not convert to widescreen on rotating the ipod since downloading os5. I restored in itunes but that didn't help.

    The problem started after updating the software to os5. I tried restoring in itunes but that didn't help. Is os5 or one of my apps causing the problem? Can I convert back to the previous operating system?

  • Strange Problem with Forms (Smart Forms)

    I have lately been experiencing a strange problem with standard forms in the system. We have WebAS640 / ECC5.0 System. Soon after the initial run of patches, most forms in the system are showing the character '#' in place of formatted texts. I have s

  • Reg XI Certification

    Hi Experts,              I  am planning to take XI Certification in Teched Bangalore. Hardly i have two and half months, whether this time limit is enough for the exam preparation without taking any training. If anyone have XI questions or XI Materia

  • Cannot start NodeManager Remotly (Via SSH Commands)

    Hi all, we are going to start the node manager of one of the cluster servers via SSH command. But it is not starting. We can start it directly by log in to that server and run startNodemanager.sh script. What is the issue? Thanks, Nir