cancel
Showing results for 
Search instead for 
Did you mean: 

MDK - how to concatenate string and OData value while binding to display it

ranjith_kumar89
Participant
0 Kudos

Hi All,

I'm trying to bind the static string along with the OData value in object table. But it not working. will the concatenation work like this. In the attachment you can see the footnote, trying for this kind of result. Did I made any mistake in the below image?

Thanks

Ranjith

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Ranjith,

We are working on supporting a simplified binding syntax in our next release which should allow that exact value to work as expected. In the meantime, you can use the Binding Target Path syntax in the Object Browser to achieve your result. Here is what your Footnote value should look like.

Schedule Finish Date: {{#Property:ScheduleFinishDate}}

Answers (3)

Answers (3)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

Update:

With MDK 4.3 release, we now supports simplified binding syntax.

E.g. below syntax

Schedule Finish Date:{{#Property:ScheduleFinishDate}}

can be rewritten as:

Schedule Finish Date:{ScheduleFinishDate}
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

You need to use it Schedule Finish Date: {{#Property:ScheduleFinishDate}} as dynamic target path.

https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started...

ashishjain14
Employee
Employee
0 Kudos

The concatenation would work unless you have manually inserted a newline character between ScheduleStartDate and Schedule Finish Date. Even in this case you should still see ScheduleStartDate.

The footnote would ideally wordwrap by itself when the content goes beyond a certain limit. In this case you can try to manually insert space between ScheduleStartDate and ScheduleFinishDate and then you should be able to see the content in 2 lines.