cancel
Showing results for 
Search instead for 
Did you mean: 

Expression Binding in SAPUI5 for contains

former_member243729
Participant
0 Kudos
1,935

Hi,

Is there a way we can use expression binding in XML view 'contains' condition ? Like if I want to check the property whether it contains 'R' in its value.

Below is the one we generally use for equals..

"{= ${Model>/Property} === 1}"

so anything similar like do we have for contains...."{= ${Model>/Property} 'contains' 1}" ??

View Entire Topic
Joseph_BERTHE
Active Contributor

hi,

Try this :

{= ${myVariable}.indexOf('R') >= 0}

Regards,

Joseph

former_member243729
Participant
0 Kudos

Thanks Joesph for the direction.