on 06-16-2009 10:55 AM
Hi exports
component BT111H_OPPT-->
BT111H_OPPT/OpportunityOVViewSet
control class
ZL_BT111H_O_OPPORTUNITYO0_IMPL~Zmethod
read
view BT111H_OPPT/Details context node BTSTATUS
how to do it?
Hi,
You cannot directly access the context node of details view at OpportunityOVViewSet controller class unless the context node is bound to custom controller or component controller. Instead what i would suggest you is make use of BOL entity to fetch the status and following is the sample code:
Inside your Z_method in IMPL class of OpportunityOVViewSet i.e. ZL_BT111H_O_OPPORTUNITYO0_IMPL~Zmethod
data : lr_entity type ref to cl_crm_bol_entity.
lr_entity ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
lr_entity = lr_entity->get_related_enitity( 'BTHeaderStatusSet' ). "Relation name is case sensitive
Now lr_entity would have the current oppurtunity document status enitity.
I have given you a hint here if you want more details of the status you can drill down from BTHeaderStatusSet to other entities via relations which you could find in GENIL_BOL_BROWSER/GENIL_MODEL_BROWSER.
Hope this helps you.
Regards,
Bharathy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved.using customer controller share data.
Thanks god/Xie xie laotianye! your are a real export!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.