cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the property label dynamic in sap gateway

0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member470015
Discoverer
0 Kudos

Hi Zac,

Can u explain how you resolved this

Lokes
Participant
0 Kudos

Hello,

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

Thanks,

Lokeswar

former_member226070
Participant
0 Kudos

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

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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