显示目录中的全名 [英] Display FullName from directory

查看:101
本文介绍了显示目录中的全名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有用户选择器字段的表单,很简单.在我的表上,我想显示目录中用户的关联名称,而不是默认的用户电子邮件地址.有什么建议吗?

I have a form with a User Picker field, simple. On my table I want to display the associated name of the user from my directory, not their e-mail address like the default is. Suggestions?

谢谢!

推荐答案

按照

As per the official documentation, the onValueChange event will pass an object in the newValue. This object is the user record in the directory. From there you can get the full name by using this:

var fullName = newValue.FullName;

要使其正常工作,必须在属性编辑器中启用 valueIsRecord 选项,同时选择用户选择器小部件.

For that to work, in the property editor you have to enable the valueIsRecord option, while the user picker widget is selected.

这篇关于显示目录中的全名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆