Custom Save / Apply Changes / Delete buttons...

Hi All,
I wanted to make a custom save / apply changes and delete buttons in my forms. Therefore I wrote some JavaScript functions to call these actions as shown below;
function saveRecord(pListPage){
if (P&APP_PAGE_ID._CALLACTIONTYPE!= 'CANCEL') {
if (P&APP_PAGE_ID._CALLACTIONTYPE!= 'DELETE'){
doSubmit(P&APP_PAGE_ID._CALLACTIONTYPE);
lvurl = 'f?p=&APP_ID.:' + pListPage+ ':&APP_SESSION.::NO:' + pListPage+ ':P' + pListPage+ '_CALLTYPE' + ',P' + pListPage+ '_CALLFROM,P' + pListPage+ '_SELECTEDRECORD,' + 'P' + pListPage+ '_MANDATORYFILTER,'+ 'P' + pListPage+ '_MANDATORYFILTERVALUE,P' + pListPage+ '_REFERENCEDBY' + ':' + $v(P&APP_PAGE_ID._CALLTYPE) + ',' + $v(P&APP_PAGE_ID._CALLFROM) + ',' + $v(P&APP_PAGE_ID._SELECTEDRECORD) + ',' + $v(P&APP_PAGE_ID._MANDATORYFILTER) + ',' + $v(P&APP_PAGE_ID._MANDATORYFILTERVALUE) + ',' + $v(P&APP_PAGE_ID._REFERENCEDBY);
top.location.href = lvurl;
function deleteRecord(pListPage){
document.getElementById("P&APP_PAGE_ID._CALLACTIONTYPE").value = 'DELETE';
confirmDelete(htmldb_delete_message,'DELETE');
But the problems what I couldnt sort out are;
1- If any error happens in doSubmit(); (can be any DB error by triggers etc.) I cannot show the error. Does anybody know to check whether doSubmit() returned an error or not...
2- Delete button shows the confirmation dialog box but when I confirm to delete I got an error show below;
"     Checksum error for Hidden and Protected item ID (1737324593811176), value (DELETE), posted checksum (D636C53A8C84A57A1BBB04A61B600C4A), expected checksum (********************************), index_i (9), index_j (5), index_m (7); "
Can you please tell me how to sort this problems or can anybody know that there's another ways to do these things?
I really need help guys...
Thank you very much,
Osman...

Hi Varad,
We need to have custom buttons for save etc because there are some parameters must be transferred between screens. Let me explain it like this;
Normally when you enter the IR screen, we set a couple of hidden items' values. (such as P_CALLFROM, P_CALLTYPE, etc...)
and then user goes into a record to edit or insert.
When user saves the record by pressing standard Apex "Apply Changes" button, page will go back to IR page but we loose the parameter which we assigned before...
That's why I need to have a custom save, delete etc buttons...
So, if I need to create a custom process, Do I need to collect all the filed values from the page by myself?
Thanks,
Osman...

Similar Messages

  • 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).

  • How to make the delete button save before deleting?

    Hi all,
    I created a tabular form. What I want to do is when the user click the Delete button, it saves the chagnes AND delete the checked row(s). I tries putting the request "Delete" in the Conditional Processing of the multirow delete process, but I couldn't get it to work.
    Does anyone know how to do that? Thank you very much for the help in advance!

    So, instead of having two separate button, one for Apply Changes and the other for Delete , you want to have one button that will do both. However, if you do that you may miss out on the delete confirmation or end up having a confirmation for both the actions.
    Here is how to do it.
    1. Lets say we will retain the Apply Changes (label) button with request SUBMIT. So make the Condition on Delete button 'Never'.
    2. Now edit the ApplyMRD process and make the condition When Button Pressed = 'SUBMIT'
    3. ApplyMRU will also have the same condition.
    Now both processes should fire on the click of one button.
    BTW, you many have to change the sequence number of the ApplyMRD process and make is greater than the sequence number of the ApplyMRU process.
    Regards,
    Edited by: Prabodh on Aug 17, 2010 8:28 PM

  • Can I use "Delete button" in intaractive form?

    Hello Expert.
    Please tell me the phenomenon of interactive form in Performance Management(MbO or OSA) .
    I use "off line" solution.
    Now our customer would like to delete button as delete some objectives who does not entry any comment.
    Can I use this delete button in interactive form?
    I cannot find the delete button in this form...
    Best regards,
    Makoto

    You should try the LiveCycle Designer forum, but from my experience with Acrobat forms it's not possible. What you can do is either save the file using the desired file name and path (without user interaction), if the script runs from a trusted context, or you can prompt the user with the desired file-name for the file, but not enforce them to use it, nor populate it into the Save As dialog itself.

  • Delete trigger not working on delete button

    I have a form (parent) / report (children) combo page with all the default buttons (create, apply changes, delete, cancel) created from the wizard. I've created a before delete trigger on the parent table that basically finds all the children and deletes them. For debugging purposes, I've added some inserts into a test table to make sure my bind variables binding correctly (they are). When I confirm the java script delete and say ok, the insertion of the text for debugging purposes works fine, but the actual deletion of the other records does not. Any ideas why?

    Then it is easy-your delete process is not fireing!!
    Why...there may be many reasons....but I'm pretty sure that process is never fired!
    Look in your page or show us a demo on workspace

  • How to change color when I using delete button?

    Hi experts,
      When I using delete button on input schedule before enter any data, it display the same color on the data range, how can fix the color after using delete button? or is it a formatting problem?
    BPC ver : 7.5 sp3 for NW
    best regard
    Evans.

    Evans,
           Is delete button custom made? i think it is possible with Formatting Range.
          check the below for advanced formatting.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70573b01-657a-2b10-a2b2-ec54bb0a9c8c?quicklink=index&overridelayout=true
    I think you need use CHANGED  as value for CRITERIA.  I don't think NW doesn't support CHANGED value for CRITERIA i guess.
    Thanks,
    Ben.

  • Trapping - "Do you want to save changes" alert button pressed

    When exiting a data block with unsaved changes, the user is prompted with "Do you want to save the changes you have made ?" The possible button click responses are "Yes", "No", "Cancel"
    Is there a way to programmatically catch the click on the "Cancel" button ?
    Oracle Forms 10g

    Thanks for the suggestion W1zard. Here is the solution that I have come up based on the recommendation.
    Essentially I create my own custom alert that mimics the system generated alert. In this manner I am able to control the behavior based on the alert button pressed by the user. This method also suppresses the system generated alert, so the user isn't prompted twice.
    At the form level I have created the KEY-EXIT and the KEY-ENTQRY triggers. Additionally I created an ALERT titled SAVE_CHANGES with buttons Yes, No, Cancel.
    h4. KEY-EXIT Trigger
    DECLARE
         alert_id     ALERT;
         alert_button     NUMBER;
    BEGIN
         IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
              alert_id := FIND_ALERT('SAVE_CHANGES');
              alert_button := SHOW_ALERT(alert_id);
              -- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
              IF alert_button = ALERT_BUTTON1 THEN
                   EXIT_FORM(DO_COMMIT);
              ElSIF alert_button = ALERT_BUTTON2 THEN
                   EXIT_FORM(NO_COMMIT);
              ELSE
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         ELSE
              EXIT_FORM;
         END IF;
    END;h4. KEY-ENTQRY Trigger
    DECLARE
         alert_id     ALERT;
         alert_button     NUMBER;
    BEGIN
         IF :SYSTEM.FORM_STATUS IN ('CHANGED') THEN
              alert_id := FIND_ALERT('SAVE_CHANGES');
              alert_button := SHOW_ALERT(alert_id);
              -- ALERT_BUTTON1 is Yes, ALERT_BUTTON2 is No, ALERT_BUTTON3 is Cancel
              IF alert_button = ALERT_BUTTON1 THEN
                   COMMIT_FORM;
                   ENTER_QUERY;
              ElSIF alert_button = ALERT_BUTTON2 THEN
                   CLEAR_FORM(TO_SAVEPOINT);
                   ENTER_QUERY;
              ELSE
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         ELSE
              ENTER_QUERY;
         END IF;
    END;

  • I have accidentally deleted my voice memo when i pressed the 'delete' button, thinking that is to change the name of my voice memo. is there a way to retrieve the memo back?

    I have accidentally deleted my voice memo when i pressed the 'delete' button, thinking that is to change the name of my voice memo. is there a way to retrieve the memo back?
    really do not understand why apple provides just one confusing delete button in its newer ios, instead of the previous versions which actually gives a confirmation button of whether to delete voice memo.

    What system did the Mac come with and what system are you running now? If it's 2 years old, i.e. bought in 2010 then it came with Leaport or Snow Leopard installed and would have had install disks.  Included in those disk would be a disk similar to one of these:
    That would have included iPhoto 8 (09) if bought before October 20, 2010 or iPhoto 9 (11) if bought after that date.  In either case you should have a disk like in the screenshot.  If not then you'll have to purchase an iLIfe 11 boxed disk from a 3rd party retailer like Amazon.com: iLife 11 and install your missing applications from it and then apply the latest updaters from the Apple Downloads web page/
    OT

  • Change the button(SAVE) name in Bank information in ESS

    Dear experts,
    I want to change the button name in Bank information in ESS like SAVE to SUBMIT.
    This where i can do it in NWDS? In the message pool i'm able to change ROAD MAP text, but i'm unable to change the text button under labels in bank information in ESS.
    We are into ERP 2004 so personalization editor won't come, additionally we have to do it through NWDS.
    So in NWDS where can i change this button text?
    Regards,
    Devi.

    Hi Devi,
    In ESS applications, the buttons are present in the DC ess/per. The Text of 'Save' button is mapped to context attribute Text.ReviewButton. The node 'Text' present in FcPersInfoInterface can be mapped to the view and the text of button can be changed as
    wdContext.currentTextElement().setReviewButton("Submit");
    The text 'Submit' should appear only while creating or editing records. 
    While deleting a record, the text of the button should be 'Delete'.
    Regards,
    Anushree

  • I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    Hi Atrec,
    If you don't need your old custom template, save your changes with the same template name. It will tell you that this template exists and will ask you Replace? Say yes (if you do want to replace the old with the new!)
    To delete unwanted templates, go to Finder > Menu > Go and press the option key. Your Library will show in the Go Menu. Navigate to Library > Application Support > iWork > Numbers > Templates > My Templates.
    Delete any unwanted template by dragging it to the Trash or click on it then command-delete.
    Having gone to all that trouble to find My Templates folder, right click (or control click) on it and Make Alias. Drag the Alias to any convenient place for a quick way to get back to that folder.
    Regards,
    Ian.

  • "could not save list changes to the server" while creating a new form in SharePoint Designer - custom content type

    i am getting "could not save list changes to the server" while creating a new form in SharePoint Designer.
    Actually the list was created with a custom content type. When i try to create a new form from the custom content type, it fails.
    However, when i try to create a form using item content type, it creates a form successfully.
    Could you please let me know hte workaroud for this.
    Tnx

    Hello,
    This link may be help you to create custom form using content types:
    http://blog.splibrarian.com/2011/03/21/using-content-types-to-modify-the-newform-aspx-and-editform-aspx-pages/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help <br/>(On vacation from 16th Oct to 28th Oct 2014)

  • 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

  • Change title of Delete button in UITableView

    Hi,
    I have a functionality of deleting record from table in my app. When table is switched in editing mode and on tapping red minus button a Delete button appears on right side.
    I want to change the title of this button from Delete to Remove. Is it possible in SDK?
    Please help.
    Thanks

    Hi, it's not impossible but not official too.
    There's a property "_removeControl" in UITableViewCell class which should contain a reference to the delete-button.
    Give it a try and tell us if the app passes review.

  • Re: Enable Save ,Delete buttons in Form

    Hi All,
    I using Jdeveloper 11.1.2.3 ,
    My scnerio is i am taking 2 panel tabs  One tab contain table i.e List, second tab contain the Form i.e Details ,
    I am taking Save,Delete,CreateNew buttons, Whenever i am in List Only CreateNew buttons should enable mode,remaining 2 buttons is in disable Mode.
    and in Details form Save and Delete buttons is Enable Mode.
    How Can i achieve this requirement,
    With regards,
    satishkumar

    Thanks for your Rply Timo,
    I have lot of forms in Application, thats why i am globally defined all the Buttons.
    WithRegards,
    satishkumar N

Maybe you are looking for

  • Two identical audio tracks, identical waveforms, BUT non-sync playback!

    Hi all - I've been up all night trying to figure this one out... I've shot a video on XDCAM, edited using the native codec in FCP 6.06, graded in Color and sent back to FCP as ProRes 422 (HQ). Now, here's the weird one - the original unmixed soundtra

  • Get/Set coordinate of layer

    Hi all, i have a layer "A" size:120*150x and layer "B - background" size:800*600px. How can i set layer "A" on coordinate x =258px;y=157px. Without need to apply ctrl+t mode. Thanks for reply.

  • Canon printer update not available

    Software update appears to find new Canon mfp (MX870) software but when it asks to install it, I get a dialog box saying the "software is not available at this time". This hase been happening for the last 2-months or so. Running 27" iMac with OS 10.8

  • Ram for a Quicksilver 867mhz

    hi folks, i'm buying second hand ram for my quicksilver. i know it needs pc133 sdram. this guy selling me this ''Samsung 512 MB PC2100 DDR RAM (M368L6423DTL-CB0' says it compatible. I have tried googling but am limited in my undestanding.... is it co

  • HP still doesn't have Print drivers for Mountain Lion?

    A couple of months ago, I upgraded my MBP (mid-2008; 2.4 GHZ) to Mountain Lion.  I am now running OS X 10.8.2.  Once I completed the upgrade, I discovered that I was unable to print to my networked HP Laser printer  (It is an HP LaserJet P1606dn).  T