Hi,
I'm working with Drop Down List in InfoPath Forms. The data source which i'm using is SQL Webservice which contains SQL stored procedures references.
I've followng tables
Countries (ID, CountryName)
Cities (ID, CountryID, CityName) >> CountryID has foreign key relationship with Counties(ID)
Then, I wrote 2 stored procedures.
SP1: CREATE PROCEDURE [dbo].[GetCountries] SELECT ID, CountryName from Countries
SP2: CREATE PROCEDURE [dbo].[GetCities] @CountryID int
SELECT ID, CountryID, CityName FROM Cities WHERE CountryID = @CountryID
I've created an Blank InfoPath form. Connected with webservice through Data Source.
Then, I dragged first Drop Down List Control named Country. Defined the stored procedure for the Drop Down and it's populating the data fine. (Value: ID, DisplayName: CountryName)
I dragged another Drop Down List for City. Defined the stored procedure. (Value: ID, DisplayName: CityName)
On preview, it is showing the values for Country but not for City. The intension is to filter the City drop down on the basis of Country selection
Can anyone please let me know how to filter the drop down in the infopath ?
Thanks