cancel
Showing results for 
Search instead for 
Did you mean: 

Subscribe event from BP_HEAD-Component Controller for Z-Component

Former Member
0 Kudos

Hi,

i quite new in developing for CRM WebUI. In my first project i face a problem with subscribe an event from BP_HEAD. I need do receive an event if the Save Button is press to save change. I build a "Z"-component that i add via ComponentUsage to BP_HEAD. Bind PARTNER Context in the BP_HEAD-Component Controller via IV_USAGE->BIND_CONTEXT_NODE was no problem. But how can i subscibe an event from BP_HEAD to trigger my Z-Component to save BPARTNER independent Data? I'm unable to get a referenz of my z-component in the Method "WD_USAGE_INITIALIZE" of the BP_HEAD-Component Controller.

Hope somebody can give me a hint.

best recards

Thomas


Accepted Solutions (1)

Accepted Solutions (1)

former_member186543
Active Contributor
0 Kudos

Hi Thomas,

On the save button you of the overview page you can get a reference of your Z-component added , by using the method GET_SUBCONTROLLER_BY_VIEWNAME of the overview page.

Here you will get the reference of the controller of your Z view ,then you can trigger any event of that z view from this fetched reference.

/Hasan

Answers (1)

Answers (1)

kumar5
Active Contributor
0 Kudos

Hi ,

Add the below code in wd_usage_initialize of your component controller

Now when you click on save button do_prepare_output method of you custom component view gets called.

You can code there to save the independent data.

Hope it helps

Thanks

Kumar Gaurav.