Read action from a different view in the same window

Hi all,
I have a view which contains a ViewContainerUIElement and a ButtonRow. A second view with form fields is embedded in the container of the first view. Validation of the form fields in the second view depends on the button pressed in the first view. How can I determine in the second view, the name of the action that is executed in the initial view?
Thanks and regards,
Patrick

Patrick - I answer this question in a previous forum [Close a popup of another view being on the Main View;
If you used the wizard in order to create the popup the wizard create a button "OK" that I'm guessing you change to "SAVE", you will need to create an EVENT HANDLER under your method list tab in my example my EVENT HANDLER is "SEARCH_RESULT" once the user click the "OK" button it will call SEARH_RESULT event and it will do your code inside the event.
  DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
  DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
  DATA LO_WINDOW         TYPE REF TO IF_WD_WINDOW.
  data LO_VIEW_C         type REF TO if_wd_view_controller.
  lo_view_c = WD_this->wd_get_api( ).
  LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
  LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
  LO_WINDOW         = LO_WINDOW_MANAGER->CREATE_WINDOW(
                     WINDOW_NAME            = 'SEARCH_POPUP_WIN'
  *                  title                  =
  *                  close_in_any_case      = abap_true
                     MESSAGE_DISPLAY_MODE   = IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED
  *                  close_button           = abap_true
                     BUTTON_KIND            = IF_WD_WINDOW=>CO_BUTTONS_OK
                     MESSAGE_TYPE           = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
                     DEFAULT_BUTTON         = IF_WD_WINDOW=>CO_BUTTON_OK
lo_window->subscribe_to_button_event( button = IF_WD_WINDOW=>CO_BUTTON_OK
  action_name = 'SEARCH_RESULT'
  action_view = lo_view_c
  is_default_button = ABAP_true ).
*  lr_popup->open( ).
  LO_WINDOW->OPEN( ).
the subscribe_to_button_event will call the event handler and it will trigger your code inside the event.
Thanks
Jason P-V

Similar Messages

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • HT1473 If I already own a song (from a different album) and the same song is in an album which I want to get, do I still have to pay for the song?

    Other details:
    First album/s- Dookie (Green Day), american idiot (green day)
    and 21st century breakdown (green day)
    Album with same songs in it- international super hits (green day)

    If I already own a song (from a different album) and the same song is in an album which I want to get, do I still have to pay for the song?
    Yes.
    The album which the song has been listed under (on the song's page) is listed in your library under that album. The song is then removed automatically from the first album
    No it's not.
    Purchasing a new song or album will not affect any other song or album in your library.
    In the case of the two albums you mention, if you purchase them both, you will have the same song (different copies) in both albums.

  • How to apply different styels to different variable in the same window

    Dear experts
    can any one tell me how to print to different variable with different smartstyle in the same window in Smartforms
    thanks in advance

    Not possible to switch dynamically a smartstyle inside a text. A workaround is to use a SAPscript style (SE72) and switch to it with the following control command inside the text. To come back to the original smartstyle within the same text (if you need it) I think you may use style name *.
    /: STYLE <stylename>
    (please search SDN if you need more information)

  • Different view of the same query between users

    Hi at all,
    I strongly hope you can help me.
    The problem that i have is that:
    I have a different view of a query inserted in a workbook respect the view of the same query that have other users.
    In particular I watch in my query 4 fixed characteristic of the query ( Cost center, order type , controlling area, fiscal variant ), below the free characteristic block  and before data table.
    Instead other user watch only 3 fixed characteristics ( Cost center, order type , controlling area ).
    This is a problem because in the workbook there is a macro that reads the data from a fixed raw. So that this macro doesn't' t work in my workbook.
    I would specify that the workbooks is called from rules and not from fevorites.
    Thank you very much for your attention!
    Bye
    Fabio

    Hi Erwan,
    i have the SAPGUI version 3500.8.044 and the item you describes :
    Bex menu ( Business explorer -> Change Query -> Change variable values )
    let me to change the values of input variables.
    The new layout query, after the input of the new values, has the same rows of the fixed query value ( fyscal variant too).
    Thank you for your answer..
    bye
    Fabio

  • Opening a view from another view of the same window in diff Browser.

    Hi Experts,
    My requirement is to open a view (say view 2) from another view (say view 1) with click of a button in a different browser, both the views are embedded into the same window, and also i have to pass some data from view1 to view2, based no the input data, i am displaying some information. Also both views belog to the same component.
    Some pointers on this would be of great help.
    Regards,
    Ashish.

    You would need to open another window.
    See if_wd_window and if_wd_window_manager.
    Call the GET_API to get a handle to window manager.
    The new window can show V2.
    The original Window with 2 views,
    must fire plug to navigate v2 to empty view to hide it from Window1.
    The to Views talk to one another via WDC Controller.
    View 2 calls WDC controller methods.  The WDC controller the fires Event.
    View 1 can listen to this event with a method of type event handler.
    View 1 can for example react to button on View 2 and close WINDOW 2.
    Good luck
    Phil.

  • Linking Menu Bar with views in the same window

    Hi everyone,
    I have a menu bar in a view and I would like to link each one of the elements with other view through an URL. The problem when I do this is that the view appears in a different window and I want that appears in the same window. Because if it doesn't, I'm going to have one window for each element of the menu bar :s
    Thanks in advance!

    Hi,
    As per my understanding, your requriement is: (Correct me if i am wrong).
    You have one default View and Window. In the View you are displaying the menu bar. Each menu bar item contails one specific URL. When user clicks on any of the menu bar item you need to open the corresponding URL in the same View.
    1)  Take the view set with two rows. In first row add the default MenuView (menu bar) and in second row embed another View (For example: ResultView).
    2). In RestultView create IFrame UI element (Note : it is deprecated). And bind one cotext attribute to url.
    Map this context attribute to MenuView also throug the Component Controller.
    3). Create inbound plug to MenuView and outbound plug to ResultView. On click on any of the menubar items change the URL in the context attribute and then navigate to the ResultView through plugs.
    Regards,
    Charan

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Can I view another page from a different application in the same workspace?

    I'm a newbie and I've searched through the threads and can not find exactly what I'm looking for.
    I do not wish to copy a page from a different APP. What I want to do is create an application where on tab is actually a tab from a different App.
    Like this, I have SCHEDULED_TASKS application that has a calander that is updated weekly. I have another appliction that is used for our Database Testers to track testing on the database.
    I have a Tab in CAS_TESTING named TESTING_SCHEDULE. It is this tab that I want to have referance the SCHEDULED_TASKS Calender so testers can view the schedule for service packs.
    Is there a way that I can do this?
    Thanks,
    Mike Long
    Message was edited by:
    mikedlong

    Mike,
    In terms of the UI and tabs, you can use parent tabs (use a two-level tab page template). Or you could just put links in on app's pages that go to the other app using Lists, for example. In any of these links from one app to the other, you must include the session ID (&APP_SESSION.).
    If the application's are both public (no authentication required), you're done.
    If the apps require authentication, edit each app's authentication scheme and put some name in for cookie name (anything you like), using the same name in both apps. Depending on the authentication method, you then have to figure out who owns the login page, etc.
    That should do it.
    Scott

  • HT2534 How can i download from two different store with the same account?

    I live in both countries but my credit card is registered in a french bank, therefore it is not recognised by the Aussie store on itunes. There are apps or music i want to get form the Aussie store as well as music and other apps from the french one...
    Is it possible to have two stores under the same account????? I wish apple could fix this, which could result in more spending as you can buy from different store!

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • Navto a different view in the same page

    Is it possible to use the navto command to jump to a different view in a page or poiting to a position in a scrollable frame?

    Yes, use decimals in your navto page number. For example, navto://myarticle#2.3 jumps to a place between page 3 and 4 in a smooth scrolling article.
    For examples, see DPS Tips > Advanced Overlays > Scrollable Frame Links.

  • How to Get Choices as a Dropdown from a different Column for the same Item In a Document Library?

    Hello All,
    I was trying to see if there is any way that we can get the choices for a Field from another filed in the same item in a Document Library.
    To be specific.
    I have Created a Project Document Set, Which has a Column called "Project Members" where all the members will be listed. This will be inherited to all the documents in that Project Document Set. This is used to grant Permission using Workflow.
    I also have "Document Members" Column(This is only for Documents) who will be given Edit permissions to that Document using a Workflow. This can be any type of column(choice, People or Group etc) As long as I can select multiple values.
    I am looking for a way to get the "Project Members"(Values or Users) as choices for "Document Members". I know this is possible in the List as you can customize in the InfoPath Form. But not sure in the Document Library.
    Document Members can only be the members from the Project Members, In order to grant granular Permissions for the project And Documents using a Workflow
    Document Library
    Project Document Set Name
    File Name
    Project Members
    Document Members
    Project A
    User1;User2;User3
    Doc1
    User1;User2;User4
    User1;
    Doc2
    User1;User2;User5
    User1;User2;
    Doc3
    User1;User2;User6
    User1;User2;User3;
    Project B
    User5;User6;User7;
    Doc1
    User5;User6;User7;
    User7;User5
    Doc2
    User5;User6;User7;
    User7;User5
    Doc3
    User5;User6;User7;
    User5;User6;User7;
    Thanks for your time.

    >
    Jenny Karunakaran wrote:
    > Hi Jung,
    >
    > Thanks for the reply. But I dont know how to assign value set to this attribute(i.e. Context atribute to which filter value property is bound). Can I use a supply function for this ?
    >
    >
    > Regards,
    > Jenny
    No. A value set and a supply function are two completely different things. You use this Context API to populate the value set for an attribute:
    IF_WD_CONTEXT_NODE_INFO=>SET_ATTRIBUTE_VALUE_SET
    Value Sets are also how ByKey UI elements (like the DropDownByKey) are built.  Here is a help document that discusses value sets - but in the context of the ByKey UI elements.  The process is the same for creating the value set however:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • How to get a Previously purchased app  from the App Store from a different account on the same computer?

    Recently had to replace my hard drive and some info has gone missing.  An App from the App Store for one.  How can I get it back now that I have a new account?  It wont let me sign on with the old one anymore.

    There's no need to create a new Apple ID just because the hard drive was replaced.
    Apps can only be re downloaded using the same Apple ID they were purchased with originally.
    You will have to re purchase the app using the new Apple ID.

  • Can iTunes from 2 different computer use the same library?  (from wireless data storage device)

    I purchased a wireless data storage device.  My iTunes content will be moved there and I'm planning on moving my wife's iTunes data to the wireless device.  Can both our iTunes share the same library?

    One Apple ID can be shared for store purchases. On the iPhone go to Settings>Store and put in the ID. Then all the songs purchased with that ID can be downloaded from the iTunes store on the phone.
    I hope that is what you were asking?

  • How do I enable opening firefox from two different computers sharing the same home directory without having to delete a lock file (linux).

    I just don't want to have to delete a lock file - which has a purpose - in order to use firefox simultaneously from two locations on the network - where the home directory, i.e. .mozilla directory - is located

    You need to use two separate profiles if you want to have two Firefox instances open at the same time.
    See also http://www.mozilla.org/unix/remote.html

Maybe you are looking for