Skip to Content
author's profile photo Former Member
Former Member

SDK/UI - loading form using xml - edit xml

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.??

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2004 at 03:47 PM

    Hi,

    I tried your scenario and could not recreate the problem.

    This can be grouping problem or any other problem that relates to XML validation.

    I'll need to see your XML file in order to try and recreate your problem. a specific code that handles this load might be good as well.

    Please send it to me at Yaniv.Gamliel@SAP.com

    Regards,

    Yaniv G.

    SDK Support,

    SAP Manage Israel.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.