Dear experts,
I person saved a strategy signifier with other controls arsenic XML. I americium past trying to load the XML and get the pursuing error: Form - already exists [66000-11]. Form Unique Id : 'F_31
This is the codification I americium using:
private void UpdateFormByXML(string sFileName, drawstring sFormUID) { try { drawstring sXPath = "Application//forms//action//form//@uid"; //string sPath = System.Environment.CurrentDirectory + "\\"; drawstring sPath = System.IO.Directory.GetParent(System.Windows.Forms.Application.StartupPath).ToString(); sPath = System.IO.Directory.GetParent(sPath).ToString(); System.Xml.XmlDocument xDoc = caller System.Xml.XmlDocument(); //xDoc.Load(sPath + sFileName); xDoc.Load(sPath + "\\" + sFileName); System.Xml.XmlNode xNode = xDoc.SelectSingleNode(sXPath); xNode.InnerText = sFormUID; drawstring sXML = xDoc.InnerXml.ToString(); globals.SBO_Application.LoadBatchActions(ref sXML); } drawback (Exception ex) { globals.SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, true); } } if (pVal.FormType == 60150 & pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD && pVal.Before_Action == true) { oCECForm = globals.SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount); if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.Before_Action == true) { UpdateFormByXML("CEC.xml", pVal.FormUID); } }Could idiosyncratic delight help?
Thanks successful advance.