cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the Properties at Genil Level - Editable

former_member205429
Contributor
0 Kudos

Hi All,

I am trying to make a field Editable dynamically and tried to set the property as mentioned in the link below:

http://scn.sap.com/message/13670845#13670845   as mentioned by Nikhil Prateek Kulkarni ..

i have a BOL Entity with me now..

   lr_entity ?= gv_context_node->collection_wrapper->get_current( ).

how do i implement the below code here ..

         lv_value = if_genil_obj_attr_properties=>changeable.
        lv_attr_props->set_property_by_name(
                            iv_name  = 'ZZMDC_COMMENTS'     ""IV_NAME is your UI Field Name
                             iv_value = lv_value ).   "" LV_VALUE is either

I have to perform the above steps based on a condiiton..

Can any one pls guide me how do i get the instance of LV_ATTR_PROPS from the LR_ENTITY.

Pls Help ASAP !!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Greetings Santhosh,

Refer the below link

http://scn.sap.com/thread/3247856

cheers,

Savaridasan

former_member205429
Contributor
0 Kudos

Savaridasan,

Thanks for the input..

can u pls let me know is it that i have to implement in Genil Class only.

My scenario is i am unable to change the field of type TEXT AREA to Editable even i write the code in .HTM. Page.

I have to change the field 'X" of type TEXTAREA to editable based on Ztable Config. and so i have write the code to change for every other field.

Pls find the screen shot where i am getting DUMP ..

Can u pls let me know  how do i set the field to Editable here..