diff --git a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs index a00c0b63..a720cd45 100644 --- a/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs +++ b/PROMS/ReferencedObjects/LibSource/RODBInterface/RODBInterface.cs @@ -2680,8 +2680,8 @@ namespace RODBInterface // Generic definition, i.e. all Groups, and No updates only Local definition, i.e. just this Group Added a // Cancel button to Cancel from this dialog and return to previous dialog. Added more information to the // dialog to inform user of this - string dmsg = "Update Generic definition?\r\n\r\n Yes - updates Generic definitions, \r\n No - updates Local definitions, \r\n Cancel - returns to previous dialog." + - "\r\n\r\n 'Generic' updates definition in ALL groups that use the name\r\n 'Local' updates definition only in the selected group."; + string dmsg = $"Update Generic definition?\r\n\r\n Yes - updates Generic definitions, \r\n No - updates Local definitions, \r\n Cancel - returns to previous dialog." + + $"\r\n\r\n 'Generic' updates definition in ALL groups that use the name\r\n 'Local' updates definition only in the selected group, and will change the definition for all items in that table ({GetTopParentName(myelem)})."; System.Windows.Forms.DialogResult result = MessageBox.Show(dmsg, "Referenced Object Definition", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (result == DialogResult.Cancel) return false; if (result == DialogResult.No) changegeneric = false; @@ -2786,6 +2786,19 @@ namespace RODBInterface return success; } + //CSM-C2024-030 + //Explain that Local is local to that table (and include Table name in wording displayed to user) + public string GetTopParentName(VlnXmlElement elem) + { + VlnXmlElement nodetocheck = elem; + while (nodetocheck.GetAttribute("ParentID") != "00000000" && nodetocheck.ParentNode != null) + { + nodetocheck = (VlnXmlElement) nodetocheck.ParentNode; + } + + return nodetocheck.GetAttribute("MenuTitle"); + } + public override XmlSchema RODB_GetGroupSchema(VlnXmlElement elem) { XmlSchema myschema;