How can an XML file be used in a master-detail relationship?

How can an XML file be used in a master-detail relationship?

Post by Qm93aWV » Tue, 15 Jan 2008 18:28:01


Hi,

The question "Can an XML file be used as the master-detail relationship?"
was posed by "rhrempel" to which "S.Y.M Wong-A-Ton" responded.

In their exchange both spoke about setting up the XML correctly for
"master-detail"
relationship to work in InfoPath.

My question is how do you "correctly" define the XML? Does it mean that I
have to repeat the master key field in the detail portion of the XML?

Basically what I want is to be able to recall master-detail information that
was saved in SQL Server back into an InfoPath form so that it can be updated.
I use Web Services to interact with SQL Server. Once I return the data set it
is available to me InfoPath but I need a means of populating the detail
repeating section each time the master is altered.

Here is a snippet of an XML that I am using:
----
<report>
<department>A</department>
<departpmemtn>
<introductions>
<introduction seq=1.0>texttextext</introduction>
<introduction seq=2.0>texttextext</introduction>
<introduction seq=2.0>texttextext</introduction>
<introductions>
<issues>
<issue seq=1.0>texttextext</issue>
<issue seq=2.0>texttextext</issue>
<issues>
</report>
--

I need to relate the department to the introductions and the issues. In the
form, I have a list of department that when selected must display al the
introductions and the issues stored in this XML in two separate repeating
tables. How do I link the master table containing the list of departments to
the detail table(s)? Do I have to add the department field in the form (and
the XML) ?
Regards,
Bowie M

--
Regards,
Bowie M
 
 
 

How can an XML file be used in a master-detail relationship?

Post by Q2xheSBGb3 » Tue, 15 Jan 2008 23:40:01

Hi Bowie.

I have not tried a master detail in XML, but definetily I would assume you
would need all of the data relationships to be available in the dat in the
same way as if it was in a database.

My question if you have SQL, why don't you use the data from there instead
of adding another step with the XML?
This seems like a lot of work when the data is in your database already and
can be manipulated there.

Have you looked at the Database Accelerator package from
http://www.yqcomputer.com/ ?
It allows queries and submits to your database directly.

--
Thanks

Clay Fox

Qdabra Software
http://www.yqcomputer.com/

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.yqcomputer.com/

 
 
 

How can an XML file be used in a master-detail relationship?

Post by Qm93aWV » Wed, 16 Jan 2008 19:26:01

i Clay,

The data I am working with is not structured; storing it into a SQL Server
database that does not support Object Oriented DB is a nightmare. Without
normalising I'm looking at a hundren fields or so; with normalising, the
number or "relationship" tables may eclipse the number of tables storing the
data. So storing the data I'm working as an XML within the a single XML Type
field was my best option.
--
I'll look t the qdbra site.

Thanks & Regards,
Bowie M


"Clay Fox" wrote:

 
 
 

How can an XML file be used in a master-detail relationship?

Post by Q2xheSBGb3 » Thu, 17 Jan 2008 01:14:03

aster / Detail relies on relationship as well so if your relationships are
complex then I think you would be facing the same challenges in XML creating
relationships as you would in SQL.

Probably no easy solution for complex data.
--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com


"BowieM" wrote: