none
Cost custom field bug after CU update RRS feed

  • Question

  • I encountered an interesting behavior of custom "cost" fields on my PDP pages after September 2018 CU update.
    Lets say I have a cost field named "Budget" on one of my PDP pages for enterprise project types and when I check out the project and try to enter a value into the Budget field, it keeps finishing and then deleting my entry.

    If I try to enter a value of 15000 (€), system just takes the first one or two numbers (it actually depends on the speed of typing the number) and places the currency symbol at the end, other numbers are then written after the currency symbol (15,00€000) and the entry is deleted altogether. The only way to insert a value into the filed is to copy/paste the whole thing!

    Field is not workflow controlled, I'm in the role of administrator and other users experience the same thing. I also tried to change the value in MS Project 2016 (Project Information) and no such behavior is experienced there.
    Sharepoint 2013/PWA is installed on premises.

    Tuesday, October 23, 2018 11:27 AM

Answers

  • Yes, the problem was solved in December CU.
    I checked, everything is working correctly now.

    https://blogs.technet.microsoft.com/projectsupport/p/ps13cu/

    "This update fixes the following issues when you work in Project Detail Pages (PDPs):

    • You can't type multiple digits in a cost type field. Therefore, the Cost value is not displayed as expected.
    • If you can select lookup table values from fields that have lookup tables associated with them, when you save the project and then come back to it, the values that you selected earlier were not saved."


    • Marked as answer by Zox88 Saturday, March 9, 2019 10:43 AM
    Wednesday, January 9, 2019 6:23 PM

All replies

  • I have the same problem. I found what might cause it, but I do not know where to find the .js file to change it. The field in PDP pages has in Project Server 2013 handlers .oninput, but in Project Server 2010 ProjectFieldInfo is .onchange

    Project Server 2010 CU December 2014:

    if (typeof(ProjectFieldInfo)!='undefined') {

                for (var i = 0; i < ProjectFieldInfo.length; i++)
                {
                   if (ProjectFieldInfo[i].attributes["GUID"].nodeValue == '9d77d62a-a92e-4d40-adc8-446c90eb7456')
                   {
                      ProjectFieldInfo[i].onchange = function() {this.style.color=''; WPDP_ctl00_m_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true;DepartmentalCF.SetDepartment(this.attributes["LTValue"].nodeValue); }
                   }
                   else if (null != ProjectFieldInfo[i].attributes["ConvUpdatePrefix"])
                   {
                      ProjectFieldInfo[i].onchange = function() {this.style.color=''; WPDP_ctl00_m_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true;WebForm_DoCallback('ctl00$m$g_77998c52_f4e7_4890_b583_e24b24461305',this.attributes["ConvUpdatePrefix"].nodeValue + this.value,PDP_ProjectField.TextConversionCallback,null,null,false) }
                   }
                   else
                   {
                      ProjectFieldInfo[i].onchange = function() {this.style.color=''; WPDP_ctl00_m_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true; }
                   }
                   ProjectFieldInfo[i].onfocus = function() { PDP_ProjectField.PDPMethods().StoreFocus(); }
                }
             }

    Project Server 2013 CU October 2018:

      if (typeof(ProjectFieldInfo)!='undefined') {

                for (var i = 0; i < ProjectFieldInfo.length; i++)
                {
                   if (ProjectFieldInfo[i].attributes["GUID"].nodeValue == '9d77d62a-a92e-4d40-adc8-446c90eb7456')
                   {
                      ProjectFieldInfo[i].oninput = function() {this.style.color=''; WPDP_ctl00_ctl41_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true;DepartmentalCF.SetDepartment(this.attributes["LTValue"].nodeValue); }
                   }
                   else if (null != ProjectFieldInfo[i].attributes["ConvUpdatePrefix"])
                   {
                      ProjectFieldInfo[i].oninput = function() {this.style.color=''; WPDP_ctl00_ctl41_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true;WebForm_DoCallback('ctl00$ctl41$g_77998c52_f4e7_4890_b583_e24b24461305',this.attributes["ConvUpdatePrefix"].nodeValue + this.value,PDP_ProjectField.TextConversionCallback,null,null,false) }
                   }
                   else
                   {
                      ProjectFieldInfo[i].oninput = function() {this.style.color=''; WPDP_ctl00_ctl41_g_77998c52_f4e7_4890_b583_e24b24461305.IsDirty = true; }
                   }
                   ProjectFieldInfo[i].onfocus = function(event) { var eventTarget = (window.event != null) ? window.event.srcElement : event.target; PDP_ProjectField.PDPMethods().StoreFocus(eventTarget); }
                }
             }

    Friday, October 26, 2018 5:16 AM
  • Anyone found solution for this?
    Thursday, November 29, 2018 7:18 AM
  • Yes, the problem was solved in December CU.
    I checked, everything is working correctly now.

    https://blogs.technet.microsoft.com/projectsupport/p/ps13cu/

    "This update fixes the following issues when you work in Project Detail Pages (PDPs):

    • You can't type multiple digits in a cost type field. Therefore, the Cost value is not displayed as expected.
    • If you can select lookup table values from fields that have lookup tables associated with them, when you save the project and then come back to it, the values that you selected earlier were not saved."


    • Marked as answer by Zox88 Saturday, March 9, 2019 10:43 AM
    Wednesday, January 9, 2019 6:23 PM
  • Hey TobiaszWi,

    I installed february 2019 update and the bug is now fixed! Thank you for your answer.


    • Edited by Zox88 Saturday, March 9, 2019 10:45 AM
    Saturday, March 9, 2019 10:45 AM