SAVE button event in component TPMOE view TPMOE/HeaderEOF

Hi Experts,
Which is the method that triggers on Save button click event?
Thanks,
Anubhav

process_method is the right place to catch the save event. From there you can call the FM or model class to actually save the data. There are many examples available in APB_FPM_DEMO package. Have a look at them and learn from it. In addition to it refer to FPM Development manual in FPM site.
[Floorplan Manager (FPM) Web Dynpro ABAP|Floorplan Manager (FPM) Web Dynpro ABAP]

Similar Messages

  • Update of database table on save button of different component

    Hi all,
    I wanted to update the data base table on click of save button which is present in other component.
    The component A i have the view screen  and I made node with dictionary structure. I want to modify the database table once user click on save button which is in Component B.
    I tried to change the node of view present in component A and make interface node as yes but could not change it.
    any approach ?
    Regards

    Hi Kiran,
    Just make the node(which contains all the data ) on component A as interface node, map it in the component B. In the OnAction method of Save button of component B, just read that node and get the values in an internal table and then use ABAP modify statement to modify the database table according to the data present in the internal table.
    Regards
    Arjun

  • BSP-Error while adding a "Save-Button" to a View

    Dear Community,
    I have created a UI-Component which contains a Window and a View. I already connected the view to the window. What I'm trying now is to add a "Save-Button" to save the input of the view. This is my Structure:
    The Code of USERINPUT.htm is as follows:
    Here are my Questions
    1) What exactly do i need to put into parameter "id" and "table" within the configCellerator? My window and view are connected and when it opens there should be the "Save-Button".
    2) When I select "Test" my browser opens but I cannot see the preview, intead I get this exeption. Is my code wrong or where is my mistake?
    Thank you for your help!
    Marcel

    Hi Marcel,
    if you want to create buttons in your form view there is a method in your implementation class that is
    get_buttons.
    you have to implement the method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS from your implementation class.
    example:
       *****************SAVE***************************************************************************
      CLEAR ls_button.
      ls_button-type     = cl_thtmlb_util=>gc_icon_save.
      ls_button-on_click = 'SAVE'.                              "#EC NOTEXT
      ls_button-page_id  = me->component_id.
      ls_button-enabled = abap_false.
      IF view_group_context IS BOUND.
        IF view_group_context->is_any_view_editable( ) EQ abap_true AND lr_entity->is_changeable( ) =abap_true.
          ls_button-enabled = abap_true.
        ENDIF.
      ENDIF.
      APPEND ls_button TO rt_buttons.
    * Toolbar Divider
      CLEAR ls_button.
      ls_button-type     = cl_thtmlb_util=>gc_separator.
      ls_button-enabled  = abap_true.
      APPEND ls_button TO rt_buttons.
    And write an event handler for this:
       METHOD eh_onsave.
      DATA: lr_core    TYPE REF TO cl_crm_bol_core,
            lr_entity  TYPE REF TO cl_crm_bol_entity,
            lr_tx      TYPE REF TO if_bol_transaction_context.
      lr_entity ?= me->typed_context->btadmini->collection_wrapper->get_current( ).
      lr_tx ?= lr_entity->get_transaction( ).
      IF lr_tx IS NOT BOUND.
        lr_core = cl_crm_bol_core=>get_instance( ).
        lr_tx = lr_core->begin_transaction( ).
      ELSE.
        IF lr_tx->check_save_possible( ) = abap_true.
          CHECK lr_tx->save( ) EQ abap_true.
          lr_tx->commit( ).
        ENDIF.
      ENDIF.
      me->view_group_context->reset( ).
    when ever you want to call any transaction while button click go through this link..
    call transaction launcher on button press with parameter passing
    you can come to know how to call.
    in that doc you have to create one transaction launcher for your standard workflow. then that tcode you
    need to call using that concept..
    if you want to create table view  go through this link..
    SAP CRM WEB UI : 43.CREATING TABLE VIEW FOR LINE ITEMS WITH DEPENDENT CONTEXT NODES
    CRM Web UI Technical - Creating Table View In Web UI - CRM - SCN Wiki
    Thnaks & Regards,
    Srinivas.

  • How to find event handler for save button in salesorders

    Hi,
    I want perform event based on save button in salesorders.Can you tell me how to find the event handler for
    save button.
    Regards,
    Brahmaji

    Brahma,
    you can find the component, view details by doing an F2.
    open the component, the view will be mostly an overview page i.e., the name ends OP etc.,
    But your method name will be mostly EH_ONSAVE, you need to find exact view.
    F2 does not come up properly for overview pages, you have to look into UI config tool preview and make sure sometimes.
    Regards,
    Masood Imrani S.

  • How to handle custom component data on overviewset save button CRM UI

    Hi,
    I have added a custom component to a standard view which is enchanted.
    I can handle any data with my buttons on the component but after editing data
    i need the save the data when the save button on the overview(top) is pressed.
    I have redefined save button of overview but i cant get my data.
    My node name is Root. I think i couldnt bind it to overview.
    How can i do that?
    Thank you

    Probably it can be done by
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUITechnical-CreatingTableViewInWebUI
    i am trying
    Thank you

  • Handling button events for dialog boxes of a used component

    Hello,
    After I call a dialog box/window for the view of the used component, how can I handle the button events of the window that I called?
    I create the window using the method CREATE_WINDOW_FOR_CMP_USAGE of the interface IF_WD_WINDOW_MANAGER. This method returns window reference of type IF_WD_WINDOW.
    Thanks & Regards,
    Reena

    It's very easy.
    Have a look to the document: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c180163c73
    You will find the SUBSCRIBE_TO_BUTTON_EVENT on page 6.
    Sergio

  • How to determine the event generating component in RESTORE-VIEW phase

    Hi,
    I have performance issues with my application.
    I am using PPR for components within the CoreTable. The table-model for this ADF-CoreTable is coded in java instead of binding it to PageDef table.
    The PageDef for the JSF page is heavily loaded with other objects & therefore there a delay in response. I have also found out that maximum time is lost after the RESTORE_VIEW process to before APPLY_REQUEST_ VALUE phase.
    Not sure if I am doing it right, but this is what I plan to do.
    On determining the event from CoreTable components, I want to bypass the ADF phase by passing null to all ADF Phases
    initContext(null)
    prepareModel(null)
    & before Invoke application
    prepareRender(null)
    Is there a way to determine the event generating component in the PhaseListener class?
    This is a ADF 10g project developed on JDeveloper 10.1.3
    Thank you,
    Prakash

    Just for other readers,
    I attempted to create a button to toggle a session scope Flag for test & proceed. However I was still unable to skip the ADF phase.
    In a self defined PhaseListener I also tried to remove ADFPhaseListeners before RESTORE_VIEW & reinstate it back in before RENDER_RESPONSE. Except the ADF InitContext() & processValidation() which run immidately after RESTORE_VIEW all other calls to ADF Phases were skipped.
    The reasults were not helpful to proceed as I need to entirely skip/bypass the ADF lifecycle to achieve the quick responce.
    Thank you

  • When a third party program creates a new Google calendar event using a http link I cannot click the save button in Firefox 9.01 or 10b2.

    I use a TV listings program called DigiGuide. This has a script that opens a new Google Calendar event page in my browser for a specified TV program with all fields already completed. I then just have to click the SAVE button on the Google Calendar site to save the event - but since updating to 9.01 from 8.xx this button and others (Discard, Search) has no effect, although the cursor changes when over the button as if it recognised a link. Opening the same page in Chrome works fine. I have also noticed that Calendar's other buttons (e.g. next/previous period) can stop working on the main Calendar page, which I have as a pinned tab - in this event navigating away from Calendar and back again regains that functionality. The issue persists in Firefox 10b2.

    Further investigation reveals this only happens when the event is created from within WP native calendar app and disappears when I make an edit to the event in any other calendar client including Google web. So a more appropriate description of the problem would be:
    "Native calendar app keeps subtracting 1h off a Google calendar event on EVERY edit"
    Create an event at 2013/07/17 15:00 in WP native calendar app. Result: Event shows as 2013/07/17 15:00 in the calendar app for a few seconds, then updates itself to 2013/07/17 14:00.
    Edit the event title and save in WP native calendar app. Event time moves by -1h again to 2013/07/17 13:00.
    Edit the event title in Google web calendar.
    Subsequent edits in WP native calendar do not mess up the time any longer. If I fix the time to what I originally intended (2013/07/17 15:00) in WP native calendar app, it stays there and shows correctly in all previously mentioned calendar viewers.
    I just learned that Lumia 925 was released with GDR2 update pre-installed. This update is only now being made generally available. If the issue is secific to the CalDAV implementation in GDR2 rather than specific to my phone only, this would make a lot of angry people. I hope I'm wrong on this though as it's an extremely frustrating problem.

  • How to save all event viewer log files in Windows 7 Professional

    Hello,
    I would like to save all Event Viewer logs from my Windows 7 Professional computer and be able to view them from another computer.  Currently I can only save one log at a time.  Please let me know how I can save all Event Viewer logs
    (Windows Logs, Applications and Service Logs, etc.).
    Thanks,
    Jason

    Hi Jason,
    There is no idea to save all categories log.
    It's recommend you ask in Official Scripting Guys forum for further help:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
    Besides that, this thread could be referred:
    http://social.technet.microsoft.com/Forums/en-US/d66c1bd7-0e61-4839-a5f6-cbe29661dccb/how-to-use-script-saving-log-from-event-viewer-into-csv-file?forum=ITCG
    Karen Hu
    TechNet Community Support

  • How to trigger 'save' event without pressing SAVE button

    Hi, i want to execute my 'save' event without press the SAVE button.
    I want to simulate press the button with abap code and sy-ucomm = 'SAVE'.
    Is there a function module for this functionality
    Thanks
    Reward Points

    Well, than just forget about the buttons and create some code at the end of the PAI event which you have already coded (i realize some actions ( with my code)). Just do a perform event_xxx and perform event_yyy. The code which will be executed (processed) will look exactly the same as if you had created it when pushing buttons:
    CASE OK_CODE.
    WHEN 'AAA'.
    let's say this is done with your code
    perform event_aaa.
    perform: event_xxx, event_yyy.
    WHEN 'XXX'.
    perform event_xxx.
    WHEN'YYY'.
    perform event_yyy.
    ENDCASE.
    Helpful?

  • FileDialog.SAVE: trap the "Save" button click event

    Hello All
    Can anyone help me with FileDialog.SAVE, as to how we could trap the Save button click event? Is it possible to actually trap that particular event, rather than just checking for FileDialog.getFile() == null -> which indicates that "Cancel" button was selected.
    Any help would be highly appreciated
    Regards
    Naushin

    You can not do this, because FileDialog uses native dialog and all
    buttons on it are native (there are no java-components for them).
    Thus checking FileDialof.getFile() for null is only way to figure out
    whether user choose some file or not.

  • CS02, On click of SAVE button, need to capture some event related with this

    Hi,
    My requirement is like,
    I change the material BOM using CS02 tcode.
    When, I complete the changes, and click on SAVE button, I dont find any event triggering in the system.
    Can any help in capturing some event related to this?
    The reason why I need this is ..during  the workflow runtime, the user is presented with the workitem to change the Material BOM with CS02 tcode. And, if sometimes, by mistake, the user is unable to complete the changes of the workitem, and comes back of CS02 without change completion, then the workitem is disapperaing from the inbox, with out completing the intended task of the workitem. So I want to make the workitem appear repeatedly in the user's inbox, till the desired action is done.
    Thanks

    Sai,
    You need to use a Loop..While statement by validating the decision step.
    Use a varaiable to store 'Y' or 'N'.
    intially, have the value as 'N' and if the required outcome is taken. Eg: Accept,Reject.. then change the value to 'Y', which will go to the next step of workflow.
    if 'N', it will again create a new workitem with the same content to the same agent.
    Hope this helps.
    bye,
    Sudhir.

  • How te get the event of SAVE button in WDDOPOSTPROCESSING method

    Hello,
    am using an application that was configured with FPM, and my question is  how can I get the event wehen the user click on the save button in the method WDDOPOSTPROCESSING?
    will explain again!
    if the user click on the save button, how can I know or get the event in the WDDOPOSTPROCESSING?
    am talking here about the general save button in the header..
    please let me know if somebody knows
    thank you all

    just to make it easy for me,  the save button has an ID , i dont know how to get that ID  or where that action will be generated , i dont know where to implement my method, and this is the problem i dont know where or which method or class or IF will be genareted
    the SAP Developper are taking this case into consideration , because normaly all the data will be stored first in a buffer table, and after the suer clicks on the SAVE button, all the data will bestored in the corresponding INFOTYPE using the CP of the person, but in case of some INFTYPEs that are specified with 'P' instead of 'CP' we can't use the SAP Standard methode insert_infty , and this is the reason why i believe that there must be an alternative way to save all DATA of all Subtable by clicking only once on the save button.
    I foundout that the methode WDDOPOSTPROCESSING will be generated after clicking on the SAVE button, but as I said, i can't get the corresponding event ????
    please is somebody has an Idea, am still interessted to get the solution.
    thank you all

  • Enabling Save button Detail tile load - event

    Hi,
       I want to disable "New" button and enable "save" button on load event of Detail tile. Can anyone plz help me out..
    Thanks
    Mateen

    You can do this by setting the authorisation of the specific tile:
    mcore.setreadonly = <boolean>
    Only true and false is allowed, It is i.e. used in the OnLoad of tile Toppcassop2 or in various other EnableModification methods.
    Regards, Kai

  • Need some help with button JavaScript for Save As event.

    Hi,
    I'm using Adobe Acrobat X Pro and am completely new to scripting forms in Adobe (completely new to Adobe Acrobat as well!).  On a form there is a save button that opens the Save As dialog by using a trigger (Mouse Up) and action (Execute a menu item - File>Save As...>PDF...) and this works fine, however, I want to now use javascript to modify this button's behavior so that is uses a trigger (Mouse Up) and action (Run a JavaScript), and I want that JavaScript to combine the text values from two form fields (a location Dropdown and a date Text field) and use this concateneated string + ".pdf" as the filename when it opens the Save As dialog.  Make sense?
    This is what I have added to the button as a JavaScript so far I am using a test string at the moment ("NewFile.pdf") and will add the concatenated string to the script after I know the script is working as it should.
    var newFileName = "NewFile.pdf";
    var pathArray = this.path.split("/");
    pathArray.pop();
    pathArray.push(newFileName);
    this.saveAs(pathArray.join("/"));
    Two issues so far:
    1. When I click the button nothing happens, no Save As dialog or anything. 
    2.When I check the button properties under the Actions tab the Select Action property shows "Execute a menu item" even though I previously selected "Execute a JavaScript"
    Thanks for any help!

    Thanks guys, I appreciate the response!  If I can bypass the Save As dialog and save the file to a default location using a file name that is contructed from two form field values then that would be perfect. I definitely think it is feasible to have a script file installed locally on each users workstation. I don't quite understand about folder-level security, etc. yet but am eager to learn how to do this stuff if you can give me gentle push in the right direction!  Thanks!

Maybe you are looking for