如何使定制领域(项目所有者)只读? [英] HOW TO MAKE CUSTOM FIELD(PROJECT OWNER) READ ONLY?

查看:99
本文介绍了如何使定制领域(项目所有者)只读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii所有人,

我附上了一个屏幕截图,我创建了一个 PDP 并将该PDP与 EPT相关联; 并在其中包含一些自定义字段,其中一个自定义字段为
所有者,用于选择项目所有者,我想进行自定义字段
只读,(因此用户无法更改默认所有者)如果有人知道任何想法,我们将非常感谢任何帮助

I have attached a screen shot below,i have created a PDP and associated that PDP with EPT and included some custom field in it,out of which one of the Custom Field is Owner,which is used to select the Project owner,i want to make that custom field Read-only,(so the user can not change default owner)if anyone has any idea.plz lemme know,any help will be greatly appreciated

推荐答案

我有完全相同的要求。不幸的是,没有简单的方法。所以我做了以下几点:

I had exactly the same requirement. Unfortunately there is no simple way. So I did the following:

- 创建了一个用于添加项目的Web部件(作为New Project PDP的替代品)。网络部分与原始PDP具有相同的字段,但显示所有者(当前用户)为只读。项目使用
PSI按代码添加到项目服务器。

- Created a web part for adding projects (as a replacement for the New Project PDP). The web part has the same fields as the original PDP, but shows the owner (the current user) read-only. The project is added to project server by code using the PSI.

- 从功能区中删除了"新建"按钮

- Removed the New button from the ribbon

- 在功能区中添加了我自己的"新建"按钮,该按钮显示包含我的自定义"添加项目"的页面。网页部分

- Added my own New button to the ribbon, that displays the page with my custom "Add project" web part

问候,

Ronny


这篇关于如何使定制领域(项目所有者)只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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