SharePoint UserProfile ChoiceList - 逗号对于选取器控件来说是无效字符?
我们在 MOSS 安装中的用户配置文件中存储了办公室地址字段。对于该字段,我想使用选择列表来限制用户选择地址格式正确的办公室。
办公室地址是办公室的完整地址(而不仅仅是人们可能使用的某种 ID) - 这样可以对值进行索引,然后搜索界面可以找到位于伦敦的每个人(例如)或“英国办事处”,因为这些是地址的一部分。到目前为止一切都很好,示例办公室地址可能是:
999 Letsbe Avenue, South Kensington, London SW1 1AA
我可以成功地将这个值添加到选择列表中,并且查看 UserProfile.ChoiceList 属性可以正确显示它。在“编辑配置文件”页面中查看它很好,选择器控件也正确显示该值。唯一的问题是,如果您尝试在选择器控件中选择它 - 假设双击它 - 该值不会传递到页面上的文本控件 - 相反,选择器会刷新并不显示任何值。
使用这些值表明,值中的逗号导致了选择器的问题,所以有没有人经历过这个问题并修复它/解决它,除了不使用逗号之外......
We are storing an office address field on a user profile in our MOSS installation. For the field I'd like to use a choice list to limit the user to selecting an office with the address in the correct format.
The office address is the full address of the office (rather than just an id of some kind as one might use) - this is so that the value can be indexed and the search interface can then find everyone based in London (for example) or 'UK Office' as these are part of the address. All good so far, an example office address might be:
999 Letsbe Avenue, South Kensington, London SW1 1AA
I can add this value to the choice list successfully and looking at the UserProfile.ChoiceList proprty shows it correctly. Looking at it in the Edit Profile page is fine, the picker control shows the value correctly too. Only problem is, if you try and select it in the picker control - let's say double click on it - the value isn't passed to the text control on the page - instead the picker refreshes and shows no values.
Playing with the values shows that it's the commas in the value that cause the problem with the picker, so has anyone experienced this and fixed it / worked around it with anything other than just not using commas...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这是我刚刚检查过的作品 - Unicode 字符“SINGLE LOW-9 QUOTATION MARK”(U+201A)。
只需要小心网站上使用的字体,以防其呈现奇怪的情况,但除非有“正确”的解决方案,否则它会解决它。
Ok, here's one I just checked works - Unicode Character 'SINGLE LOW-9 QUOTATION MARK' (U+201A).
just have to be careful with the font used on the site in case it's rendered oddly, but it'll workaround it unless there is a 'proper' solution.