Skip to Content
author's profile photo Former Member
Former Member

component usage only works one way?

I have created 2 wd components and want them to share data with each other in FPM. Lets say A and B. (both components will be implement IF_FPM_SHARE_DATA and component usage for each other )

ex)I have created a interface node on A and implement IF_FPM_SHARE_DATA. Then I declared component usage of A in B . I am able to see the contents of node A from B component. Works fine.

Problem : now, If I implement IF_FPM_SHARE_DATA and component usage of B in A, it seems the interface node gets cleared. because I am NOT able to retrieve the node of A from B any longer. ( oddly, when I remove the IF_FPM_SHARE_DATA from B, the data is visible again in B.

Does this means that IF_FPM_SHARE_DATA can be ONLY DECLARED ONE WAY?

THANKS

Edited by: juanlee337 on Feb 6, 2012 8:52 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2012 at 09:10 AM

    Hi,

    for your scenario, i would consider a different approach.

    Create a new main component , implement IF_FPM_SHARE_DATA interface. Create or move the contexts of the component A and B to the main component. Use the Main compoent as used component in A and B.

    See Examples in APB_FPM_DEMO package.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your reply

      but that doesn't make much sense. Why would you want to move context from A and B to new component and set the component usage in A & B.

      I think my scenario should happen very often. I am pretty sure components needs to share data with each other all the time. I just dont understand why my scenario doesn't work.

      thanks

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.