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

Component initialization in navigation

Hello,

I have two views in my component: A and B.

View A is a "normal" view. Into view B I have embedded another component. The idea is that I can choose certain item in view A, and then navigate to view B, which shows me the details of the selected item.

Now this works in the following way: When I select the item in view A, I populate a certain contect node with the "key fields" of the item, deliver this node to the other component via interface node, and then in the WDDOINIT method of componen B I populate the context with the details based on the key fields in the interface node.

Now the problem is that when I navigate back to view A, and select another item, and navigate again to B, the WDDOINIT method is not triggered anymore, and because of this, I still have the old data there. (=the view is showing me the data of the item that I selected the first time).

How to handle this situation? Can I somehow kill the custom controller (now containing the context with the details) of the component in view B? Or can I call the method, that fills the context with the details, in some other phase than WDDOINIT?

Regards,

Karri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 06:04 AM

    Hi,

    In such situations where the second view's content depend on first one.

    One should always code in HandleInput method (The input plug method of second view).

    This will always provide u with the current data and will remove the dependence on the WDDOINIT.

    Common data which is used can be declared as attributes in Component controller.

    I hope it helps. 😊

    Please revert back with issuse.

    Regards,

    Sumit Oberoi

    Add a comment
    10|10000 characters needed characters exceeded

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.