Skip to Content
0
Former Member
Jan 13, 2011 at 01:50 PM

get_property_as_string not working

260 Views

Hi,

I am facing a problem with get_property_as_string which doesn't give me the value of the attribute on the view. Am beginner in CRM hence not sure what to do.

I have a requirement to add some code in DO_HANDLE_EVENT of IMPL class of UI component BT120H_CPL. The code has to determine the value of attribute LCSTATUS in context node BTADMINH. Am using the following code,

  • Get ADMINIH instance

lv_adminh ?= me->typed_context->btadminh->collection_wrapper->get_current( ).

CHECK lv_adminh IS BOUND.

lv_process = lv_adminh->get_property_as_string( iv_attr_name = 'PROCESS_TYPE' ). " WORKING

lv_status = lv_adminh->GET_LCSTATUS( ATTRIBUTE_PATH = 'LCSTATUS'). " NOT WORKING

Strangely, the value of another attribute PROCESS_TYPE is being fetched correctly but for attribute LCSTATUS it is throwing an exception. I observed that in the structure CRMST_QUERY_R_COMPL_BTIL there is a field for PROCESS_TYPE but not LCSTATUS. Has this something to do with the issue? If so how can we fix this issue.

Regards,

Bhanu