How to access private attribute of class CL_WDR_CONTEXT_NODE_VAL
I have created a simple webdynpro program where my application display the table entries in a table.
I have applied filter values on the table.
So for this I have created a action and it is working fine.
The problem here is I need to handle exceptions raised by the application and for this I need to acces the private variable of the class CL_WDR_CONTEXT_NODE_VAL .
I am new to OOPS and still in learning stage.
Request to guide me in how to read the private attribute of class in our webdynpro application.
Awaiting for your responses.
Thanks & Regards,
shouldn't the type of variable clr be wd_this->element_filter?
Data clr TYPE wd_this->element_nrs_status. "change it to data clr type wd_this->element_filter.
and the call to l_node->get_static_attributes method will throw cx_wd_context exception if the filter node is empty. Catch this exception and proceed accordingly. If the filter node is empty its not required to call invalidate. I think you have handled it already.