Cross component communication

Hi, I have two components in my application. One contains a
repeater and a button. When the button is pressed it calls a
function in an actionscript file that throws an alert and fills the
repeater.
The second component just has a tree control. When I click a
node in the tree it calls the same function in the actionscript
file which throws the alert correctly but does not fill my
repeater. My repeater is bound to [bindable] XMLListCollection
declared in the actionscript file. Do I need to make reference to
'this' to make the objects bindable when click is initiated form
another component. Examples would be great.
Ken

Got this sorted by using:
Application.application.myComponent2.myFillRepeaterFunc();
My function in component2 was previously being called but not
from the same scope as if a click was initiated from component2.
When component1 called the function directly the repeater did not
bind but using the Application.application object it worked a
treat.

Similar Messages

  • Cross component communication query

    Hi All,
    The scenario is in SAP SRM system.
    I am trying to access the Contract number attribute (V_CTR_H_BD.HEADER_BD.OBJECT_ID) from the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD.
    I want that attribute to be accessed in the WD component /SAPSRM/WDC_DODC_CND view V_DODC_CONDITION.
    So, in order to achieve the above requirement, I tried to add a node as an Interface Node in the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD. But, I am unable to create any node in the component controller of WD component /SAPSRM/WDC_CTR_DODC_H_BD as a Interface Node, and hence, I am unable to create any node of Interface Controller. This is due to the reason that the node that we are creating have the Interface Node option in disable state.
    Can anybody suggest what approach we need to follow to satisfy the above requirement? (It would be great if the resolution will be containing the steps)
    Regards,
    Susanta

    In that case declare an attrubute of  OBJECT_ID  type in your component at component controller level. Lets call is m_cc_objID. Declare a method at component controller ReadObjID  call this method inside WDDOMODIFY of the view V_CTR_H_BD  and in code specify that it copies value of OBJECT_ID to our attribute m_cc_objID.
    now follow the steps from my previous reply
    Create a INTERFACE method in the component controller of the component /SAPSRM/WDC_CTR_DODC_H_BD, lets
    call it GetContractAttribute. This method will return contract number. Dont forget to tick the Check Box
    Inteface when creating this method, this tells you that this method is interface method and can
    be called from outside.
    next in the component /SAPSRM/WDC_DODC_CND instantiate /SAPSRM/WDC_CTR_DODC_H_BD under component usage. Now you can
    call the method GetContractAttribute.
    Greetings
    Prashant

  • Can any body send me the cross component meta data files of any cross compp

    HI,
    I want meta data files of cross component project could u please pass these meta data files as soon as possible.
    Thanks,
    Shabeer Ahmed.

    Hi,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a137c339-0b01-0010-a688-a87b88706845
    Regards,
    Sundar

  • Cross-component: Call method of using component from within used component?

    Hi,
    I began diving into cross-component programming.
    Meanwhile after having digged into some scenarios some questions came up to my mind that I am not able to answer myself. I would appreciate your help here!
    Say we have to components.  Comp A uses Comp B (hence, B is a component usage in A)
    1) How to make them communicate not on a data level (via context binding) but on a process level, thus...
    a) can I call A's method from within B? How is the approach on a general level? - as B can be used from totally different components (like A, A1, A2 ...)
    b) perhaps the only way to do this is by firing events? If so, how can I react in A when an event in B (marked as interface event) gets fired? As it seems they do not get registered within A directly...
    I guess the question seems to be a bit tricky. Nevertheless, I think there will be plenty of you out there who used to asked them the same questions before and came up with an approach. Would be nice to hear from you.
    Best wishes,
    Marc @sap1

    Hi,
    thanks for your reply!
    Indeed, I think the nature of WDA would be just to somehow map the context from the used component to the other back and forth.
    Nevertheless, what if I would like to invoke a method of the using component from inside the used component.
    One sample for this requirement could be e.g.:
    Component B offers a tree item and a send/verify button.
    Component A uses B and has some restraints regarding what the selection should look like.
    The user taps the button in B (at runtime in the view container of A), the context gets updated in A and B and in Component A the verifyWithOwnConstraints() method gets called (through B).
    Thanks again,
    Marc

  • Unsuccessful Cross Component View Sharing

    Hey Folks,
    I am facing an issue when I am doing cross component sharing of a vew
    Requirement
    I need to embed View 1 of Component A into View 2 of Component B.
    Solution : I have done the following steps:
    In Component A: 
    I have a created a View 1, whose elements are bound to a node. The node has mapping to the node in the Component Controller.
    I have defined an interface method in Component A which populates the Component Controller node which is bound to elements in View 1.
    In Component B:
    I have defined the Component A as a Used Component in Component B and have defined the Component Usage of the Interface Controller of Component A in B.
    I have embedded the View1 of A into the ViewUiContainer Element in the Window corresponding to View2 of B
    I have defined a method in the Component Controller of B, which makes a call to the interface method defined in A
    In the wdinit method of the View2, I have created the component Usage
      l_ref_cmp_usage = wd_this->wd_cpuse_<<>>( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
    Issue
    The view is showing up as desired, however no values are being populated
    Analysis
    On debugging, I see that the interface method is being called and the Component Controller node of A is indeed getting populated.
    But then the same is not being reflected in the view.
    Am I missing something here?
    I need not have made the node as an interface node, since the population of the node is being done within Component A itself. Hence the only thing Component B has to do is to call the interface method with the right input parameters. But somehow the node mapping is just not happening
    Any pointers on this would be of immense help.
    Thanks,
    Puja

    Hey Folks,
    Thanks for all the inputs...After a good frustrating debugging and rummaging the code for a whole day, I decided to redo the entire thing. Once I scrapped the original views, components et al and redid it over again, things seem to be working.
    @Naresh : I did try doing what you have suggested and much to my surprise, it worked standalone
    @Pradeep : Yes I am doing a bind_table to the node in question.
    I still have a hunch that there was some kind of a problem with the binding of the ensuing table to the node. But have no clue where exactly that could have been happenign as I double checked the obvious places.
    Thanks for all the inputs.
    Best Regards,
    Puja

  • Organizing cross-component eCATT tests in the Test Catalog

    My question is regarding how to properly structure the test catalog.  I have an eCATT test that uses REF to call three other eCATT tests.  These three tests are simulating a businses process (order to cash) and they are Creating a Sales Order (VA01), Creating a Delivery (VL01N) and Creating the Billing Document (VF01).  Since test catalogs are placed in the application hierarchy I created three separate test catalogs, one for each test.  The catalog with VA01 is in component SD-SLS-SO while the catalog with VL01N is in LE-SHP and VF01 is in SD-BIL.  Now I have the fourth eCATT script -- the chain script that uses REF to call those other three scripts.  Since this script doesn't belong to any one specific module or component I can't create a test catalog for it in the application hierarchy.  I also realized that if I created a test plan from the three test catalogs with VA01, VL01N and VF01 I wouldn't be able to execute them individually because the scripts share Import and Export variables.  What is the Best Practice for creating and storing multi-transactional, cross-component tests that simulate business processes?
    Secondarily, is there a forum dedicated to eCATT, TestWorkbench or SAP automated testing?  If not, which forum would be the best place to post these testing related questions?

    Ben,
    there are effectively two approaches:
    1. Find the "lowest common denominator" - if you have a master script that calls scripts from various sub-components of SD, place the master script in SD (top level)
    2. Try to establish the "lead activity" in your master script - ask yourself the question "How would I describe this test case in one sentence?". Then try to classify the master script according to that.
    Both approaches have advantages and disadvantages.
    There is, of course, a third possibility. If you have real baseline tests that test business processes that run right through everything, you could put the catalog at "SAP" level in the application hierarchy.
    Feel free to keep posting your testing questions here!
    Regards
    Jon.

  • What is cross-component

    hi all,
    1.what is cross-component and business process management?
    2.why bpm's

    Hi   srinivas ,
              For all ur question the following liks will give you answer 
    CCBPM Intruduction
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/frameset.htm
    BPM
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    check list for BPM https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-8569d193124e
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping - File to Multiple IDocs
    BPM BLOGS
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/40
    For BPMs check these weblogs:
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    /people/ravikumar.allampallam/blog/2005/02/17/bridging-the-sync-async-bridge-with-fork-xi
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/daniel.graversen/blog/2006/09/07/using-a-bpm-to-collect-messages-for-a-set-interval-of-time
    Best Regards .,
    V.Rangarajan

  • Nexus 1000v / pvlan promiscuous trunk / Cross-host communication.

    Hello,
    We are planning the deployment of Nexus 1000v with “promiscuous trunk” uplink ports. We want to be sure cross-host in isolated pvlan will not be possible .
    Looking at the picture, I was wondering if the communication between VM-A on ESX1 and VM-B on ESX 2 (both on isolated pvlan) will be impossible as expected.
    Example: If VM-A on ESX 1 tries to send traffic to VM-B on ESX-2, the vlan 11 tag is remapped to vlan 10 tag at the outgoing uplink on ESX 1.
    Then the flow arrives on ESX 2 with vlan 10 tag on the promiscuous trunk. I understand the promiscuous port can talk to all secondary pvlans, so VM-A can in this case talk with VM-B.
    Is my understanding correct ?
    Or does the Nexus 1000v have an enhanced cross-VEM mechanism which allow to check the source mac address and know that it comes from pan isolated pvlan and as a result cannot communicate.
    Best regards.
    Karim  

    Hello Karim,
    N1k enforces pVLANs across all hosts.  Think of all the N1k VEMs as a single switch.  In your example, VM-A will not be able to talk with VM-B.  We accomplish this isolation by poisoning VEM mac address tables with a null destination.  For example, ESX1 would contain a dynamic entry for VM-B that points to a null LTL value.  If VM-A attempted to send traffic to VM-B's mac, it would not leave the host.
    Please be aware that N1k can only enforce pVLANs for traffic behind the VEMs.  If you have other servers in VLAN 10 on the blue switch, it would be seen as a promiscuous port from N1k standpoint.  Additional configuration would be required to prevent communication.

  • Cross component navigation

    Hello,
    We are in process of customizing CRM 2007 IC webclient. The task is to add new button in component ICCMP_BP_DETAIL. After pressing this button custom view needs to be called in component ICCMP_IBASE.
    So far I've create a custom view, assigned it to the ICCMP_IBASE component (reused window).
    Button has been added on ICCMP_BP_DETAIL as well. Outbound and Inbound plugs have been added to the views and to the corresponding windows.
    But looks like the navigation link doesn't work. Has anybody had the similar task and can share the steps involve in this customization?
    Thanks a lot.

    hi sudeep,
    I have a similar task to be done.......
    My requirement is
    I have created a zview in component ICCMP_BT_IRHIST.
    I am navigating from one view in ICCMP_BT_IRHIST to this zview.
    I want to get the account identification number in this zview.
    The account identification (attribute is present in this component CRMCMP_BPIDENT.
    For getting the account identfication number
    i m writing this code in the layout of the zview
    TRY .
    lr_cuco ?= controller->get_custom_controller( 'CRMCMP_BPIDENT/CuCoBuPa' ).
    CATCH cx_sy_move_cast_error.
    RETURN.
    ENDTRY.
    check lr_cuco is bound.
    lr_entity ?= lr_cuco->typed_context->SEARCHCUSTOMER->collection_wrapper->get_current( ).
    check lr_entity is bound.
    lv_account_name = lr_entity->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
    But im not able to get the account identification number the problems are
    lr_entity is initial ...where as lr_cuco is bound only....to this view....
    Navigation everything is working fine ...
    waiting for suggestions....
    Regards,
    Sijo....

  • How to go about Cross Component Navigation

    Hi Experts ,
    I have Component C1 In which i have view V1.
    I have Component C2 in which i have view V2, V3 V4  .
    On one of the action in V1 it should call  Component C2 and Views and Navigation should happen between V2 V3 V4 (As if it happens when the Application for C2 is run individually ) .
    Please let me know in detail .
    Thanks in Advance
    badari Patil

    Hi.
    In C1 create a new view(v1a) and add a view_container_ui_element and add an inbound_plug to this view.
    The add the component usage of C2 to component C1.
    Then go to the window of c1 and add the new view. Open the tree in the window so that you can see the view_container_ui_element. Right click and choose embedd view. Choose theinterface view of C2.
    In view 1 of C1 add an outbound and fire it in the button action.
    In the window connect v1 outbound with v1a inbound.
    Thats it
    Cheers,
    Sascha
    Message was edited by:
            Sascha Dingeldey

  • Component to component communication

    Hi
    i have aDC  with two components comp1 and comp2 i want to call amethod present in comp1 from comp2,can you please tell me how to do it.
    thanks
    rahul

    Hi,
    I have done the below steps as mentioned :
    1. Defined  used component comp1 in comp2
    2. linkd the interface controller of comp1 in comp2
    and 3. calling the method : wdThis.wdgetFlexInterface().refreshFlexcomp() ; This refresh Flex comp() is existing in comp1 interface controller.
    This looks fine with no compile errors in test server. When I try to activate to D using NWDI then it is returning compile error as below:
    symbol  : method wdGetFlexInterface ()
         [javac] location: interface com.deloitte.component.newhire.healthplan.wdp.IPrivateNew_Hire_HealthPlan
         [javac]                     wdThis.wdGetFlexInterface().refreshFlexComp();
         [javac]                                       ^
         [javac] Note: Some input files use or override a deprecated API.
         [javac] Note: Recompile with -deprecation for details.
         [javac] 1 error
    Can you please let me know if I am missing anything here? 
    Thanks for your time!!
    Regards,
    Madhavi

  • Change Value A based on Value B in Web UI in cross component

    Hi Friends,
    I have a requirement to populate value A based on selection of value B in differenet component.
    I have a web ui screen to create a complaint ( Component A ). After saving when I am clicking on follow up button, it will take me to next web ui screen ( Component B ) i.e. service order. Here I have a status field and after its selection when I have save. I also want to change value A of component A field.
    Kindly suggest..how can I achive this.
    Regards,
    Narendra Goyal

    Hi Narendra,
    It depends on what the exact fields are. If you change a value in component A and this change goes to the BOL layer, then this changed value should always be accessible in component B if you use the same BOL object and BOL relation to access the data. And you can always change the value from component B and it should already change in component A. The only thing you need to ensure is to call publish_current( ) method on the node where you change the value or call a BOL code modify( ).
    Regards,
    Shiromani

  • Cross-component refresh across an iFrame?

    If I have 2 Pages and Page2 is in an iFrame contained in Page1.
    How can I PPR a component in Page 1 (parent) upon triggering an event from a component on Page 2 (iframe).
    Regards,
    Matt

    Hi,
    you are posting this in the JDeveloper 11 forum, so I assume you use JDeveloper 11. If you are using an iframe just by adding an iframe tag then for sure PPR doesn't work within that frame. Please use the equivalent ADF Faces tag in JDevelper 11 and set PPR on this component
    Frank

  • Exception during cross-component navigation

    Hi all,
    My requirement is to navigate from the task to the Case.
    After doing the necessary things for event handling, I have created a outbound plug in the component BT125H_TASK in the view 'TaskDetails'. I have added this outbound plug in the main window with the necessary code for the outbound plugs. I have also added this outbound plug to the main window and component interface in the runtime repository.
    I am using the inbound plug 'Overview' (mainwindow) from the component CRMCMP_CMG. I have added this inbound plug under mainwindow and component interface in the runtime repository.
    The outbound and inbound plugs are defined along with source and target IDs in SPRO also (CRMS_UI_TLINK and CRMC_UI_NBLINKS).
    Now when I click on the case link in 'TaskDetails' page, it gives the following error:
    "Invalid entry in the navigation queue
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - Define NavigationalLink TOCASEDISP for source view CUBT125HTASK.MainWindow.
    Program:  SAPMHTTP 
    As both the components BT125H_TASK and CRMCMP_CMG are parent components themselves (think so), I have not added the outbound/inbound plugs under component usage. Do i need to do anything here??
    Are the components BT125H_TASK and CRMCMP_CMG root components?
    Any help is highly appreciated.
    Thanks in anticipation.
    Regards
    Vidhya

    Hi All,
    I could solve it myself. Thanks for the time.
    The problem was I tried to navigate directly from the component ''BT125H_TASK' to the component 'CRMCMP_CMG', as I could not find any parent for BT125H_TASK earlier.
    Now I could find its parent component which is 'BT110M_ACT'.
    The outbound plug created in the task component has to be added to the component usage of 'BT110M_ACT' and the delegation should be done. The other things are the same. It works fine.
    Regards
    Vidhya

  • Cross Component Navigation Error

    Hi,
    I'm trying to navigate back and forth from DC A View A and DC B View B, follow the "How to Navigate Inside WDP Interface Views" tutorial by Bertram.
    My steps to navigate from DC A View A to DC B View B:
    1. Create outbound plugs at the DC A Interface View (IVACWindowInterfaceView).
    2. Create the require controller IVACWindowInterfaceView in the View A.
    3. Create an event handler and action to trigger the event handler.
    4. In the view A, wdThis.wdGetIVACWindowInterfaceViewController ().wdFirePlugCrossCompNavToCal();
    5. In DC B interface view, create an inbound plug .
    6. Create the require controller of DC B interface view at View B.
    7. In DC C, add DC A and DC B as used component.
    8. Embed both DC A's and DC B's interface view into the DC C. Link the DC A's outbound plug to DC B's inbound plug.
    Correct me if i'm wrong. Thanks.
    Error messsage:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate from view IVACWindowInterfaceView via non-existent outbound plug CrossCompNavToCal
         at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:289)
         at com.sap.xss.hr.lea.worklist.wdp.InternalIVACWindowInterfaceView.wdFirePlugCrossCompNavToCal(InternalIVACWindowInterfaceView.java:135)
         at com.sap.xss.hr.lea.worklist.WorkListView.crossCompNavToCal(WorkListView.java:186)
         at com.sap.xss.hr.lea.worklist.wdp.InternalWorkListView.wdInvokeEventHandler(InternalWorkListView.java:229)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    - julius

    Hi,
    I've seen the above tutorial. The tutorial doesnt have step by step specifically, but more on the concept and a sample tutorial. I did follow the tutorial, but somehow still got the error.
    Hi kanwalpreet,
    Can u be more specific on what to check? i did check many times indeed. 
    - julius

Maybe you are looking for

  • Spotlight search doesn't include my email - should it?

    Sorry but I am a newbie running Lion I can search in the Mail app and find the email I am looking for (I have a Gmail IMAP account setup) When I search using the spotlight app however, it is not searching for email My questions is - should I be able

  • Purchase Orders - Updating Line Items After a Portion Has Been Received

    Is there any way to make a line item editable on a purchase order if only a portion of it has been received? Basically, our company will create a Purchase Order in SAP, which goes to our office in Hong Kong to arrange shipment. These Purchase orders

  • Am trying to instal driver for HP 3600 laser printer onto my new laptop HP 625 need help

    Am trying to instal driver for HP3600 printer onto my new HP625 laptop but keep getting message that I do not have IE5 or later and cannot instal until I instal IE5 or later.  I have the lastet Internet Explorer so don't know why I get the message an

  • Approproation request

    Hi friends, After one creates an appropriation request, one can find the "for approval" button. Then there are three stages namely; approve, release and complete technically. Please explain the stage of project when the three buttons have their signi

  • Hello, a simple question for all!

    i have installing adobe suite cs6 components on my pc (32bit), now im try to install the adobe premiere pro cs4 version (but i riceve an error during the installation) is possible that the two versions of adobe come into conflict? sorry for my englis