|
Info provided by Paul:
This problem is closely related with the unique logic that is used for field "changeprojectstatus"of the WAD process. Due to that, there is a lack of some code in class MultiphaseProject.java (same as for "ServiceProject.java") to show that label.
For example, the following code could be used in my opinion:
xmlDocument.setParameter("ChangeProjectStatus_BTNname", Utility.getButtonName(this, vars, "803670", "ChangeProjectStatus_linkBTN", usedButtonShortCuts, reservedButtonShortCuts));
some where in method printPageEdit().
Therefore, a parameter should appear in the "MultiphaseProject_Edition.xml" file.
This, in turn, leads us to the class WADButton.java or rather to an adjustment of methods "WADButton.toJava()" and "WADButton.toXml()".
To save stability of code and fix this bug, my proposition is to add some code for this condition :
getData("ColumnName").equalsIgnoreCase("ChangeProjectStatus")
For method WADButton.toJava() the additional code could be:
if (getData("IsDisplayed").equals("Y") && getData("ColumnName").equalsIgnoreCase("ChangeProjectStatus"))
return "xmlDocument.setParameter(\""
+ getData("ColumnName")
+ "_BTNname\", Utility.getButtonName(this, vars, \""
+ getData("AD_Field_ID")
+ "\", \""
+ getData("ColumnName")
+ "_linkBTN\", usedButtonShortCuts, reservedButtonShortCuts));";
For the method WADButton.toXml():
if (getData("IsDisplayed").equals("Y")
&& getData("ColumnName").equalsIgnoreCase(
"ChangeProjectStatus")) {
text.append("<PARAMETER id=\"").append(getData("ColumnName"))
.append("_BTNname\" name=\"").append(
getData("ColumnName")).append(
"_BTNname\" default=\"\"/>\n");
} |
|