Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Conditional Icon in BindAggregation (ODataModel)

$
0
0

When I need different icons in a list, I use an extra parameter "icon" in my datamodel, and I decide which icon should be used in my backend. So in my ABAP code.

 

e.g.

IF ...

     icon = 'images/error.png'.

ELSE

     icon = 'images/accept.png'

ENDIF.

 

 

--> {response.icon}

 

 

This means I download some icons and put them in my images folder in my WebContent (front-end).

 

 

Anyways, it looks like Ajain Vivek's solution is way more efficient


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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