cancel
Showing results for 
Search instead for 
Did you mean: 

Auto clearing the values in the fields based on f4 drop down list value.

0 Kudos
340

When the user select a value from f4 drop down list the dependent fields should get cleared, can anyone please tell me how to achieve this?

Example if the user select the value from the country field it dependent fields like state,region,district,city should get cleared.

Thanks & Regards,

Rajkumar

View Entire Topic
Former Member
0 Kudos

I think it is better not to implement the BOL interaction directly in the get_v, but implement an event in the get_p.

CASE iv_property

WHEN if_bsp_wd_model_setter_getter=>fp_server_event.

     rv_value = [your event]

ENDCASE.

Your event could be for instance 'CLEARDEPENDENTFIELDS'

You can then catch this event in the event handler of the implementation class by adding the event in the event handler node.

In the event I would clear the fields.

Check the following links for example code.

http://blog.acorel.nl/2010/08/add-buttons-to-view.html

http://blog.acorel.nl/2010/08/field-properties-modification-using.html

http://blog.acorel.nl/2014/11/implement-event-handler-in-crm.html

This will only work for ddlb fields, as for standard input fields you cannot force a roundtrip.

Regards,

Pieter

0 Kudos

Hi Pieter,

I already did the same thing but i am failed to grab the exact results......is there any other way to implement.........

Thanks & Regards,

Raj.

former_member190077
Participant
0 Kudos

Then I recommend to program the method DO_PREPARE_OUTPUT,

Is the best way for archive you solution!!

Best regards,

JMP.