Commmunication Between two Components

Hi ,
I am developing a project of having two components in it.  I want to communicate each component with other one. Both components should be communicating with each other.
I am able to communicate from Component one to Component two . But !  unable to do the same from Component Two to Component one.  It shows the following error.
Component ComponentOne: Cycle in component usage definitions: ComponentTwo
Regards,
Jyothi.

Hallo Jyothi,
Parent2Child-component-communication: apply interface method invocation (parent component with component usage relation to child component invokes interface controller method of child component --> IExternal-API)
Child2Parent-component-communication: apply interface eventing (child component exposes interface controller event, child component defines NO cyclic component usage dependency to parent component, parent component subscribes own event handler to event of child component's interface controller, child component fires interface controller event at runtime and can also pass object references as event parameters).
For data transfer across component borders apply interface-context-mapping
1) exernal context mapping: data context in parent component, child component externally maps its interface context to it.
2) interface context mapping: data context in child component, parent component maps own context to interface context of used child component.
Regards, Bertram

Similar Messages

  • Can Partial Trigger Work between Two Components Which Are in Two Pages?

    Scenario: Some output text components in page one while a SelectOneChoice and a InlineFrame are in page two. At first the resource attribute of inlineFrame was set to point to page one. When changing the value of SelectOneChoice, the values of those output text will be expected to change accordingly. I tried to make SelectOneChoice to be the trigger of those output text components, but found that SelectOneChoice can't be seen when attempt to edit the value of PartialTrigger attribute of those output text components. Then I tried to set the ID of SelectOneChoice as the value of the InlineFrame component, but failed getting the wanted result again.
    Problem: How to get a partial refreshing effect between two components that are in two different pages? Can partial trigger work in this scenario?
    Thanks for your interest!

    Hi,
    Sorry, you can't achieve that the way you're doing it. If you're using 11g, however, you could do that using regions.
    Regards,
    ~ Simon

  • How to use a context between two components at the runtime

    Hi Experts,
    My Web dynpro component is over the Generation limit (size of generated load is > 2 MB) so it always gets Warning when I active it. That why I have separated my application into two components and use the ViewContainerUIElement in order to show views of each other.
    In the application, I use also the TimeTrigger to refresh pages, all views have a TimeTrigger and the DELAY property of TimeTriggers is bounden into the same context attribute. I use a component to set up (change) the value of context attribute that is mapped with the Delay property. I want to change the Delay value on a component and other component will understand the changing.
    My problem is how I can use the same context attribute between components at the runtime?
    Let give me your advice on this.
    Many thanks,
    Ken

    Hi Ken,
    You can use [external context mapping|https://cw.sdn.sap.com/cw/docs/DOC-27901] to share data between two or more components using context.
    Thanks,
    Duy

  • How data transfered between two components in FPM. - SRM Shoppingcart

    Hi Guys,
                   I have requirement for SRM Shoppingcart.. to add new column in /SAPSRM/WDC_UI_SC_DOTC_BD (Item Overview Table)  component and to populate the data from this column into /SAPSRM/WDC_DODC_NA (Item Details Tabs) component Notes and attachment text column. (View - V_DODC_NOTES)
    I dont find any component usage or Link between these components.
    Application - /SAPSRM/WDA_L_FPM_OIF
    Could you please provide the outline of what has to been to transfer data between the two components.
    This is an enhancement to std. SAP shopping cart process. - Is this enhancement possible ?
    Cheers
    Sam
    Edited by: samraj001 on Dec 7, 2010 4:47 AM

    Hi,
    Can you resolvre these problem.. I have the same situation.. If you can resolveit, can you helpme??
    Thanks...!!!  

  • How to insert an item between two components

    Hi,
    I have two links one below the other, say suppose i click the
    first link, i have to display
    a list box right under it and push the second link below this
    newly formed list box.
    Please suggest how to go about it.
    Thanks,
    Lakshminarayan

    Please read thru the concept of states. Essentially, clicking
    on the fist like would switch to a new state that would use
    addChild to add this list box.
    something like: (right from the Flex Builder help)
    <mx:states>
    <mx:State name="Register">
    <mx:AddChild relativeTo="{loginForm}"
    position="lastChild">
    <mx:target>
    <mx:FormItem id="confirm" label="Confirm:">
    <mx:TextInput/>
    </mx:FormItem>
    </mx:target>
    </mx:AddChild>
    <mx:SetProperty target="{loginPanel}" name="title"
    value="Register"/>
    <mx:SetProperty target="{loginButton}" name="label"
    value="Register"/>
    <mx:SetStyle target="{loginButton}"
    name="color" value="blue"/>
    <mx:RemoveChild target="{registerLink}"/>
    <mx:AddChild relativeTo="{spacer1}" position="before">
    <mx:target>
    <mx:LinkButton id="loginLink" label="Return to Login"
    click="currentState=''"/>
    </mx:target>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    ATTA

  • Screen navigation between two components

    Hi,
    I have created 2 web dynpro component 1 and component 2.
    Component 1 has 1 view for ex: ABC and Component 2 has 2 views(XYZ1 and XYZ2, XYZ1 being the main view.)
    We have a requirement where we need to navigate from Component A iview ABC to component B Iview XYZ2.
    But after doing the component usage though I am able to navigate from Component 1 to Component 2 but it opens the main view which is XYZ1.
    Is it possible can I directly move to view XYZ2 of component 2 from view ABC of component1.
    Regards
    Shakti

    Shakti Parwanda wrote:
    Hi,
    >
    > I have created 2 web dynpro component 1 and component 2.
    > Component 1 has 1 view for ex: ABC and Component 2 has 2 views(XYZ1 and XYZ2, XYZ1 being the main view.)
    >
    > We have a requirement where we need to navigate from Component A iview ABC to component B Iview XYZ2.
    >
    > But after doing the component usage though I am able to navigate from Component 1 to Component 2 but it opens the main view which is XYZ1.
    >
    > Is it possible can I directly move to view XYZ2 of component 2 from view ABC of component1.
    >

    > Regards
    > Shakti
    I can think of 2 possible solutions.
    1. Create 2 windows in comp-2  - Window1 has XYZ1 as default and window2 has XYZ2 as default.  Navigate to the appropriate interface view according to your requirement.
    2. You can introduce a Channel view , in this view you create 2 plugs ( to_view1, view 2), use this view as default view.
        create a plug parameter to identify which view (say iv_view type string ).
        create a event in component controller with parameter iv_view, create a method to fire this event and make it public.
        fire this event by calling this method from window inbound plug.
        You should subscribe this event in channel view by creating event handler method .
        Fire outbound plugs according to the event parameter iv_view.

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • How to put some space b/w two components in panelGrid

    Hi,
    Can any one tell me how to put some space between two components in a panelgrid.I am trying to put   between the components in panelGrid,but it is not allowing me.
    I tried by putting <div> tags also...I am getting space on the top of the panelGrid...
    please tell me.
    Thanks

    Apply CSS. Make use of the margin/padding properties.
    If you never heard of CSS, start here: http://www.google.com/search?q=css+tutorial
    It's one of the essential knowledges (near HTML/JS/DOM) for webdevelopment.

  • Binding between two compoents?

    hi friends
    i'm not able bind between two components...
    im sending my code please help me...
    how to approach using metadata or waht?
    got stuck here
    ***************************** main application*******************
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
         <ns1:mypanel x="100" y="100">
        </ns1:mypanel>
    </mx:WindowedApplication>
    ********************************* component 1*****************************
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
         width="400" height="300"
         creationComplete="init();">
    <mx:Script>
         <![CDATA[
            [Bindable]
            public var mystring:String;
            public function init():void
            mystring = "prajnith";
        ]]>
    </mx:Script>
    </mx:Canvas>
    ************************************component 2***************************************
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
          width="400" height="300"
          creationComplete="init()">
        <mx:Script>
            <![CDATA[
            import mx.controls.Alert;
            public     var callcanvas:mycanvas = new mycanvas();
             public function init():void
                Alert.show(callcanvas.mystring);
            ]]>
        </mx:Script>
    </mx:Panel>

    hi
    try this
    Alert.Show(FlexGlobals.topLevelApplication.callCanvas.myString);
    I assume component one is instantiated as callCanvas.
    David.

  • How to handle events between two custom components?

    Hi ,
         i want to handle events between two custom components, example if an event is generated in one custom component ,and i want to handle it any where in the application.....can any one suggest me any tutorial or meterial in this concept...
    thanks

    Events don't really go sideways in ActionScript by default. They bubble upward. If you want to send an event sideways, you will probably have to coordinate with something higher up in the event hierarchy. You can send the event to a common ancestor, and then pass it down the hierarchy as a method argument.
    Another option is to use a framework that supports Injection. There are a number around these days. The one I'm most familiar with is Mate, which allows you to handle events and inject data in MXML. Mate is meant to be used as an MVC framework, and you may want to look into it if your application is complex, but you can also use it to coordinate global event handling if you don't need that level of structure.

  • Creation of trusted RFCs between two systems

    Hai,
    Can anyone help me to create TRUSTED RFC between two systems ie Solution Manager and the Production. To carry out Service desk facility.

    Dear Mohan,
    You can create RFC's in the Solution manager system using T-Code SMSY. there you find all your installed systems select the system from the left hand side under Landscape Components click on Application Server ABAP on the right hand side you will find a tab client in this screen select the client for which you want to create TRFC. Go to change mode and click on the button Generate RFC with Assistance. Carry out the wizard for creating the RFC's...

  • Two components do PublishedStaticFiles over the same file, who wins?

    Hi,
    I use UCM 11G PS4.
    Does anyone knows how PublishedStaticFiles is working, I know it publish
    resources into the weblayout/resources/wcm/custom.
    But does anyone knows what happens if two components try to publish same file?
    I will expect that Content Server to merge the 2 published files into one
    depending by loadOrder.
    Can anyone tell me what is the difference between PublishedStaticFiles and PublishedWeblayoutFiles?
    Regards,
    Cipi

    The PublishedStaticFiles and PublishedWeblayoutFiles tables are essentially the same thing, in that they both define where to publish in the Weblayout folder/directory. However, PublishedStaticFiles is used to publish static items like images, while PublishedWeblayoutFiles is generally used to publish dynamic items like layouts. When you're in the config manager, the "Publish static layout files" and "Publish dynamic layout files" publish those tables, respectively. A brief overview can be read on Kyle's post.
    As far as merging published files, no, that is not possible. The Content Server publishes all component files, but if any have the same file name, the component with the bigger (higher) loadOrder will "win" and its file will override the other.
    For instance, in the .hda file of the component you want to be loaded, you'll have:
    @ResultSet MergeRules
    4
    fromTable
    toTable
    column
    loadOrder
    SSOPublishedStaticFiles <-- your table that defines where in the weblayout directory you want to publish your files to
    PublishedStaticFiles
    null
    500 <--loadOrder (set the value to something big like 500)

  • Stock transfer between two WM managed storage locations

    Hi,
    I want to transfer some stock between two wm enabled storage loc (wm 120 and sl  0001 to another wm 200 and sl 0006) but
    not able to do so. Got to know that there are two components involved in this one IM and WM. I am new in WM so do not have much idea please provide me the right solutions.
    Thanks and Regards,
    Rahul
    Edited by: Rahul Shukla on Aug 23, 2010 12:30 PM

    Stock transfer w/o delivery:
    You can execute the goods movement in IM (one-step or two step) and after that you can process the TRs which are generated when posting GI/GR (hopefully your config is OK and TR is created automatically; else you have to maintain WM-IM interface). You can process the relevant TR from LB10 both in supplying plant (TO wiill be created from TR --> stock removal) and in receiving plant (TO will be created from TR --> putaway TO)
    Stock transfer with delivery:
    In supplying plant you have to pick the delivery (you have to create TO), you can do this e.g. via trx LT03, VL06O, VL02N (from "Subsequent functions" manu). In receiving plant you have to process the TR (from LB10) which is generated when GR is posted.
    (based on your WM-IM interface setting you may not get TR but immediate TO creation can be triggered, etc. If you are using inbound delivery as well you have to create putaway TO, etc.)
    Please specify your problem you are facing - in this case you may get specific answer.
    Edited by: Csaba Szommer on Aug 23, 2010 1:51 PM

  • Share DC resources between two SCs

    Hi Experts,
    I have public part PP in DC1 in SC1 (Software Component) and trying to share PP in DC2 in SC2 (Software Component).  Both SC1 and SC2 are in the same track.  I know it is an Illegal Dependency, but want to know from you all that is there anything any other way to do and achieve the same.
    Thanks in advance,
    Prasad
    Edited by: Venkata Siva Prasad Kothamasu on Sep 23, 2009 6:46 PM
    Edited by: Venkata Siva Prasad Kothamasu on Sep 23, 2009 6:47 PM

    Hi,
        Sharing DCS between two SCS is perfectly possible.
    In my Project, i have separate SC for UI components and separate SC for Util Components. and this Util components are refenced by UI.
    please follow these steps\:
    1. Switch to NWDI--> Select SC2 --> in the component properties, go to dependencies Tab --> click Add button --> in the pop up select the SC1 and click finish.
    2. Select the DC1 in SC1 and in the component properties , select permissions --> click ADD button and select the SC1 and SC2.
    3. then again SYN the DCs and now add the Public Part PP in DC1(SC1) to DC2 of SC2.
    Thanks and Regards

  • Data not passing between two Views in FPM-GAF

    Hello All
    I have first screen (view) configured with Initial screen and second view with main step using FPM GAF. But data is not passing from first screen to second screen. All  views/Windows contains in the one component.
    Example: In First Screen contains Employee Data in table , selecting the row clicks on button it is navigating to other screen (Mainstep) BUT selected data is not passing.
    BR
    -CW

    Hello Williams,
    CarlinWilliams wrote:
    > From FPM Intial Screen of data is not passing to the second screen. Where as in other Steps data is passing.
    I'm bit surprised to hear that this is working in other screens. As per the FPM concepts (my understanding), for the parent component that is used in child component, it will create a new instance and it wont re-use the instance of the Parent Component that is already embedded in the Initial Screen.
    In your case, you have embeded the parent component in Initial Screen. So FPM framework will create a new instance at runtime. while navigating to the Main Step, since child component is using parent component, the FPM wont re-use the instance of parent component. Rather it will create a new instancs of parent component. Since new instance is created, the data entered in the previous step/screen wont be available. this behavior is same for all the steps.
    anyway comming to your question and solution for the same.
    1. In the child component, create another window (say PARENT_WINDOW) and embed the view that was exposed by the parent component (basically interface view of the parent component)
    2. in the GAF component configuration, for the initial screen, embed the child component and view as PARENT_WINDOW
    3. for the main step, embed the child component and view as acutal view of the child component.
    Here same component is used in both the places. Now the FPM will try to reuse the instance of the child component. As a result, the data entered in the Initial screen will be available in the Main Step as well.
    Other approach would be to use the singleton class and share the data between these two components.
    Hope this solves your problem.
    BR, Saravanan

Maybe you are looking for

  • MULTIPLE UPLOAD file problem

    Hello, I have a problem with multiple upload file tool. Because my server need, in order to upload files in its folders, to be logged only with ftp user (that is unique). Now, I need that when I upload a file its name will be stored on db table "file

  • How to set message id for JMS

    Hi All, I set up the JMS connection with JBoss, and send the message asynchrously to JBoss successfully. But right now, Jboss need to use the incoming message ID as correlation ID in Jboss. How could i set the message id from payload (not PI message

  • WVI - no data found error

    Hello, I have text item called 'store' in my form. When the user keys in a store#, it should either provide a LOV of stores (if the store already exists in my tables). Else it should simply enable a bunch of fields/blocks in the form. However, when I

  • Using Deployment toolkit - deployjava.js

    Hello, i was just wondering if this is still the standard way to deploy applets when using the appropriate JRE is desired. I notice that it hasent been updated since 2005 and I'm sure things have changed net-wise since then. I also notice that it dos

  • Ipad for the Holidays

    Considering purchase of an iPad as a holiday gift First, which one is the biggest bang for the buck (very very basic user - e-mail, iTunes, general surfing)? Understand there are free books - are there also free movies? Currently have an iMAC (10.6.4