Merge pull request 'C2024-030 RO Editor Enhancement to include table name / explain the scope of changing a field definition Local vs Generic' (#441) from C2024-030 into Development
good for testing phase
This commit is contained in:
commit
df9d0f908a
@ -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
|
// 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
|
// Cancel button to Cancel from this dialog and return to previous dialog. Added more information to the
|
||||||
// dialog to inform user of this
|
// 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." +
|
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.";
|
$"\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);
|
System.Windows.Forms.DialogResult result = MessageBox.Show(dmsg, "Referenced Object Definition", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
|
||||||
if (result == DialogResult.Cancel) return false;
|
if (result == DialogResult.Cancel) return false;
|
||||||
if (result == DialogResult.No) changegeneric = false;
|
if (result == DialogResult.No) changegeneric = false;
|
||||||
@ -2786,6 +2786,19 @@ namespace RODBInterface
|
|||||||
return success;
|
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)
|
public override XmlSchema RODB_GetGroupSchema(VlnXmlElement elem)
|
||||||
{
|
{
|
||||||
XmlSchema myschema;
|
XmlSchema myschema;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user