Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Expression Binding in Standard List Item: Icon Change

$
0
0

Dear Experts,

 

I am attempting to use the expression binding to change the icon of list items based on the text supplied to a standard list item as below:

<StandardListItem        title = "{userlist>username}"        icon = "{= ${userlist>username}.toUpperCase()==='ALL' ? {i18n>UserPath} : {i18n>UserPath}}"        iconDensityAware="false"        iconInset="false"        type = "Navigation"        press= "onItemSelect"        />

The username field has to be evaluated and based on the same icon has to be changed.

Here

UserPath = sap-icon://customer

I tried different expressions as below:

icon = "{= ${userlist>username}.toUpperCase()==='ALL' ? 'sap-icon://customer' : {i18n>UserPath}}"
 icon = "{= ${userlist>username}.toUpperCase()==='ALL' ? ${i18n>UserPath} : ${i18n>UserPath}}"

etc....


The icon is not displayed at all.


Please assist.


Thanks in advance.


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>