InfoPath Schema

B

best95

Ok, changing the way I'm thinking about this. I found out that the
binding that is taking place in infopath is binding to an XML Schema
file that represents the structure of the database. I still don't
think it's possible to bind to multiple fields whether it's coming
from and xsl file or directly from the database. So, I've decided to
see if it can be done another. We are still working with a custom
activex control and importing it into infopath. I am wondering if
it's possible to read the schema file in the code. Load it into an
XML doc, parse it, then present it to the user in my own way. All I'm
concerned with is that the users choices end up in the xml file after
the form is saved. I read something about IXMLDomDocument2 as being
able to load the schema file. I'm running into a problem with this
though. In the statement:

IXMLDOMDocument2 templateDom =
(IXMLDOMDocument2)thisXDocument.CreateDOM()

thisXDocument is supposed to be autogenerated. Since we aren't
creating the forms in Visual Studio for Office this isn't
autogenerated. I can create an instance of thisXDocument but it isn't
attached to anything. Anyway to associate that with the infopath form
that the control will eventually sit in? I realize this is lengthy
and seems like a backwards way of doing things but I'm going with the
design that was approved. Any help you can give me would be greatly
appreciated.

TIA,

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top