Skip to Content
0
Former Member
Jun 08, 2009 at 03:56 AM

Form - Invalid UDO Object when call LoadBatchActions method.

970 Views

Hi

I created a form by screen painter,then using LoadBatchActions method to add the form.

code source:

-


Assembly thisExe;

Stream file;

System.Xml.XmlDocument oXmlDoc = null;

oXmlDoc = new System.Xml.XmlDocument();

try

{

thisExe = Assembly.GetExecutingAssembly();

file = thisExe.GetManifestResourceStream("PickAndPack." + FileName); // FileName = pickList.xml

oXmlDoc.Load(file);

// load the form to the SBO application in one batch

string sXML = oXmlDoc.InnerXml.ToString();

// sXML = oXmlDoc.OuterXml.ToString();

SBO_Application.LoadBatchActions(ref sXML);

}

catch (Exception ex)

{

SBO_Application.StatusBar.SetText(ex.ToString(), BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error);

}

-


when user A logged in SBO,run successfully.

but when user B logged in SBO,have a errror:"Form - Invalid UDO Object. Form Unique Id: 'pickList', User Defined Object : '22'" '22' is a button on the form.

SBO version is 2005.

In trouble with the question, I don't konw where is wrong.

Wish experts to help me.

Thanks.