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

"AutoManaged" property for a form

Hey all,

I was having a problem getting a Screen Painter generated form (.srf file) to load in my application. I kept getting a "Form - Invalid" error. I then compared the XML with a form sample from the SDK. The only difference was the property "AutoManaged". Once I switched the value to "1", the form loaded fine.

Can anyone explain to me what the "AutoManaged" property is for and why it would cause this problem? Thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2005 at 07:22 PM

    Guess I spoke too soon. I went back into the Screen Painter and made some additional modifications to the layout. I save the .srf file and tried to run it from .NET and it now gives me the same "Form - Invalid" error. The "AutoManaged" doesn't seem to affect it now.

    What's going on here?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 07:52 AM

    Hi,

    that identifier has the form?, if the identifier starts with F_ you have this error, because the system use this identifier for this forms and you can't use it.

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks for the responses. I had checked my naming conventions and they were not the problem. In the end, I deleted my LoadFromXML sub and started from scratch using a slightly different method. There must have been something in the way I was calling the XML the first time around.

      Anyway, once I re-wrote that code, it worked. Weird. FWIW, here's the code that worked:

      Private Sub LoadFromXML(ByRef FileName As String)

      Dim oXmlDoc As Xml.XmlDocument

      oXmlDoc = New Xml.XmlDocument

      '// load the content of the XML File

      Dim sPath As String

      sPath = IO.Directory.GetParent(Application.StartupPath).ToString

      oXmlDoc.Load(sPath & "\" & FileName)

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

      SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)

      End Sub

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.