Skip to Content
0
Former Member
Apr 21, 2004 at 01:44 PM

SDK/UI - loading form using xml - edit xml

125 Views

Hi,

I hope anybody can help me to solve this problem.

Tjis is my (working) code:

Dim oXMLDoc As MSXML2.DOMDocument

Set oXMLDoc = New MSXML2.DOMDocument

oXMLDoc.Load ("myXMLFile...")

SBO_application.LoadBatchActions (oXMLDoc.xml)

Set frm = SBO_application.Forms.Item("FormUID")

frm.Visible = True

So far this worked fine.

After I changed the form Title in the xml-file (I used XMLSpy) or the FormUID or deleted an item a.s.o. it didn't work anymore. So i catched the result (errors or warnings)of LoadBatchActions with SBO_application.GetLastBatchResults. The error is:

<?xml version="1.0" encoding="UTF-16"?><result><errors><error code="-7040" descr="XML - Cannot load from string"/><error descr="Could not recover from previous errors"/></errors></result>

Do someone knows what that means.

Strange is that when I edit the srf- file in a text-editor then it works.??