Sharing dataset with multiple dataTable

A

Andrea

I have a problem when connect infopath form with dataset composed by many
datatables with relationship.
If i filter one datatable with select method that filter does not effect on
the table connected with relationship. There's a way to filter the other
datatable connected with relationship?
I use the tabledataadapter to fill datatable in dataset.
Regards
Andrea
 
F

Frederik Van Lierde

Data Connections, and there Relastionships will not be used when you
connnect this data connection to the controls.

On the first control you connect to the data connection as normall
The second control who wants to show data, depending on the first
control,
- go to the properties,
- select Look up values from a external datasource
- Select the data you want o show (Entries text box)
While doing this you will get a dialog box with the data sources,
also a button with Filter Data
So you need to add a filter.

Pay remark the following text when adding this filter

When using this filter you want to say the following

SELECT [SecondField] FROM [DataSource] WHERE [FK_SecondField] =
[Selected Item in First Control]

[Selected Item in First Control] will not be in the create data
source, but in the Main Source, as the data fillined by the user is
stored in the Xml behind the form (= Main Data Source)

So the filter:
Foirst dropdown: Select theField from the create datasourve
Second dropdown "Is Equal to"
Third dropdown: Selected field or group, Change the data source to
Main Data Source, select the field who is binded to the first
control;

I hope this helps
I will write a more detailed article the next week about this on my
Blog.
Also this way will not work with InfoPath Form Services, please have a
look at my whitepaper about wich features works with wich version of
InfoPath.

Frederik Van LIerde
http://www.SilverSandsAssociates.com
http://BlueInfoPath.blogspot.com
 
A

Andrea

The data are filter in webservices code, with select table method, not in
infopath.
My question is why the relate table in the dataset, show by webservices, are
not filter in agree with the master table.

Andrea
"Frederik Van Lierde" <[email protected]> ha scritto nel
messaggio
news:9a4ed0d8-a892-479a-be9a-7ba402f4511b@j68g2000hsf.googlegroups.com...
 

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