Skip to Content
0

How to set the property label dynamic in sap gateway

Dec 16, 2017 at 05:00 AM

85

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Andre Fischer
Dec 17, 2017 at 08:03 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

0
Lokeswar Reddy Byni Mar 07 at 07:04 AM
0

Hello,

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

Thanks,

Lokeswar

Share
10 |10000 characters needed characters left characters exceeded
Jeroen Cosijnse Mar 06 at 07:53 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded