Excellent! I tried this out on some remote instance data, and it seemed to be just the ticket. I think the problem I was encountering before was that I wasn't reloading the form after I added the instance data - this seems to be key.
Any ideas on how one might be able to automate this via a macro or some such script? InfoPath can download some instance data and automatically load the appropriate form and fill it in with the instance data. I need to be able to duplicate this behavior as closely as possible in OO. The project I'm working on is for OpenMRS (http://openmrs.org), an open-source medical record system for treating AIDS and TB patients in developing countries. They currently use InfoPath for their data entry needs, and I'm migrating them to OO's XML Forms instead. Any help we could get from OO developers would be much appreciated. My project blog is at http://compiler- error.blogspot.com Thanks again, -Matthew Harrison Quoting Lars Oppermann <[EMAIL PROTECTED]>: > Yes, initializing an instance from a remote location is possible (given > that that location is reachable). > > The dialog that you mention has a "link" check-box. If you link the > instance, it will be retrieved every time the document is loaded. If you > leave it unchecked, the external instance will be copied into the > document and stored there. In case of a document internal instance, > changes that a user makes to the instance data via bound form controls > will be persisted with the document when it is saved. > > When you bind a form control to a node in the data navigator, the > pre-filling that you mention should work. The easist way of creating > such a binding is to drag the node from the navigator onto the document... > > Bests, > Lars > > [EMAIL PROTECTED] wrote: > > I've tried OO Users and Writer Users list with this question, and both > directed > > me here. Hopefully someone can help me... > > > > Does anyone know if OO is capable of getting XML forms instance data from a > > remote source? MS InfoPath is capable of loading XML data into a form and > the > > forms are filled out with pre-defined values. In OO, I've noticed there is > the > > option to add instance data, and the window that pops up asks for a name > and a > > URL, which I take to mean remote or local. There's a browse button for > local > > data, and it gets added to the data navigator, but I can't seem to get it > to > > pre-fill the forms. > > > > Example: In my schema, I have <person> <name/> </person>. I want to be > able to > > load up a file containing <person> <name>Matthew Harrison</name></person> > and > > have the "Name" field on my form filled out with that value. > > > > -Matthew Harrison --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
