Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

setting up default value for a lookup on user or team doesn't load user or team icon

$
0
0

Hi!

I'm populating a lookup with default values and team name gets passed. However, the default icons does not.Any advice?

var idval = data.value["0"]._ownerid_value;
var tval = data.value["0"]["_ownerid_value@OData.Community.Display.V1.FormattedValue"];

var towner = new Array();
towner[0] = new Object();
towner[0].id = idval;
towner[0].name = tval;
towner[0].entitytype = 'team';

Xrm.Page.getAttribute("ownerid").setValue(towner);
Xrm.Page.getAttribute("ownerid").setRequiredLevel("none");

then I get:

The team icon does not gets set 


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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