cancel
Showing results for 
Search instead for 
Did you mean: 

Force server round trip

Former Member
0 Kudos
1,122

Hi All,

I have a requirement where I have two fields. One is drop-down and other is input field(mandatory field). Based on the dropdown value input field gets populated automatically. But error message still shown in the message bar since it is an mandatory field. User need to press enter to remove this error.

I am trying to use server round trip in p_method of input field using fp_server_name but the property server name is not set for input field. How can I remove this error message without pressing Enter and is there any other way how can I trigger server round trip.

Thanks

Lalit

Accepted Solutions (0)

Answers (3)

Answers (3)

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Lalit,

You can try to delete this particular message based on the message number if your input filed is having a value in do_prepare_output( ) of the view.

Regards

Vinod

VinayKumawat
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lalit,

Put the following code in the GET_P_XXXX method of the drop-down field attribute:


   CASE iv_property.
*****

     WHEN
IF_BSP_WD_MODEL_SETTER_GETTER=>FP_SERVER_EVENT.

       rv_value = 'CHANGE_EVENT'.

   ENDCASE.

Thanks,

Vinay Kumawat

Former Member
0 Kudos

Hi Lalit,

In GET_P_XXX method use fp_server_event OR fp_on_click instead of  fp_server_name to trigger round trip on select of dropdown.

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 = 'Dummy_Event'.

  ENDCASE.

Regards
Rajarama U

Former Member
0 Kudos

Hi Rajarama,

I am already using fp_server_event but ServerEvent value is never set in p_XXX method. I am using it in the p_xxx method of input field not in dropdown.

I need to trigger the round trip when the input field is set on the base fo dropdown selection of another field.

Thanks

Lalit

Former Member
0 Kudos

Hi Lalit,

Are you calling any event on selection of value in Dropdown? When you are setting the values for inputfield.?

  Event that you defined in GET_P of input field will not work.

Regards

Rajarama u

Former Member
0 Kudos

Hi Rajarama,

Value of the field is getting populated through categorization schemas and before that mandory field check has been processed. I am calling event in get_p method of input field.

Is there any other way we can achieve this?

Thanks

Lalit

Former Member
0 Kudos

Hi Lalit,

  If the input field is filled ,Can you delete the message in DO_VALIDATE_INPUT or DO_FINISH_INPUT?

  Sorry I don't know any other way.

Regards

Rajarama U