cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI Elements Field Highlighting not working in CREATE Mode but EDIT Mode

casualCoder
Participant
0 Kudos
144

Hi, 

i have generated FIORI Elements List Report Page. As Backend i am using BOPF with SAP NW 7.50.

UI5 Version is 1.108.26

Problem:

Field highlighting only works in EDIT Mode, in CREATE Mode there is no error Message at all. Removing Attribute Parameter leads to error message displayed but without reference to Field.

  METHOD /bobf/if_frw_validation~execute.
    CLEAR: eo_message, et_failed_key.

    DATA: it_example_data TYPE z_t_pmc_scen_auth,
          location        TYPE /bobf/s_frw_location,
          lo_cm           TYPE REF TO /bobf/cm_frw.

    io_read->retrieve(
      EXPORTING
        iv_node                 = zif_pm_c_scen_auth_c=>sc_node-zpm_c_scen_auth
        it_key                  = it_key
      IMPORTING
        eo_message              = eo_message
        et_data                 = it_example_data
        et_failed_key           = et_failed_key
    ).

    IF eo_message IS NOT BOUND.
      eo_message = /bobf/cl_frw_factory=>get_message(  ).
    ENDIF.

    LOOP AT it_example_data INTO DATA(line).

      "Error occured
      eo_message->add_message(
        EXPORTING
          is_msg       = VALUE #( msgid = 'ZCO' msgno = '002' msgty = 'E' )
          iv_node      = is_ctx-node_key
          iv_key       = line-key
          iv_attribute = zif_pm_c_scen_auth_c=>sc_node_attribute-zif_pm_c_scen_auth-auth_role
*      iv_lifetime  =

      ).
      APPEND VALUE #( key = line-key ) TO et_failed_key.
    ENDLOOP.
  ENDMETHOD.

Result in EDIT Mode:

casualCoder_0-1738527583670.png

Result in Create Mode with Attribute provided: SAVE is prevented but there is no error message at all.
Removing Parameter Attribute:

casualCoder_1-1738527660468.png

Is this a problem with used SAPUI5 Version? 

Accepted Solutions (0)

Answers (0)