From 13120c3637227f4b517380c5baf5e2096ed56161 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:38:55 +0200 Subject: [PATCH] Fix binding (#1085) * fix binding * Update changelog.txt --- changelog.txt | 10 ++++++++++ src/01/02/01/z2ui5_cl_core_attri_srv.clas.abap | 17 ++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8aa7216f..98fccbdb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,16 @@ Legend + : added - : removed + +2024-04-17 v1.125.0 +------------------- + +* Binding Fixes for Attributes created with RTTI ++ XML View Extensions ++ Replace Magic Numbers and Fixes for Auto Renaming ++ Download base64 Files ++ Features for Interactive Charts + 2024-04-01 v1.124.0 ------------------- diff --git a/src/01/02/01/z2ui5_cl_core_attri_srv.clas.abap b/src/01/02/01/z2ui5_cl_core_attri_srv.clas.abap index 79c0c67a..958a4a51 100644 --- a/src/01/02/01/z2ui5_cl_core_attri_srv.clas.abap +++ b/src/01/02/01/z2ui5_cl_core_attri_srv.clas.abap @@ -45,15 +45,18 @@ CLASS z2ui5_cl_core_attri_srv IMPLEMENTATION. METHOD attri_after_load. LOOP AT mt_attri->* REFERENCE INTO DATA(lr_attri). + TRY. + lr_attri->r_ref = attri_get_val_ref( lr_attri->name ). + lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ). - lr_attri->r_ref = attri_get_val_ref( lr_attri->name ). - lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ). + IF lr_attri->srtti_data IS NOT INITIAL. + ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(). + = z2ui5_cl_util=>xml_srtti_parse( lr_attri->srtti_data ). + CLEAR lr_attri->srtti_data. + ENDIF. - IF lr_attri->srtti_data IS NOT INITIAL. - ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(). - = z2ui5_cl_util=>xml_srtti_parse( lr_attri->srtti_data ). - CLEAR lr_attri->srtti_data. - ENDIF. + CATCH cx_root. + ENDTRY. ENDLOOP. ENDMETHOD.