cancel
Showing results for 
Search instead for 
Did you mean: 

How to make search view' field non editable in CRM WEB UI.

Former Member
0 Kudos

Hi expert,

How to make search view' field non editable in CRM WEB UI.

Is there any solutions?

Thanks,

Vishal.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi experts,

My problem is still not solved.

regards,

Vishal.

Former Member
0 Kudos

Hi all,

My problem is solved , and special thanks to Leon.

Regards,

Vishal

Former Member
0 Kudos

Hi Leon,

How can I implement method inside method,as you have written?

Regards,

Vishal

0 Kudos

Hi Vishal,

In that method, you can call the GET_I_ method you have created for the corresponding field.

CALL METHOD LR_SEARCH->GET_I_FIELDNAME
EXPORTING 
ITERATOR    = 
RECEIVING 
RV_DISABLED = lv_bool.

If your parameter field, is a dropdown, then you can restrict even without disabling edit. In that case, you just need

to filter the values, and put only the default value in the dropdown,That way user doesn't have the provision to

select any other value.

Regards

Leon

Former Member
0 Kudos

Hello Leon,

can you please explain this? How can i call the context node's GET_I method from View IMPL?

Regards,

Pratheek

Former Member
0 Kudos

Hi Vishal,

we can make search view field as non-editable. in GET_I method use rv_disabled = "TRUE" in between TRY and ENDTRY instead of rv_disabled = "FALSE".

Regards

Prameela

Former Member
0 Kudos

Thanks a lot for reply,

I did changes in GET_I_<attrname> method but it is search view (i.e. I have created empty view and made it as search view) here it is not reflecting.And my requirement is field should contains default value ( that i did with ADD_SELECTION_PARAM method ) and this field should be non-editable.Is it possible?

Thanks ,

Vishal.

0 Kudos

Hi Vishal,

You can try implementing the GET_I method for the corresponding field in the GET_DQUERY_DEFINITIONS method

of the view controller.

Regards

Leon

Former Member
0 Kudos

Hi Vishal,

Redefine DO_INIT_CONTEXT and try the following code.

DATA: LR_ENTITY TYPE REF TO CL_BSP_WD_VALUE_NODE.

LR_ENTITY ?= ME->TYPED_CONTEXT->PARTNER->COLLECTION_WRAPPER->GET_CURRENT( ).

IF LR_ENTITY IS BOUND.

CALL METHOD LR_ENTITY->IF_BOL_BO_PROPERTY_ACCESS~SET_PROPERTY

EXPORTING

IV_ATTR_NAME = 'PARTNER' (attribute name)

IV_VALUE = '1000'.

ENDIF.

Regards

Prameela

0 Kudos

Hi Vishal,

What is the point in making the parameter non-editable?

Instead you can remove it from the configuration,right?

Regards

Leon