R
Rick Palmer
OK, check out this XML representations of my Dataset schema:
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
<ErrorInfo>
</PIAccounting>
When my program begins, the schema looks like this:
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
</PIAccounting>
....notice there is no ErrorInfo table...
I'm adding the ErrorInfo table later, but it's not adding like I want...
Here's what I am intending the final schema to look like:
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
<ErrorInfo>
</PIAccounting>
The "ErrorInfo" table is intended to be a child table of the "Transaction"
table.
Both tables are related by a field called "TransactionNo".
Here's What I'm doing:
I add the new "ErrorInfo" table to the dataset.
I add columns to the "ErrorInfo" table (one of which is the "TransactionNo"
field")
I add a new datarelation as follows:
ds.relations.add("Transaction_ErrorInfo",
ds.tables("Transaction").columns("TransactionNo"),
ds.tables("ErrorInfo").columns("TransactionNo")
That really looks like it sets up a parent-child relationship between the
two tables, but it doesn't. It doesn't do CRAP! It doesn't even generate
an error! It just stuffs the ErrorInfo table at the root level, which is
NOT what I want. What am I doing wrong here??????
-rp
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
<ErrorInfo>
</PIAccounting>
When my program begins, the schema looks like this:
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
</PIAccounting>
....notice there is no ErrorInfo table...
I'm adding the ErrorInfo table later, but it's not adding like I want...
Here's what I am intending the final schema to look like:
<PIAccounting>
<Transmittal>
<Transaction>
<PolicyInfo>
<PAInfo>
<Payments>
<ErrorInfo>
</PIAccounting>
The "ErrorInfo" table is intended to be a child table of the "Transaction"
table.
Both tables are related by a field called "TransactionNo".
Here's What I'm doing:
I add the new "ErrorInfo" table to the dataset.
I add columns to the "ErrorInfo" table (one of which is the "TransactionNo"
field")
I add a new datarelation as follows:
ds.relations.add("Transaction_ErrorInfo",
ds.tables("Transaction").columns("TransactionNo"),
ds.tables("ErrorInfo").columns("TransactionNo")
That really looks like it sets up a parent-child relationship between the
two tables, but it doesn't. It doesn't do CRAP! It doesn't even generate
an error! It just stuffs the ErrorInfo table at the root level, which is
NOT what I want. What am I doing wrong here??????
-rp