cancel
Showing results for 
Search instead for 
Did you mean: 

Method - WD_USAGE_INITIALIZE is not called the second time

Former Member
0 Kudos

Hi All,

I have included Component B inside Component A using Component usges.

The binding of context nodes is done in method - WD_USAGE_INITIALIZE of Component controller.

When I run it for the first time it works all fine.

But, when the user leaves the component and re-enters, the method - WD_USAGE_INITIALIZE is not called.

What needs to be done so that method - WD_USAGE_INITIALIZE is called everytime we enter Component A in WebUI ?

Thanks,

Ashish

Accepted Solutions (1)

Accepted Solutions (1)

former_member214667
Contributor
0 Kudos

Hi Ashish,

The method WD_USAGE_INITIALIZE is called only when the component usage is first initialized (i.e. when you first navigate to it). And the context node binding once done at component controller level will also exist. Please state your problem in more detail so that a solution can be worked out.

Regards,

Shiromani

Former Member
0 Kudos

Hi,

I need a method of the Component controller that will be called everytime we visit that component.

Regards,

Ashish

former_member214667
Contributor
0 Kudos

Hi Ashish,

I don't think there is any such method in component controller. However, DO_INIT_CONTEXT( ) method of any view of a component will be called whenever you come back to the component.

Regards,

Shiromani

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved it myself.

The code from WD_USAGE_INITIALIZE was moved to Window controller, method DO_INIT_CONTEXT.

Thanks,

Ashish

Former Member
0 Kudos

hi Ashish,

Can you explain why you need that?

what do you want to do?

KR,

Micha