Exit from an embedded component

Hi,
I have 2 components, C1 and C2. C1 has got 2 views of its own, after which C2 is called. So, in the navigational diagram of C1's window, C2's interface view is embedded and its inbound interface view plug is fired on an action in C1's view. All works fine.
But I want to go back to C1 from C2, on a 'back' action in C2. I tried creating an outbound plug in C2's interface view, creating a navigational link between C2 and C1 in the window diagram where its being called from, and then firing this outbound plug in C2's action.
But it gives an error saying 'Cannot exit embedded component'. Why is that?
Any clues?
Your help is much appreciated.
Many Thanks,
LM

Hi ,
    The instance of the inner component is handled by the embedder component ...so how an inner comp can exit itself....create a event in the interface component controller of inner comp ...and in the embeder comp ...create a event handler which handles the event of the inner comp...in that ....u can delete the innner comp....using wdThis.wdComponentcontusagename.deleteComponent() . it delete the comp and replace the view with empty view in the event handler u can call any other view ....
see the example ....
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a
Regards,
Yashpal

Similar Messages

  • Firing Exit plug from the embedded component

    Hello All,
    I am working on a scenario where I am developing a Webdynpro component which is child to the MainComponent.
    MainComponent view has links to access my child component as I have exposed my child component as Public part.
    Once my application is access by MainComponent, I can only go back to MainComponent.
    Now I need to fire an exit plug with URL (say sdn.sap.com) from my child component which will open new URL in same browser.
    When I defined exit plug and passed on Url parameter to it, my component throughs exception saying "Cannot fire exit plug from embedded component".
    Is there anyway I can achieve this?
    Please guide me.
    Ashutosh

    Ashutosh,
    <i>I can not use WDClientUser.forceLogoffClientUser(url) as I need user to be logged in.</i>
    Actually, no. It is optional -- you may be either logged-in or not, in later case WD runs under some internal Guest account. So forceLogoffClientUser works in either case.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Exit from ABAP FPM application to anothor WD application (W/O FPM)

    Hi Experts,
    I am working on a custom ABAP FPM application using roadmap pattern. I have anothor WD application w/o FPM application which calls my second FPM application. I do the navigation from my first application to FPM application using an exit plug in the window of first app. This navigation works fine. Now FPM component has following steps.These views are embed from a WD component ZFPM.
    EDIT  View - WD Comp ZFPM
    REVIEW View - WD Comp ZFPM
    CONFIRMATION View - WD Comp ZFPM
    I want a button on the EDIT screen and confirmation screen which will lead me to first application (ZCOMP1). For this I created an exit plug in the EDIT window and Confirmation window. But when I debug the application i find that even though control goes to respective exit plugs navigation does not happen. I think thats because of FPM. Can anybody please suggest the posible approach for it or is it just that this navigation is not possible?
    Thanks in Advance
    Umnag
    Edited by: Umang Mathur on May 31, 2011 1:36 AM

    Hi Baskaran,
    Thanks for a reply. I have done following things. I added a toolbar button in EDIT step and  I have given  its FPM ID "EMP_PRF_BACK".
    Then on the process event method I have coded as following.
    if io_event->mv_event_id = 'BACK_EMP_PRF'.
    DATA: lv_launch TYPE FPM_S_LAUNCH_URL.
    DATA: lo_navigate_to TYPE REF TO if_fpm_navigate_to.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_navigate_to = lo_fpm->get_navigate_to( ).
    lv_launch-HEADER_TEXT = ''.
    lv_launch-URL = 'http://www.google.com/'.
    *USE_SUSPEND_RESUME = ''.
    *PARAMETER
    lo_navigate_to->LAUNCH_URL( is_url_fields = lv_launch ).
    endif.
    for the test purpose I am trying to open google. It open the link but It opens in a separate window. I want it to open in the same window. Please suggest how to do it.
    Thanks in advance
    Umang

  • Add an Embedded Component to a Existing Screen?

    Is it possible to Add an Embedded Component to a Existing Screen?

    Hi,
    This is what I've done and it's working fine for me.
    In EC, define a InPort and bind the ParameterName to your DataModel:
    In my case, I use "accountorgoifeco.OIF.xuicomponent" to add into another tab my EC. Open it, and in the Extensibility Explorer, choose an available anchor and click in "Add view with Embedded Component".
    Insert a name and choose your EC:
    Then click on Bind button...
    Select a Public outport  from the ByD screen and your previously defined Inport on your EC. Choose the parameter to bind and click Bind.
    Save and Activate the ByD screen.
    As you can see in the next screen, the parameter AccountID is passed to the EC.
    I hope you find it useful.

  • Embedded Component Button Disabled

    Hi everyone,
    I created an Embedded Component with a button to be added on a standard TI so I also created the EventHandler for the onClick properties of the button that will perform the action of a custom object, but upon loading the page, the button is disabled. What do you think is missing from my configurations? Below is the screenshot of my event handler.
    Thanks in advance.
    Regards,
    Rajiv

    Hi Rajiv,
    the instance binding is missing for sure!
    An action can only be executed on a selected instance of your custom business object. What you need to do:
    - Create an "Inport" in your embedded component.
    -  Set AutoFire and AutoExecute in the properties of this Inport (right-hand-side) to TRUE
    - Select an EventHandler that is executed onFire
    - Bind your UI component with the "BOOperation" Read to an instance of your custom BO (if there is none you might wanna create one either via ABSL or via an Operation dynamically)
    - Bind typical the "Outport" which sends the ID from the standard TI to the "Inport" of your embedded component (normally I use this for the dynamic instance creation via BOOperation create)
    When your UI component is bound to your custom BO the Button will be click-able and the action will be executed. I am sorry that I currently cannot help with screenshots but I am sure something similar is already explained somewhere in SCN...
    Cheers,
    Jens

  • Error when exiting from ANY JavaFX app. (any workaround?)

    I've had an ongoing problem when working with JavaFX, and even using applications created with it like SceneBuilder and FXExperience tools. As I reported in this bug: http://javafx-jira.kenai.com/browse/RT-27458 , any time I exit from any application that uses JavaFX, I get an error. My bug turned out to be a duplicate, and looking at the other report, it seems to be a result of the combination of the ATI-Radeon graphics card, Ubuntu, and JavaFX. It doesn't seem to matter whether the app is solely JavaFX, or embedded in Swing, whether it is installed as a native bundle or run directly from class files, or an executable jar. If it uses JavaFX and I run it, when I close it I get this error. It also doesn't matter whether I use jdk7 or an early-access build of jdk8.
    This is becoming increasingly irritating as I further explore the technology and begin trying to work with it, going beyond simply following tutorials and whatnot, because it means I frequently run my programs to see if they actually work, and am much more frequently using tools like SceneBuilder. It doesn't seem to matter whether I run things from the command line, start them from an IDE, or in the case of installed applications, run them through Ubuntu's Launcher or Dash, when I exit I get an error message and an error log shows up somewhere. Especially when testing an application I'm working on, these logs quickly clutter up my directories and become an annoyance.
    Does anyone have any suggestions or workarounds which might help avoid some of the annoyances from the problem? I have the ability to dual-boot Windows 7, and as the problem becomes increasingly annoying, have given some thought to doing my development there. However, I'm really not very comfortable in Windows, and it would involve making some pretty big changes to my workflow, so this isn't my favorite option.
    I imagine that using another distro like Linux Mint would probably continue to have the same issues, since I think it would be using the same drivers for the graphics.
    Changing computers is not currently an option for me. I'd love a Mac to develop on, but that's just not possible currently.
    If anyone has any ideas, suggestions, workaround or tips I would greatly appreciate them. Thanks in advance for your help.

    Okay. Do you have any third-party iTunes plug-ins/add-ons installed?
    (They can sometimes produce similar symptoms if they were written for an earlier version of iTunes, and they aren't liking a new version ... last time I can think of a major outbreak of add-on-related crashes-when-quitting was with the transition from iTunes versions 6.0.x to 7.0.x, though.)
    If so, the following document might be of some assistance:
    Troubleshooting issues with 3rd-party iTunes add-ons

  • Creating a button that leads back into the main Pages/States from a custom component

    Hello Y'all! isnt F.C. awesome!
    BUT... just cant get a button that leads from a custom component ive made back into the main bulk of pages and states ive created to work.
    it runs a bit like this:
    Main title page...
                            Photography...
                                                 Nature (on which theres a Custom Component which when clicked leads to...)
                                                            20 different custom component states each with different pics, linked via buttons
    from each of which id love a button that led back to Photography, exiting the custom component
    ive tried the basics:      Add interaction.. when clicked.. play transition to.. state: Photography
    but to no avail
    any ideas? im at a loss!
    thanks in advance,
    Tom

    Cross component communications are an issue in Flash Catalyst 1.0. Thankfully, in Flash Catalyst 5.5 the team addressed some of those issues.
    The only idea I have for remove the 'return' button from within the component, then it should be able to get you back to the home state.
    Or, you might be able to wait a few weeks for the new version of Flash Catalyst to ship (or you can play with the older preview release on labs.adobe.com)
    Chris

  • Exit from Pop up windiw

    Hi Experts,
    I have created a Webdynpro component and on One action One popup window is opening and on the Popup window there is a button Once its pressed it should ask for 'You wants to save the data ' if press on Yes it should save the data and it shold exit from Pop up window and press No it should remain in the Pop up window.
    Here the pop up window is generating for me and Once If i press Yes its saving the data but please tell how can i Exit from popup window.
    Thanks in advance.

    Hi Anil,
    Please go through this link...
    Closing a window on click of a button
    Re: Closing a Pop Up Window on click of a button
    Cheers,
    Kris.

  • How to map nodes to an embedded Component during runtime?

    Hi,
    I embed a Component (<i>BasisComponent</i>) in a new created Component (<i>MyComponent</i>) to use some funcionality from it. Therefor, I have to map some ValueNodes from <i>MyComponent</i> to <i>BasisComponent</i> during designtime to transfer the data. I thought, I could use External-Context-Mapping for that. That means I've created a ValueNode in <i>BasisComponent</i>'s InterfaceController and declared it for ExternalContextMapping (let's call it <i>ExtNode</i>.
    Because I want to use this basis functionality from different embedding Components (<i>MyComponent1, MyComponent2</i>, etc.), I can't declare the structure of <i>BasisComponents ExtNode</i> yet, it's just an empty ValueNode.
    Now, I want to map from my using Components their different ValueNodes to <i>BasisComponents ExtNode</i>.
    How to do that? Or is there another possibility to put different value-nodes from different components to the same Node in my <i>BasisComponent</i>? Can this be done during designtime? I believe it can be definitively done during runtime....
    kr, achim

    Achim,
    Let me use your example and explain what in fact will work when you are creating attributes/nodes only at design time.
    Let us define context in BasicComponent as:
    - MyRoot (0..n, selection 0..1, singleton)
    |-MyInt (int)
    |-MyString (string)
    Say, ComponentA has the following context structure:
    - rootNode (0..n, selection 0..1, singleton)
    |-attA (int)
    |-attB (string)
    |-attX (string)
    --attC
    Then you can easly map rootNode of ComponentA to MyRoot of BasicComponent, attA -> MyInt, attB -> MyString, attX left is not used for mapping.
    =============
    Same is true for ComponentB with
    - RootOfBNode (0..n, selection 0..1, singleton)
    |-attIgnored (date)
    |-attA_INT (int)
    |-attB_STR (string)
    |-attY (string)
    --attZ
    ComponentB.RootOfBNode -> CU of BasicComponent.MyRoot, attA_INT -> MyInt, attB_STR -> MyString, attY and attIgnored are not used for mapping.
    =============
    However, if context of ComponentA is defined as
    - rootNode (<b>0..1</b>, selection 0..1, singleton)
    |-attA (int)
    |-attB (string)
    |-attX (string)
    --attC
    ...then you are out of luck -- wrong cardinality of node.
    Moreover, this case also fails
    - rootNode (0..n, selection 0..1, singleton)
    |-attA (string)
    |-attB (string)
    |-attX (string)
    --attC
    Here all attributes are strings so mappings will be incomplete. To fix this you need at least fake attribute in rootNode.
    And mostly important fact: if you can't map nodes in designer due to mismatch context structures the any dynamic (at run-time) mapping will fail as well in majority of cases.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Call an applications 'user exit' from a PL/SQL procedure

    My question is a technical PL/SQL question related to Oracle Applications. I need to call a standard applications 'user exit' from a stored PL/SQL procedure. Can anyone tell me if this is possible and how to do it?
    (i.e. I am attempting to call the AR user exit SALESTAX)
    Thanks,
    Michelle Dodge

    Hi,
    Read this thread, perhaps is there your response :
    Host...
    Nicolas.

  • How to email text from a text component in my applet on a the host server ?

    How to email text from a text component in my applet on a the host server, back to my email address ?
    Assuming I have Email Form on the host server.
    Help will be appreciated.

    You can do like below
    =REPLACE(Fields!Column.Value," " & Parameters!ParameterName.value & " ","<b>" & Parameters!ParameterName.value & "</b>")
    The select the expression and  right click and choose placeholder properties
    Inside that set Markup type as HTML 
    then it will highlight the passed parameter value in bold within the full xml string
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can I exit from full-screen View?

    On the View menu, I clicked "Full screen View", but then I couldn't find any way back to normal view. I had to Force-Quit Firefox to escape.
    How do you exit from Full Screen View?
    (I tried Esc, Ctrl-C, and many other key combinations)
    Thanks, PeterR

    Try F11.

  • Exiting from ABAP Web Dynpro application

    Hi,
    In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
    I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
    Please guide me with this
    Thanks!
    Piyush

    Piyush,
    I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
    Thanks
    Bala Duvvuri

  • Acrobat 9.2 crash after exit from Acrobat

    I have a plugin for Acrobat 8.0 and re-compiled for Acrobat 9.0 using the 9.0 SDK.  It works fine except when I exit from Acrobat, Acrobat always crash in any of the Acrobat Pro 9.x versions. The crash log always show the same place.  It does not matter if I disable or enable the update. Always the same place to crash. Does anyone have any ideas?
    Process:         AdobeAcrobat [29144]
    Path:            /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/AdobeAcrobat
    Identifier:      com.adobe.Acrobat.Pro
    Version:         9.2.0 (9.2.0)
    Code Type:       X86 (Native)
    Parent Process:  launchd [119]
    Interval Since Last Report:          668 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  24 sec
    Per-App Crashes Since Last Report:   1
    Date/Time:       2009-10-14 15:10:00.939 -0400
    OS Version:      Mac OS X 10.5.8 (9L30)
    Report Version:  6
    Anonymous UUID:  F9997425-181F-4A46-8222-B1BAA9558760
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000015fffcc1
    Crashed Thread:  18
    Thread 0:
    0   dyld                              0x8fe1764c ImageLoaderMachO::doBindLazySymbol(unsigned long*, ImageLoader::LinkContext const&) + 300
    1   dyld                              0x8fe06ed5 dyld::bindLazySymbol(mach_header const*, unsigned long*) + 149
    2   dyld                              0x8fe18c2f stub_binding_helper_interface2 + 21
    3   ...adobe.acrobat.amtlibwrapper    0x188c42e2 0x1883b000 + 561890
    4   ...adobe.acrobat.amtlibwrapper    0x188c4343 0x1883b000 + 561987
    5   ...adobe.acrobat.amtlibwrapper    0x18851355 AVAMTForegroundUpdateCheckEnabled + 84063
    6   ...adobe.acrobat.amtlibwrapper    0x18843989 AVAMTForegroundUpdateCheckEnabled + 28307
    7   ...adobe.acrobat.amtlibwrapper    0x1883cc26 AVAMTForegroundUpdateCheckEnabled + 304
    8   com.adobe.Acrobat.framework       0x803d4a07 AcroSecurityBailOutImpl + 2997119
    9   com.adobe.Acrobat.framework       0x803d4a79 AcroSecurityBailOutImpl + 2997233
    10  com.adobe.Acrobat.framework       0x800ffc97 AcroSecurityBailOutImpl + 28175
    11  com.adobe.Acrobat.framework       0x8038cb91 AcroSecurityBailOutImpl + 2702601
    12  com.adobe.Acrobat.framework       0x8007ff72 AcroBundleThreadQuitProc + 3096
    13  com.adobe.Acrobat.framework       0x7fe43320 RunAcrobat + 326
    14  com.adobe.Acrobat.Pro             0x00002e8b start + 2371
    15  com.adobe.Acrobat.Pro             0x0000264a start + 258
    16  com.adobe.Acrobat.Pro             0x00002571 start + 41

    iPhoto is missing bits of itself. You need to reinstall it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • Redirecting control to portal page after exiting from SAP R/3 transaction

    Hai,
    In my portal Top Level Navigtion, I have two Option, "HOME", "HR FUNCTION".
    When a user login to portal by default the first node "Home" is opened and its content is opened in detailed navigation. Then the first content from detailed navigation which is  URL iview is opened on the content area.
    When a user opens the second node "HR Function", in the detailed navigation, SAP transcaction IViews are shown. When a SAP transaction IView is clicked, its content are opened in content area. After the user finished working with that transaction, he/she is exiting from the transaction by clicking the "Exit" button. This action, makes the content area to show as blank screen.
    Is it possible to show the URL ivew from the "Home" menu when ever the control is coming out of SAP transaction IView.  In otherwords in need to fill the blank screen with  URL Iview. I don't know from where and how to call this URL IVIEW.
    Please let me know how to do this.
    Thanks & Regards,
    H.K.Hayath Baha.

    Hai Anant,
    Thanks for the suggestion. Can you tell me where I have to give the code.
    Regards,
    H.K.Hayath Basha.

Maybe you are looking for

  • Saving Safe Mode changes.

    Hello. I recently putchased a Samsung hdtv, and changed the screen resolution from 1920x1020 to 1024 x 758 within OSX once I did this the Mac would no longer display anything on the monitor. I rebooted to safe mode at 1920x1080 resolution with no pro

  • No startup disk on boot

    Okay, this will be a long story and I hope some people would have the patience of reading everything. I just want to tell everything that may have contributed to my problem. My main problem is, when I start my iMac, it does not find any startup disk

  • Soap- XI- RFC Synchronous question

    This should be simple but for some reason something isn't clicking with me.  I've got a synchronous scenario.  I need to set up a message interface that will be exposed as a web service.  The sender will send the soap message to this message interfac

  • Dates question

    Hi, I was hoping someone could help me on this one. I need a query or function that takes a date and returns a date which is the last time the 16th of the month occurred. For example Input: Dec 10, 2006. Output will be November 16, 2006 Input: March

  • Deleting duplicate from list

    What is the easy and fastest way to delete duplicate from list. My dynamic list is pretty small. Need to loop through and delete duplicate and give unique item list. We don't have a CF function yet?.