Skip to Content

How to set the property label dynamic in sap gateway

Currently, we are facing the issue related to export the UI5 table content into an excel by accessing back-end gateway serivce by adding "format=xlsx". For now, the text for column is fixed and inherited from property label maintained in back-end. We want to set the property label dynamically based on certain template so that the excel column text can be changed correspondingly.

Does anyone have any solution for this issue?

Thanks in advance.

Best Regards,

Zac

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 17, 2017 at 08:03 PM

    With UI5 1.50 there is a new function available so that the ui5 app creates the excel.

    Here formatting and column descriptions used on the ui5 app are present in the downloaded excel.

    Best regards

    Andre

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks a lot for your attention on this question.

      I also know that the functionality of exporting to an excel is available from 1.50 version.

      But my case is 1.38.

      Best Regards.

      Zac

  • Mar 07 at 07:04 AM

    Hello,

    Redefine MPC_EXT method and check the below method set_label_from_text_element().

    Thanks,

    Lokeswar

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06 at 07:53 AM

    Hi Zac,

    We have the same requirement - show dynamic labels (for example the last 10 weeks - the quantity - so we want dates instead of week01 etc.).

    I have struggling with the redefinition of define methode but nothing works sofar.

    Did you already manage to solve this ?

    Regards,

    Jeroen

    Add comment
    10|10000 characters needed characters exceeded