Skip to main content

Posts

Showing posts with the label Project Server 2010

Project Server Read only Custom Fields (Javascript)

PROJECT SERVER - Make Custom Fields Read Only The fields on the PDPs (Project Detail Pages) is always editable unless you make them read only in a workflow stage or use the calculated field as suggested in my other post: http://technicaltrix.blogspot.dk/2014/09/project-server-read-only-custom-fields.html If you want to make a custom field read only without using aditional custom fields you have to do it through Javascript. In the following i will explain how we can make custom fields read only through Javascript. Insert a Content Editor webpart to the PDP page where the field you have the field that should be made read only. Select the webpart and from the ribbon select HTML->Edit HTML Source. Copy/Paste the following code into the Content Editor webpart. < script type = "text/javascript" > function makeReadOnly() { var elements=document.body.getElementsByTagName( "INPUT" ); for (index=0; index < elements.length;++inde...

Project Server Read Only Custom Fields

There are multiple ways to create read only custom fields in Project Server 2007/2010/2013. The most common way is through Javascript and a Content Editor Web part (see: http://technicaltrix.blogspot.dk/2014/10/project-server-read-only-custom-fields.html ). Another more simple way is to use the build in custom fields in Project Server. The downside in this solution is that it is not as flexible as the javascript solution, however it can easily solve the most common scenarios. Read only custom field - through standard functionality Assume we have a custom field "Project SAP Number", this field is maintained by the PMO and we do not want the project managers to change it. We would then create a new calculated custom field. Go to the PWA and navigate to Server Settings->Enterprise Custom Fields and Lookup Tables. Click on New Field. Name the new field "Project SAP Number (Read Only)" and select "Project" in Entity, "Text" in Type and ...