Replacing an embedded component by another one

Hi!
I have created a WD component interface (let's name it INTERFACE) and I am using this in a main component (let's call it MAIN). Then I have two interface Implementations (many will follow), let's name them IMPL_1 and IMPL_2.
In the MAIN-component I have an ViewcontainerUIElement, that is connected with the Usage of the interface. When the user clicks a button, a specific implementation - e.g. IMPL_1 should be embedded there. this works by calling CREATE_COMPONENT( 'IMPL_1' ).
If the user clicks another button, another implementation of the interface should be shown there - so I remove the existing component via DELETE_COMPONENT and create the new one with CREATE_COMPONENT( 'IMPL_2' ).
That does not throw any error, but the embedded view disappears and will never come back again.
So my question is: what is the easiest way to replace an embedded component IMPL_1 with another one IMPL_2 - both implementing the same interface! This should be fairly simple, as I'm referencing just the interface in the MAIN-Component.
Any hints? I'm just finding very difficult solutions with PREPARE_DYNAMIC_NAVIGATION and so on - but I don't want to recreat all Plug-Connections again as they have been connected in the designer using the interface-definition....
Thanks in advance!
TopperDEL

Hi Robert,
that sounds like a solution to my problem, yes. Unfortunately I'm not at that system until thuesday. But I will try this and post back what happened.
But thanks so far for that hint! I think that'll work!
Sincerely,
TopperDEL

Similar Messages

  • How to replace an audio clip by another one in a Aperture slideshow?

    Hello,
    Is it possible to replace an audio clip by another one in a slideshow in Aperture? This clip is between two other audio clips.
    Thank you

    Is it a secondary audio clip?
    Then just select and press the delete key ⌫.
    And drag a different audio clip from the Audio Browser there. The trim the clip by adjusting the start and beginning.

  • Replace an iView dynamically by another one by portal navigation service

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
    Thanks.
    Cemal

    See for the solution the following post.
    Replace an iView dynamically by another one by portal navigating service
    Cemal

  • Replace an iView dynamically by another one by portal navigating service

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
    Thanks.
    Cemal

    Hi Laurent,
    this is no possible with WebDynpro except the IFRAME - UI - Element of the webdynpro. But the iframe ui-element is declared as deprecated for future releases.
    The solution is a portal component with an embedded html-iframe. The src - attribute of this iframe can be filled dynamically by the portal eventing.
    You create a dynpage as a event receiver. This fills the src-attribute of the html-iframe by the event param dataObject.
    The code below can help you:
    Create output. Called once per request.
              public void doProcessBeforeOutput() throws PageException {
                   Form myForm = this.getForm(); // get the form from DynPage
                   IPortalComponentRequest request = (IPortalComponentRequest)this.getPageContext().getRequest();
                   String Output =
                        "<iframe id='LauncheriFrame' src='' width='100%' height='100%' margin='0' padding='0' frameBorder='0'></iframe>"
                             + "<script>"
                             + "function <eventhandler>(eventObj){"
                             +"document.getElementById('LauncheriFrame').src = eventObj.dataObject;"
                             + "}"
                             + "EPCM.subscribeEvent('<namespace>', '<Eventname>', <eventhandler>);</script>";
                   this.getPageContext().write(Output);
    I hope that helps you.
    Cemal

  • How can we call methods of one web dynpro component in another one

    Hello Team,
    How do I call  one Web Dynpro component methods in another Web Dynpro component.
    How do we use public parts.
    thanks

    Hi,
    You want to use Comp2's getData() method in Comp1
    If both the WebDynpro components are in the same DC:
    1. Create a wrapper method (with the same signature) in the Comp2's Interface controller. And invoke the Component contorller's getData() method in this method using the below code.
    wdThis.wdGetComp2Controller.getData()
    2. Now Go to the Comp1 and right click on UsedWebDynproComps and add this Comp2 as a UsedWebDypro component.
    3. Now go to the Component Controller of Comp1 and in properties tab add the usage declaration of Interface controller of Comp2.
    4. Now using this below code you can access the method of InterfaceController of Comp2.
    wdThis.wdGetComp2Interface().getData();
    If both the WebDynpro components are in different DCs:
    1. Right click on Comp2 and select Add to public part on Comp2 in DC2.
    2. Now Add this public part in DC1 UsedDCs.
    Now repeat the above stpes 1...to..4. of  "If both the WebDynpro components are in the same DC" same.
    Regards,
    Charan

  • Is it possible to replace the wifi card with another one?

    Hi
    I have a t400 with intel 5100 wifi card and now I want to install mac os on my laptop.
    problem is that mac os does not detect the 5100 series of wifi card and I want to know whether it is possible to replace the current 5100 model with a older series?
    Is there any certified service center in Uppsala/ Sweden to do that?
    Thanks,
    Solved!
    Go to Solution.

    Lenovo restricts the wireless cards to Lenovo branded units certified to work with the machine. This is done through a whitelist in the system BIOS. I recently disassembled the latest (version 3.14-1.06) T500/W500 BIOS and found the following whitelist table. This is raw big endian hex appended with what I found by searching the device ID's. Redundant entries are for varying vendor IDs.
    86803B428680111000 Intel Corporation PRO/Wireless 5350 AGN [Echo Peak] Network Connection
    86803D428680111200 Intel Corporation WiMAX/WiFi Link 5150
    868036428680111000 Intel Corporation Ultimate N WiFi Link 5300
    868037428680111200 Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
    868037428680161200 Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
    8C161C008C16350000 Atheros AR5007EG
    EC107281EC1020E000 Realtek RTL8191SEvB (Yuck, Realtek! I'd hate to have one of these...)
    86803D428680161200 8086:423D Intel Corporation WiMAX/WiFi Link 5150
    8680840086801513 Intel Corporation Centrino Wireless-N 1000
    Your T400 is from the same lineup and probably has the same list. Remember, you'll need to purchase a Lenovo branded unit.
    Also look for a PM with additional information.

  • How to replace a current driver with another one

    Hi,
    currently there are two different audio drivers on my solaris 10,
    pkginfo | grep 810
    system SUNWad810 SUNW W1100z & W2100z Audio Drivers
    system TOOLSi810 Audio Driver for Intel ICH audio controller
    prtconf -D gives
    pci1043,1713 (driver name: audio810)
    So i guess SUNWad810 is currently used for driving the audio device. If i want to change the driver to TOOLSi810 , how can i do that?
    thanks !

    In another thread we've already found out that the pci vendor/
    device id for the sound hardware in your system is "pci8086,24c5".
    To configure the system to use my audio driver (audioi810) instead
    of Sun's (audio810) remove the "pci8086,24c5" -> "audio810" driver
    mapping and install a mapping "pci8086,24c5" -> "audioi810":
    update_drv -d -i '"pci8086,24c5"' audio810
    update_drv -a -i '"pci8086,24c5"' audioi810
    (Note that there are double quotes around the pci8086,24c5
    string, and the "pci8086,24c5" string is enclosed in single quotes
    to protect the double quotes).
    Unfortunately you have to reboot to activate the new driver. This
    is due to a Solaris kernel bug, the kernel does not properly clean
    out all references to the old driver from kernel memory after the
    "update_drv -d" command, so that the next "update_drv -a" will
    tell you that the new driver "failed to attach". But after a reboot
    the audioi810 driver is supposed "to attach" just fine.

  • Exception calling a WD Component from another one

    Hi all,
    I have an application that searches some KM files and displays their names in a WD Table.
    I used an example from SDN to download the content of this table into an Excel file... I copied the Excel component from this project and pasted it into my own project, so I can reuse it instead of writting all over again
    When I click on the "Excel File" button the first WD Component calls the Excel Component but I'm getting this exception:
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.polar.excel.WDC_ExcelExport</b>
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:776)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:926)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:176)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createInstanceIfDemanded(ComponentUsage.java:728)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUsage.java:346)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceController(ComponentUsage.java:335)
         at com.polar.listactualizacion.wdp.InternalWDV_ResultListActualizacion.wdGetExcelExportInterface(InternalWDV_ResultListActualizacion.java:228)
         at com.polar.listactualizacion.WDV_ResultListActualizacion.onActionact_btnExcel(WDV_ResultListActualizacion.java:425)
         at com.polar.listactualizacion.wdp.InternalWDV_ResultListActualizacion.wdInvokeEventHandler(InternalWDV_ResultListActualizacion.java:187)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any ideas about this??
    Thank you...
    Felipe

    Felipe,
    Check name of component used in Component Usage or in code: com.polar.excel.WDC_ExcelExport.
    Seems that you mistyped the name.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How can replaced the music libary by another one?

    please can you tell me how can I delete songs or replaced the music libary

    Highlight the songs and hit the delete key on your keyboard.

  • How to replace a broken component

    Hello,
    Can anybody help me with this issue? For a returned product which needs repairing in Service, we need to be able to replace the broken component with another one, or to be able to add a new component to the product.
    How is this handled in Service? What about Spares Management?
    Do you have any useful documentation?
    Thanks,
    Silviana

    Thank you for your prompt feed-back!
    I have already done the flow you described above. I'm afraid I was not very clear when I exposed our problem.
    We have a serialized finished good, a computer, for instance, which contains 5 serialized components. Using Depot Repair, a RMA was generated and we received the finished good back from the customer. We also were able to issue additional parts using Spares Management. But…the technician notices that a defective component of this finished good (the mother board for instance) must be replaced. The broken mother board has a warranty from the supplier, so the technician needs to receive it in the defective subinventory and then to send it back to the supplier. The technician will replace this component with a usable one. We need to be able to have a RMA for the serialized mother board, not only for the finished good. How can we track this business process using Depot Repair and Spares Management? I did not find any information about replacing a component of the finished good in the Spares Management and Depot Repairs user guides.
    I must mention that in this moment we have Depot Repair configured using Tasks, but in case that this flow works only with WIP, we will configure it as required.
    We also succeeded in replacing a component of a configuration (ATO Item), using OM and tracking this replacement in Install Base. But I read in the documentation that replacing a component using OM does not work for a finished good which is not a configuration. And anyway, it remains our biggest problem: the broken component is not received back in the defective subinventory, it remains at the customer.
    Please help us with this business process.
    Thanks again,
    Silviana

  • I had to replace my i4s with another one from the apple store.shouldn't i be able to go to the cloud to get all my contact info and other stuff that was stored in the cloud from the first phone?

    i had to replace my i4s phone with another one from the apple store. i need to download all my contact info and other stuff from the cloud to my new phone.i see a screen that says  RESTORE I PHONE   and are you sure you want to restore the iphone to its facory settings?  all of your media and other data will be erased. they i tunes will verify restore with apple. After this you will have the option to restore your contacts and other settins.  The question is will it restore my first phones info?  I am hesitant to delete anything  lol.

    No. If you made your backup to iCloud, iTunes will not restore from an iCloud backup. See:
    iOS: Backing Up and Restoring Data to a New Device

  • Calling Inbound Plug of one Window of one Component in another WD Component

    Hi All,
        Can anyone please tell me how to call a Window's Inbound Plug of one WD Component in another WD Component.
    Thanks in advance!
    Best Regards,
    Devyani

    Hi Devyani,
        are you calling the view (embeded in a window ) of a component 1 in component 2. If so,
    1. Define the used component(Component 1) in the using component (Component 2)
    Component Use : Comp1
    Component        : Component 1(Name of the component)
    2. On action: using component usage window, window of component can be called as a pop up window in component 2
    If this is not your requirement, let me know. i will try to help
    Regards,
    Sankar

  • Replace a component by another in a Frame

    Hi all!
    I've a frame with several component (panels, buttons...) set with a gridbaglayout.
    I would like to know if i could replace a component by another.
    For instance.
    Frame f = new Frame();
    button b1 = new button("b1");
    panel p = new panel()....
    f.add(b1)
    /* replace b1 by p
    like :
    f.remove(b1);
    f.add(p);
    */Thanks!

    Sure, you can replace any component by enother one.
    add f.validate() in the end.

  • Embeding WebDynpro component into another webdynpro component

    Hi,
       I am trying to embed one (embeded) WebDynPro Component in to another(inner) . I have followed the tutorials for Server side eventing at
    http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm
    Here are the steps I did.
    1) Created two WebDynpro component "embeded" and "inner" components in  a project with two views embededView and innerView respectively.
    2) Defined the component usage in "embeded" component.
    3) created a viewset at "embeded" component. included embededView and innerView in the viewset.
    4) Included required controllers at embededView.
    5) Created two button at embededView and linked it to action and wrote code to create the componet using componentusage instance.
    But unfortunately i could not able se to any component created i.e the view of inner component is not visible at all.
    Could anybody have an answer to the above query.
    Regards
    Alok

    Hi Alok,
    As far i understood the scenario. You want to see/embed one webdynpro view inside another web dynpro view when you click some button in the outer web dynpro view.
    Is it correct ?
    I had the the following approach.
    >created two wen dynpro component in a project.
    >define the view for the inner component.
    > In the Outer component, i added View Container.
    > In the View Container, i embedded Interface View of inner component.
    > write some code to view this in the on action event of the button used to display the inner view.
    If you are working on the same scenario, it is one method to go
    Rgds,
    Vilish

  • Replace a file which has a specific ID with another one

    I want to replace a file with another one using JSOM, but preserving all other associated fields (like Author and other custom columns in the document library)
    How can I select the file I want to replace using the ID field?
    For example, when I update a regular List Item, I use
    this.oListItem = oList.getItemById(the_given_ID);
    oListItem.set_item('Title', value);
    How can I do that for a file?
    I want to replace the file, not to update its content!
    Thank you!

    Hi,
    Per my understanding, you might want to replace the file in a library with other associated fields preserved using JavaScript Client Object Model.
    There seems no direct way can achieve what you want, as a workaround, you can upload the new file into this library, get the values of the associated fields from a
    specific item and populate them in the current item, then delete the original file from this library.
    By doing this, the original file will be deleted, a new file with the same properties will appear with a new ID.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for