cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate a field from another drop-down selection field

Former Member
0 Kudos


I hope some one can help me to achieve the following requirement:

I have a custom field "Development group" which is a picklist that contain list of all developers in company.

I have another field which is an input field called "Developer" (partner function Developer is assigned to it).

When a person's name get selected in a drop-down "Development Group" list,

I need to copy that name to the field "Developer".

Can I do it in CRM UI ?

Thank you

Elena

Accepted Solutions (1)

Accepted Solutions (1)

RaviTejaGuptha
Active Participant
0 Kudos

Hi Elena,

Kindly check the below links will be useful

Regards,

Ravi

Answers (4)

Answers (4)

Former Member
0 Kudos

Excellent !

I've got the answer.

Thank you guys for replying this fast.

Elena

Former Member
0 Kudos

Hi Elena,

You can create a dummy server event on the picklist field. Again if the second field is in the same context node then you can set the value of that field once the system finds that the ropdown value has changed .

This you can do after the comparison if <nval> ne <oval> in the setter method of the picklist field.

Hope this helps.

Regards,

Saurav

former_member210661
Active Contributor
0 Kudos

Hi Elena,

Here first you have to capture the drop down selected value and then that you need to populate input field.

i will give you step by step procedure how to capture and how to pass the value into input field.


development group  there is an event handler in that capture the selected value and then set that value into input field using set property.


devgrop_event.


DATA : lr_col TYPE REF TO if_bol_bo_col,

          lr_entity TYPE REF TO if_bol_bo_property_access.

          lv_value type string.

 

   lr_entity ?= me->typed_context->CN->collection_wrapper->get_current( ).

CHECK lr_entity is BOUND.

lr_entity->get_property_as_string( EXPORTING iv_attr_name      = 'DEVGRPFIELDNAME'  RECEIVING  rv_result  = lv_value ).

lr_entity->set_property_as_string( lv_attr_name = 'inputfieldname' lv_value = lv_value ).

Thanks & Regards,

Srinivas.


former_member267851
Participant
0 Kudos


Hi Elena,

Yes, u need to write code for achieve this requirement .

GET_P of  Development group

CASE iv_property.
   WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
   rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

    WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
        rv_value = 'DEVP_GRP_SELECTED'.

  ENDCASE.

1. Create event handler 'DEVP_GRP_SELECTED' in .impl class .

2. write code in it to capture name.

3. pass that value in "Developer" field.

Hope it help.

Regards

Alok