List Box and SQL Data Connection - InfoPath Dev
in

InfoPath Dev

List Box and SQL Data Connection

Last post 11-14-2007 07:10 PM by norale. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-13-2007 08:18 PM

    List Box and SQL Data Connection

    Hi,

    I try to populate list of name in the list box. I get the data from sql secondary data connection. The problem is, the list box only display data at the first row of the table. How can i populate all the data in the table into the list box?

    Thanks. 

  • 11-13-2007 10:29 PM In reply to

    Re: List Box and SQL Data Connection

    The list box should be bound to a field in your main data source. Then use the secondary connection as the source for the list.  I am guessing that your list box is bound directly to a field in the data connection which is not how you want to set it up.

    1 would be to drag a repeating table on to verify what is coming in via your secondary data connection.

    2 add a list control to your form which should automatically create a new field.

    3 go into the properties of the list control and select to use values from an external data source and select your data connection from the dropdown.

    Play around with it.

    Hope this helps.

  • 11-13-2007 11:40 PM In reply to

    Re: List Box and SQL Data Connection

    Hi Clay,

    FYI, i've done steps 2 and 3 and came out with the same result.

    I've try as u suggested in step 1, and it appear to show only 1 data (data from the first row)..

    In the secondary data connection, do I have to set anything (e.g. sql statement) in order to retrieve all the data in the table?

     

  • 11-14-2007 05:25 AM In reply to

    Re: List Box and SQL Data Connection

    Well if you drag the repeating group from your secondary data connection on to your form and it only shows one row then that is your issue not the setup in the list control.

    You may want to set up your data connection again.  By default you should get all rows of the table. Is this an Access table? Where is the data coming from?

  • 11-14-2007 07:10 PM In reply to

    Re: List Box and SQL Data Connection

    Hi Clay,

    The data is from sql database.

    Something wrong with my data connection and I fix it already.

    Sorry for buging you.

    Thanks for the help anyway. :)

     

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