Reading Attributes from different context nodes in the same view
I have added a new field as part of an enhancement for Trade Promotions. This field is a checkbox and part of the context node TRADE in the view TPMOE/HeaderEOF. This field will be checked or unchecked using a logic in the background.
The logic will be based on an attribute (Fund Plan ID) which is part of another context node FUNDPLAN in the same view.
How can I read the attribute of FUNDPLAN context node in TRADE context node?
A sample code will be quite helpful as I am new to CRM 2007.
Edited by: Abhishek Periwal on Oct 16, 2008 2:35 PM
Gaurave Mehta replied
Suppose u r in BTAdminH node and u want to access BTOpportH node.then do like this...
data: lr_entity type ref to cl_crm_bol_entity.
data: lv_test type string.
lr_entity ?= collection_wrapper->get_current( ).
lr_entity = lr_entity->get_related_entity( 'BTHeaderOpportunityExt' ).
lv_test = lr_entity->if_Bol_bo_property_access~get_property_as_string( 'PROBABILITIY' ).
It may help u.