cancel
Showing results for 
Search instead for 
Did you mean: 

How to invalidate a child view imbedded in a ViewContainerUIElement

Former Member
0 Kudos

Hi Guys,

I am facing the following issue:

1. I have a Main Comp A that consists of 2 views V1 and V2.

2. V2 imbeds Comp B which in turn implements a series of other components that are not of importance.

3. When navigating from V1 to V2 a value (Incident Number) is passed to Comp B.

4. The first time round Comp B displays data that is relevant to the value that was passed in step 3.

5. All the other times after the first time navigation from V1 to V2 does NOT result in Comp B showing data based on the value that was passed... It seems like the value is passed, but Comp B does not "refresh" to show that data relevent to this passed value. Instead, it only displays the data as per the first value passed.

Is there any way of "refresing" Comp B so that it shows the "new" data ofter a value is passed?

Christiaan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185086
Active Contributor
0 Kudos

Hi Christiaan

Two solution are there

1.During each navigation u can check whether the embedded component instance is active or not

as

if(wdThis.wdGetInstEjbModelCompComponentUsage().hasActiveComponent())

{

wdThis.wdGetInstEjbModelCompComponentUsage().deleteComponent();

wdThis.wdGetInstEjbModelCompComponentUsage().createComponent();

}

It will delete the complete instance and gives a completely new instance and again u will able to get data like "Incident Number"

But it is not feasible b'z it delete the complete instance

2. Very Simple user the parameter in your plugs (Outbound and Inbound ) and handle the things in different view

3. Using External context mapping explained in previous reply.

Hope Now the problem will be solved.

Best regards

Satish Kumar

chander_kararia4
Contributor
0 Kudos

Hi Christian,

Instead of passing the values directly from view 1 to view2 do it via controller.

You should proceed in this way:

value from view1 -> value set in context of controller -> value retrieved from the context of controller.

This will not have any effect after invalidating the view2 also. Just retrieve the values from Controller Context.

Regards

Chander Kararia

# Please close the thread once get the correct answer. Give rewards for answers.