on 02-11-2017 11:46 AM
Hi Friends,
when I use the code like below the Table shows the Pictures in the rows for this path
"name = http://25.media.tumblr.com/tumblr_llahls2IeS1qjmniro1_250.gif" or
"name = images/print.gif"
var oImage = new sap.m.Image(SFId, {
src : "{" + name + "}" ,
});
But it does not work for Icons like "name = sap-icon://group" . It only does not work in table. But then I use it for Buttons it works.
var icon = sap.ui.core.IconPool.getIconURI(name);
Any hints will be apreciated.
Rg.Joerg
Hello,
I think you dont need to put icon inside {}, you can check as below:
"name = sap-icon://group";
var oImage =newsap.m.Image(SFId,{
src :"+ name +" ,
});
OR,
you need to get that icon value in data itself, whether modify your data in UI or get data with icon from backend itself and bind image in table like below:
say you have iconValue field in your data
var oImage =newsap.m.Image(SFId,{
src :"{iconValue}" ,
});
Thanks,
Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.