SharePoint Online:下​​拉列表是根据用户动态填充的 [英] SharePoint Online: Dropdown list is dynamically populated based on Users

查看:97
本文介绍了SharePoint Online:下​​拉列表是根据用户动态填充的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在SharePoint Online上创建网站,其中将包含讨论板.
我的要求如下:

1.是否可以自定义讨论板以不同的方式显示?

2.我可以在此讨论区中添加一列下拉列表吗?

3.我希望下拉菜单中的值(下拉菜单项)将根据用户角色进行更改.这意味着员工可以看到某些项目,而管理员可以看到所有项目.

I wanted to create site on SharePoint Online which will have discussion board in it.
My requirement is as follows:

1. Is it possible to customize discussion board to look in different way?

2. Can I add one extra column of type Drop-down to this discussion board?

3. I want the values (dropdown item) in the Dropdown will change as per user role. That means Employee can see some items where Admin can see all items.

推荐答案

SharePoint在线目前仅支持沙盒解决方案.意思是,不支持任何需要访问文件系统的内容,例如添加自定义应用程序页面和GAC部署的程序集.定制的含义很模糊.您可以使用SPD为讨论列表自定义allitems.aspx页面,但是其他方法可能需要配置listview Webpart或创建自定义Webpart.

您始终可以在内容类型中添加一列.但是,根据角色使用不同的值填充下拉列表将需要自定义代码,也许是自定义字段类型.
SharePoint online only supports sandbox solutions at this time. Meaning, anything that requires access to the file system, such as adding custom application pages and GAC deployed assemblies is not supported. What you mean by customize is rather nebulous. You can use SPD to customize the allitems.aspx page for the discussion list, but other methods may require configuring the listview webpart or creating a custom webpart.

You can always add a column to the content type. However, having dropdown populated with different values based on the role will require custom code, perhaps a custom field type.


Hi Mark,
非常感谢您的答复.

您始终可以在内容类型中添加一列.但是,根据角色使用不同的值填充下拉列表将需要自定义代码,也许是自定义字段类型.

按照上述说明,我可以通过创建自定义代码将下拉列表添加到讨论"列表中.您能为此提供示例代码吗?

我想从同一服务器场中的不同网站集中而不是从任何文件系统中填充下拉列表中的值.那么可以通过执行自定义代码来实现这一点吗?
Hi Mark,
Thank you very much for your reply.

You can always add a column to the content type. However, having dropdown populated with different values based on the role will require custom code, perhaps a custom field type.

As per the above statement I can add Drop-down coumn to Discussion borad list by creating custom code. Can you please provide me sample code for this?

I want to populate values in Dropdown list from different site collections in same Farm and not from any file system. So is it possible to achive this by doing custom code?


这篇关于SharePoint Online:下​​拉列表是根据用户动态填充的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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