From 9e90a307c1610f465aecd8af1c04baf2b627fd7e Mon Sep 17 00:00:00 2001 From: sandraros <34005250+sandraros@users.noreply.github.com> Date: Mon, 27 Dec 2021 21:54:21 +0100 Subject: [PATCH] Demo WebDynpro: ICF, button text, MIME type (#928) * * add ICF Service to demo webdynpro * WDA MIME application/vnd.openxmlformats-officed... * * empty button text -> text "download" * Custom "download" OTR text for Demo WDA * Demo WDA button text Download dynamically (no OTR) (to overcome issue https://github.com/abapGit/abapGit/issues/5232) Co-authored-by: sandraros Co-authored-by: Abo --- ... 89d0c0ce8687b56786306d6dd.sicf.xml | 18 +++++++++++ src/demos/zdemo_excel_wda01.wdyn.xml | 30 ++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/demos/npl0018 89d0c0ce8687b56786306d6dd.sicf.xml diff --git a/src/demos/npl0018 89d0c0ce8687b56786306d6dd.sicf.xml b/src/demos/npl0018 89d0c0ce8687b56786306d6dd.sicf.xml new file mode 100644 index 0000000..000f545 --- /dev/null +++ b/src/demos/npl0018 89d0c0ce8687b56786306d6dd.sicf.xml @@ -0,0 +1,18 @@ + + + + + /sap/bc/webdynpro/sap/NPL0018/ + + NPL0018 + NPL0018 + ZDEMO_EXCEL_WDA01 + + + NPL0018 + E + Web Dynpro Application ZDEMO_EXCEL_WDA01 / Component ZDEMO_EXCEL_WDA01 + + + + diff --git a/src/demos/zdemo_excel_wda01.wdyn.xml b/src/demos/zdemo_excel_wda01.wdyn.xml index 56c56ce..6f98b46 100644 --- a/src/demos/zdemo_excel_wda01.wdyn.xml +++ b/src/demos/zdemo_excel_wda01.wdyn.xml @@ -176,6 +176,13 @@ A IMAGE_IS_DECORATIVE + + ZDEMO_EXCEL_WDA01 + V_MAIN + BTN_DOWNLOAD + A + TEXT + ZDEMO_EXCEL_WDA01 V_MAIN @@ -1112,7 +1119,7 @@ V_MAIN ONACTIONBTN_DOWNLOAD 29 - i_mime_type = 'EXCEL' + i_mime_type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ZDEMO_EXCEL_WDA01 @@ -1290,6 +1297,27 @@ V_MAIN WDDOMODIFYVIEW 2 + DATA lo_button TYPE REF TO cl_wd_button. + + + ZDEMO_EXCEL_WDA01 + V_MAIN + WDDOMODIFYVIEW + 3 + lo_button ?= view->get_element( id = 'BTN_DOWNLOAD' ). + + + ZDEMO_EXCEL_WDA01 + V_MAIN + WDDOMODIFYVIEW + 4 + lo_button->set_text( 'Download' ). + + + ZDEMO_EXCEL_WDA01 + V_MAIN + WDDOMODIFYVIEW + 5 endmethod.