B2026-016 Fix Error Approving a Procedure without ROs set
This commit is contained in:
@@ -1618,8 +1618,15 @@ namespace VEPROMS
|
||||
|
||||
public void ExportItem(XmlDocument xd, ItemInfo ii, string nodename)
|
||||
{
|
||||
XmlElement xe = xd.CreateElement(nodename);
|
||||
if (ii.IsProcedure)
|
||||
//B2026-016 - Fix error pulling Reference Object info into Export
|
||||
if (ii.MyDocVersion.DocVersionAssociationCount == 0)
|
||||
{
|
||||
MessageBox.Show("Prior to Exporting Procedures you must set the Referenced Object Database", "No RO Database set", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
XmlElement xe = xd.CreateElement(nodename);
|
||||
if (ii.IsProcedure)
|
||||
{
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "rodbid", ii.MyDocVersion.DocVersionAssociations[0].MyROFst.MyRODb.RODbID.ToString()));
|
||||
xe.Attributes.SetNamedItem(AddAttribute(xe.OwnerDocument, "rofolderpath", ii.MyDocVersion.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
|
||||
Reference in New Issue
Block a user