How to find out the view that calls a pop-up window?
The BP_HEAD_SEARCH component is a pop-up called by several other components (Contact, Activity, etc).
So I need to customize it in according to which view called it (BP_HEAD or BT126H_APPT, for instance). I see OUTER_REP_VIEW attribute, however it has several protected attributes and, some times, it doesn't work because it hasn't parent attribute filled.
Suchita Phulkar replied
I dont have idea about the std. attribute available which could let you know the name of caller view, but there is a logical way to around this.
1. in the context node class of search node in BP_HEAD_SEARCH, define a public attribute say zcaller_view.
2. In the event handler of the caller view ( where pop_up is created ) , you can retrive this node as
lv_cn = gv_popup->get_context_node( 'SEARCH' ).
3. Set the attribute as
lv_cn->zcaller_view = 'the view name here' .
Now , you can always retrieve this attribute in the necessary event in BP_HEAD_SEARCH
Thanks and regards