Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections - InfoPath Dev
in

InfoPath Dev

Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections

Last post 08-26-2008 11:48 PM by ZaiZai. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-26-2008 12:24 PM

    Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections

    Hello Everyone,

    I am wondering what the best way is for auto populating fields in a main data connection (SQL Server 2005) with values from secondary data connections (SQL Server 2005).  The fields from the secondary connections have many rows (some over 30K) and because of this I need to lessen the amount of rows in a control like a dropdown list box. 

    Here are the methods that I have studies so far.

    Method 1: Populating Fields After Selection With Search.

    Method 2: Populating Fields in main sql connection from filtering drop down lists connected to the secondary connection fields. 

    I would prefer method 1 over method 2.  My understand is the for method 1 to work, some coding is needed that effects the onclick event handler. Is this method the best way?  If so, can anyone provide me with the code that would do this? 

    Here are the details of the form.

    Main Data Connection: SQL Server 2005, Database is called "InfoPath". The table within the database is called ".dbo.Task List". 

    Secondary Data Connection: SQL Server 2005, Database is called "Person". The table within the database is called "dbo.Person". 

    Secondary Data Connection: SQL Server 2005, Database is called "Matter". The table within the database is called "dbo.Matter". 

    The goal: A user would type in a name and click a "Find" button which would search the secondary data connection table and auto populate the appropriate main data connection fields. 

    Any help would be appreciated. 

    Thanks.

    Matt

  • 08-26-2008 11:48 PM In reply to

    Re: Auto Populate Main Data Connection Fields From Secondary Connection Fields - Both SQL Connections

    After some additional research, I have concluded that perhaps this isn't the best way.  I have re-posted another question that I think is the best method in my situation.  If someone could verify this method that would be good.  Thanks.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.