Capture user action from method cl_wd_popup_factory= popup

Hi There,
Just wondering if anyone can explain to me how i capture what button a user pressed when using the method 'cl_wd_popup_factory=>popup' and how I perfor different methods/ functionality depending on what they pressed.
At the moment i can create the popup using the code below but it is not displayed untill the current method has been completed, at this point it seems too late to allow me to control of the code.
call method cl_wd_popup_factory=>popup
      EXPORTING
        component    = lr_component_api
        view_name    = 'VIEW2'
        button_kind  = if_wd_window=>CO_BUTTONS_YESNO
        message_type = if_wd_window=>CO_MSG_TYPE_QUESTION
      IMPORTING
       POPUP_WINDOW        = window
       COMPONENT_USAGE     = comp_usage.
Any ideas would be much appreciated
Regards
Martin

Thanks Rainer,
That has worked a treat, i used the CREATE_WINDOW method directly rather than using it viw the OPEN_POPUP method but should not make any different should it? see code below
Thanks again
Regards
Martin
  data: lr_popup type ref to if_wd_window,
        lr_view_controller type ref to if_wd_view_controller.
  data:
  lr_api_comp_controller type ref to if_wd_component,
  lr_window_manager type ref to if_wd_window_manager.
  lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
  lr_window_manager = lr_api_comp_controller->get_window_manager( ).
  lr_popup = lr_window_manager->create_window(
  MODAL = ABAP_TRUE
  window_name = 'WND_TEXT'
  TITLE = 'TITLE '
  CLOSE_BUTTON = ABAP_TRUE
  BUTTON_KIND = if_wd_window=>co_buttons_okcancel
  MESSAGE_TYPE = if_wd_window=>co_msg_type_none
  CLOSE_IN_ANY_CASE = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
  lr_view_controller = wd_this->wd_get_api( ).
  lr_popup->subscribe_to_button_event(
  button = if_wd_window=>co_button_ok
  button_text = 'ok_text'
  action_name = 'SUBMIT'
  action_view = lr_view_controller ).
  lr_popup->open( ).

Similar Messages

  • Extended Notification-Capture User Action at Outlook

    Hi gurus,
    I have done the configuration for SAP Extended Notification. The hyperlinks for work items are sent to users by outlook. It works OK.
    What I want to know is whether the user has click the work item Hyperlink at Outlook. 
    I need to capture the users' action of clicking the link and sent it back to SAP.
    Is it possible to get the action captured from the Outlook?
    Cheers.

    Thanks Rainer,
    That has worked a treat, i used the CREATE_WINDOW method directly rather than using it viw the OPEN_POPUP method but should not make any different should it? see code below
    Thanks again
    Regards
    Martin
      data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
      data:
      lr_api_comp_controller type ref to if_wd_component,
      lr_window_manager type ref to if_wd_window_manager.
      lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      lr_popup = lr_window_manager->create_window(
      MODAL = ABAP_TRUE
      window_name = 'WND_TEXT'
      TITLE = 'TITLE '
      CLOSE_BUTTON = ABAP_TRUE
      BUTTON_KIND = if_wd_window=>co_buttons_okcancel
      MESSAGE_TYPE = if_wd_window=>co_msg_type_none
      CLOSE_IN_ANY_CASE = ABAP_TRUE
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
      lr_view_controller = wd_this->wd_get_api( ).
      lr_popup->subscribe_to_button_event(
      button = if_wd_window=>co_button_ok
      button_text = 'ok_text'
      action_name = 'SUBMIT'
      action_view = lr_view_controller ).
      lr_popup->open( ).

  • Win XP to Win 7 - Using OSD - Capturing User data from Profiles

    Hi All,
    I'm having a few issues with capturing users profiles using USMT moving from Windows XP to Windows 7 as part of a task sequence - we use a SMP to save the data but strangely it wont apply the data on Apply state store. The OS deployment works fine but saving
    user's data and moving it too new PC doesnt seem to apply. I am using Stock requests for the task sequence Find user state storage capture user state etc and like wise at the end apply user state and release user state but doesnt seem to work. Are there any
    variables that need to be added to get this working or am i missing something stupid? We do use same PC to image and have mentioned about hardlinking but powers that be want to use SMP. How would this work also if when using Computer association(due to the
    Windows 7 pc not being setup yet)?
    Apologies if im missing something simple

    You are doing what is called a "refresh" OSD scenario...refreshing the OS on the computer while maintaining user state. SCCM automatically creates a computer association in that instance. If an existing Replace (Old to New) computer association
    does not already exist, then it will create a Refresh Computer Association to allow the user state to be restored to the same computer. You wouldn't need to do anything special.
    The key is that you need to have your task sequence be capable of both capturing the user state at the beginning of the task sequence, then laying down the new OS, then doing the restore of the user state...all within the same task sequence.
    If you utilize the MDT integration with SCCM and build an MDT integrated task sequence, this functionality is already built in. Although for simple testing purposes to show the concept, you can simply add to your existing task sequence.
    Your task sequence would need to include the following major sections:
    Capture user state (including the request/release state store tasks)
    Lay down the OS (essentially the components of your regular bare metal imaging task sequence)
    Restore user state (including the request/release state store tasks)
    <p>Jarvis </p>
    <b>Blog:</b> <a href="http://verbalprocessor.com/feed/" target="_blank">
    <img src="http://aka.ms/gmvm2k" border="0"></a> <a href="http://verbalprocessor.comhttp://verbalprocessor.com">http://verbalprocessor.com</a>
    <b>Twitter:</b> <a href="https://twitter.com/VerbalProcessor" target="_blank"><img src="http://aka.ms/iejgcv" border="0"></a>
    <p><font size="1">Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.</font></p>
    <p><font size="1">The postings on this site are my own and don’t necessarily represent my employer’s positions, strategies or opinions.</font></p>

  • Can I video capture 'live action' from Viewer screen ...

    Can I capture 'live action ' video as it appears on the 'viewer screen' in iMovie as I move the cursor across the 'source video' clips. Does iMovie allow me to record this 'action' to hard drive ?? ... Suggestions greatly appreciated.

    it is this 'rapidly changing 'still' images' as it appears in the 'viewer' that I want to record.
    You could use a screen capture application like Snapz ProX to capture the "preview" window as it is either playing or being "scrubbed." On the other hand, if you have QT Pro, you could also export the original source clip as a sequence of still images (image frequency can be selected by the user) to a folder and then simply open the "Image Sequence" using QT Pro to create a motion clip with a user selected frame rate for viewing. This approach would provide a more even playback than a screen capture of a "scrubbed" playback which depends on how fast and steadily you "scrub" the file.

  • Capturing User Action and populating Standard table

    Hi Friends ,
    I have a requirement , its a classical report and in that based on the user action ( if the user checks a check box that is available in the output screen of the report and saves it) the value should be updated in a standard table as 'X'. I have appended the field in the standard table and now i need to write a logic at user command to populate the zfield that i have added in the table based on the user's input.
    I need to capture the user's action into an internal table and then pass this value into a function module to update the standard table, Can someone suggest me how to proceed further on this issue ? Kindly let me know if you have any sample piece of code related to this scenario...
    thanks in advance.

    DATA: date TYPE d,
          flag TYPE c LENGTH 1,
          wa   TYPE c LENGTH 10.
    START-OF-SELECTION.
      date = sy-datum.
      DO 10 TIMES.
        date = date + sy-index.
        WRITE: / flag AS CHECKBOX, (10) date.
      ENDDO.
    AT LINE-SELECTION.
      DO.
        READ LINE sy-index FIELD VALUE flag
                                       date INTO wa.
        IF sy-subrc <> 0.
          EXIT.
        ELSEIF flag = 'X'.
          WRITE / wa.
        ENDIF.
      ENDDO.

  • Call a user action from a plugin

    Hello
    Is it possible to call an action made by a user, if yes how I can retrieve it (by its name ?) and is it possible to set some arguments of the action ?
    Thanks

    here it is a sample of how PlayActionEvent method could be used:
    ASErr
    AIArtHandleModifier::Rasterize()
              AIErr result = kNoErr;
              AIActionParamValueRef valueParameterBlock = NULL;
              ActionDialogStatus dialogStatus = kDialogOff; 
      try
                        result = sAIActionManager->AINewActionParamValue(&valueParameterBlock);
                        aisdk::check_ai_error(result);
                        if (valueParameterBlock)
                                  //set valueParameterBlock values (params) before calling
                                  //PlayActionEvent method.
                                  //It's up to you to set it
                                  result = sAIActionManager->PlayActionEvent("ai_plugin_rasterize", dialogStatus, valueParameterBlock);
                                  aisdk::check_ai_error(result);
                                  result = sAIActionManager->AIDeleteActionParamValue(valueParameterBlock);
                                  aisdk::check_ai_error(result);
              catch(ai::Error& ex)
               //Do something with this!!!
      return result;
    Regards,
    Thomas.

  • Capturing user input from a message choice..urgent!!!!!!!!!!

    Hi All,
    I am working on OAF 5.7H with a Travel Module for a UN organisation .
    I have a pge in which I have table Region.In the table i have a message choice Box displaying different Travel Types.In the same row i have a check box with Yes or No value
    my requirement is ,whenever the user selects some particular travel types(the page gets refreshed) from the message choice,the check box should be rendered or hidden.
    For example
    if the user selects travel type MISSION in the message choice ,the page refreshes and the check box shud not be rendered
    and
    if the user selects travel type HOME LEAVE,the page refreshes and the check box shud be rendered.
    But my problem is i am not able to capture the user selection of the message choice and at the same time render the chek box true or false.
    If i kan capture the user selection of the message choice values while the page refreshes then at the same time i kan play around with the chekBox.
    First of all is this possible and if kan anyone give me a little clue.

    Thanks Ram for your reply..I did this but it doesnt seem to work..Because now i realize the problem is somewhere else.
    I have a Table RN as i said.
    In that table region all the componenets are added in stack layout,i mean to say every stack layout region gets added coloumn wise to the table.
    Now i have a Add Anather Row Button.
    My requirement is :
    Suppose the user selects Travel Type Mission on first row,The page gets refreshed and the chekBox doesnt get rendered.
    Now if the user hits Add Anather Row Button and creatres a new row and selects the travel type to be HOME LEAVE whereby the check box shud get rendered in that row.
    But the problem is this is not happening.
    i am doing as u said..
    Now if i choose a Travel type in the second row which shud hide the chekbox then in all the rows the Check Box gets hidden,even in the previous row where it shud be rendered.
    This is happening because each of the stack layout region conataining the chek boxes get added as coloumn to the entire table,
    So if i do any manipulation on the chek box it gets defaulted for all the rows.
    I dont know what to do ..
    i need to handl eit row wise.
    I am iterating through the row set to capture the travel types in each row.
    But on the row set i cannot set any web bean property.
    somebody please tell me ho wto crack this.
    Thanks

  • Capture User Information from Adobe Captivate Quiz

    I created an Adobe Captivate (version 5.5) interactive training, which includes a 10 question quiz. Unfortunately I can't seem to figure out the best way to get the user to submit their name, location, and email along with the quiz. Without this I just seem to be getting the quiz results without any identifying information. I tried adding a "short answer" slide, but then I seem to have to create several of those slides just to get one piece of identifying information at a time. Is there an easy way to get the user's identifying information on a particular slide before they submit their results?
    (As a side note I'm having a tough time even getting the Post Results working in the first place. But I'm thinking it might be better to ask that as a separate question since it's not necessarily related to this one.)

    Hi there,
    Thanks for reaching Adobe Community.
    You can create a username and password on the Captivate slide through Advanced actions.
    Please refer to the below link:
    http://help.adobe.com/en_US/captivate/cp/using/WS7333B421-3FBB-4c30-BA F9-EC9F01A17A61.html
    Thanks!
    Shekhar

  • How to capture user inputs from Enter_query command?

    When the user enters query(F7) and inputs some field parameters...how do I capture those variables after they execute the query?
    Example:
    -Table ABC has a column called NAME
    -They enter '%BOB% in the NAME field
    -They press F8 (enter-query)
    I've tried using:
    message( get_block_property('ABC', DEFAULT_WHERE)) to see what's in there and it returns a null. I know that if I hit F7 twice, I can see '%BOB%' displayed in the field. Is there a way to see this without hitting F7 twice?
    Thanks.

    -Table ABC has a column called NAME
    -They enter '%BOB% in the NAME field
    -They press F8 (enter-query)
    ? F8 = execute-query
    however. Use the PRE-QUERY and write your message there and show the value of :ABC.NAME
    that's it
    Gerd
    PS: Without hitting two times F7 you have NO chance to get the value of %BOB%. this is an internal cache mechanism of the forms runtime and only hitting two times F7 gives you the information which forms has remembered in a local cache.

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

  • Jsf command button action bean method call from text fox

    Hai Friends,
    I want call the command button action bean method from textbox entry time.
    because i develop login form that time user enter user name and password if he press enter from password component that time i want to use the commandbutton action

    What's the problem exactly? Won't the commandbutton action be invoked when you press [enter] in the textbox?

  • Capturing the User Id from the Password change screen after Login

    Hi,
    I need to capture the User Id from the Password Change screen and Pass it to the Custom  Portal application that is triggered on the change password screen.That User Id will be passed on to the Portal application to retrieve the details of the User.
    I have triggered the Custom Portal application from the OnClick of CHANGE button.
    It can be probably done by appending the User Id captured from the Change Password screen to the Url of the Portal application.
    But am not clear how to capture the User ID.
    Pls help!!
    Thanks & Regards,
    Amarys.

    Hello
    Why do you want to capture user id? You can access it from portal application.

  • Can one Action from Jpf call another method/Action in other jpf   ?

    hi ,
    "can one Action from Jpf call another method/Action in different jpf "
    we can call other jpf's begin from one jpf , but can we call method of other Jpf from different jpf .
    i m getting error when i m trying to do this .
    No module configuration registered for /pageFl
    dule path /pageFlowControllers/Controller)

    hi,
    write
    carmodel(null) in populateCar() action.
    means
    public void onActionpopulateCar(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionpopulateCar(ServerEvent)
         onActioncarmodel(null);
        //@@end
    Regards
    Trilochan

  • Hide Gear Icon (Site Actions) from all Users Except Admin

    SharePoint 2013: I need to hide the gear icon (site actions) from all Users except the admin.  Please let me know the simplest and easiest way to achieve.  I basically have Users that fall into two groups - View and Edit.  For expansion
    purposes though, would like the solution to include and group that may be formed in the future.  Requirement is that only the Admin needs to see the gear icon.  THANKS!

    check the below link
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec876026-12dc-4afa-b2ae-61e98e843b20/how-to-hide-the-whole-site-actions-button-please-read-for-details?forum=sharepointgeneralprevious
    http://sharepoint.stackexchange.com/questions/53728/how-to-hide-only-site-action-using-securitytrimmedcontrol

  • ALV  issue - capturing user changes in editable fields using custom button?

    Hi,
    I created a custom button in ALV tool bar.   And also in my ALV grid I have couple of fields Editable option. User can change values for these 2 fields.
    My question is -
    After changing values for these editable fields(more than 1 record)  , user will click on custom button and then I have to update all the user changed values in to my internal table(lt_tab)  and then I have to process logic.
    Problem is when user click on Custom button in ALV tool bar it is not having the changed values in lt_tab table.
    Only when user clicks  some thing on ALV grid records or fields then it is getting all the changed values in to lt_tab.
    Can any one tell me how I can get changed values when user clicks on custom button?
    1. Can we place custom button in ALV Grid? instead of ALV tool bar? 
    or
    How I can capture user changes when they click on custom button?
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    TABLES
          T_OUTTAB                          = lt_tab
    Please check this logic-
    CASE r_ucomm.
        WHEN '&IC1'.
    - It_tab  having all changed field values
      WHEN 'custom button'.
          lt_tab  - not having any changed values - showing all initial lt_tab values.
    I highly appreciate your answers on this.
    Thanks.
    Rajesh.

    Hi,
    Use this code, its working:-
    *&      Form  ALV_DISPLAY
    *       SUB-ROUTINE ALV_DISPLAY IS USED TO SET THE PARAMETERS
    *       FOR THE FUNCTION MODULE REUSE_ALV_GRID_DISPLAY
    *       AND PASS THE INTERNAL TABLE EXISTING THE RECORDS TO BE
    *       DISPLAYED IN THE GRID FORMAT
    FORM alv_display .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
    *     I_INTERFACE_CHECK                 = ' '
    *     I_BYPASSING_BUFFER                = ' '
    *     I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = v_rep_id       " report id
         i_callback_pf_status_set          = 'PF'           " for PF-STATUS
         i_callback_user_command           = 'USER_COMMAND' " for User-Command
    *     I_CALLBACK_TOP_OF_PAGE            = ' '
    *     I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *     I_CALLBACK_HTML_END_OF_LIST       = ' '
    *     I_STRUCTURE_NAME                  =
    *     I_BACKGROUND_ID                   = ' '
    *     I_GRID_TITLE                      =
    *     I_GRID_SETTINGS                   =
         is_layout                         = wa_layout      " for layout
         it_fieldcat                       = it_field       " field catalog
    *     IT_EXCLUDING                      =
    *     IT_SPECIAL_GROUPS                 =
         it_sort                           = it_sort        " sort info
    *     IT_FILTER                         =
    *     IS_SEL_HIDE                       =
    *     I_DEFAULT                         = 'X'
         i_save                            = 'A'
         is_variant                        = wa_variant     " variant name
    *     IT_EVENTS                         =
    *     IT_EVENT_EXIT                     =
    *     IS_PRINT                          =
    *     IS_REPREP_ID                      =
    *     I_SCREEN_START_COLUMN             = 0
    *     I_SCREEN_START_LINE               = 0
    *     I_SCREEN_END_COLUMN               = 0
    *     I_SCREEN_END_LINE                 = 0
    *     I_HTML_HEIGHT_TOP                 = 0
    *     I_HTML_HEIGHT_END                 = 0
    *     IT_ALV_GRAPHICS                   =
    *     IT_HYPERLINK                      =
    *     IT_ADD_FIELDCAT                   =
    *     IT_EXCEPT_QINFO                   =
    *     IR_SALV_FULLSCREEN_ADAPTER        =
    *   IMPORTING
    *     E_EXIT_CAUSED_BY_CALLER           =
    *     ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_final      " internal table
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  USER_COMMAND
    *       SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
    *       AND EXECUTE THE APPROPIATE CODE
    *      -->LV_OKCODE   used to capture the function code
    *                     of the user-defined push-buttons
    *      -->L_SELFIELD   text
    FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
    * assign the function code to variable v_okcode
      lv_okcode = sy-ucomm.
    * handle the code execution based on the function code encountered
      CASE lv_okcode.
    * when the function code is EXECUTE then process the selected records
        WHEN 'EXECUTE'. "user-defined button
    * to reflect the data changed into internal table
          DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
          IF ref_grid IS INITIAL.
            CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
              IMPORTING
                e_grid = ref_grid.
          ENDIF.
          IF NOT ref_grid IS INITIAL.
            CALL METHOD ref_grid->check_changed_data.
          ENDIF.
    * refresh the ALV Grid output from internal table
          l_selfield-refresh = c_check.
      ENDCASE.
    ENDFORM.
    This will reflect all the changes in the internal table. Now you can include your logic as per your requirement.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

Maybe you are looking for

  • Effects not showing up in LiveType

    Hello - I am trying to apply an effect in LiveType, and while it looks like it's going into the timeline, there is nothing there. It looks as though the effect has been applied to the timeline, as it says the name of the effect, but the effect does n

  • Want to convert plist to text

    I want to convert plist to text because I accidently deleted Sticky widget and want to get the text back (via Time machine) then just create a document with the information. I need something non techinical - I googled it but was not easy to find a si

  • What im i doing wrong?

    look out for odd letters  is where most punctuation should be http://www.loverseed.co.uk

  • Beach ball at mail start up

    Any help? When I start up, I get a beach ball and then 20 seconds.....of beach ball...then a mail crash. Log below: Process: Mail [342] Path: /Applications/Mail.app/Contents/MacOS/Mail Identifier: com.apple.mail Version: 3.3 (924) Build Info: Mail-92

  • CUP 5,3 - More Approvers at one stage (who has the request?)

    Hello If I have a request where I order more Roles, there will be more Approvers that have to approve the request. But how can the Admin see how still need to Approve? I can't find a way to see this? thank you Kristian Madsen