Need help with autopopulate and update - InfoPath Dev
in

InfoPath Dev

Need help with autopopulate and update

  • 05-01-2007 01:43 PM In reply to

    Re: Need help with autopopulate and update

    There are multiple ways of accomplishing this.  I am not sure if you are using another form as a template or starting from scratch or if you are using code or just using rules.  To test this and do some learning I would recommend creating a new form from scratch.  Select Database as the type and connect it to your datasource and select the table on your sql server which has the records you want to read or you can use the sample Northwinds DB.  What you will get is a sample form that has all of the fields of your table in the data source, both under queryfields and datafields. Drag the queryfields folder into the query area as a section with controls and drag your datafields folder into the lower section as a repeating table. You can immediatly preview the form.  Enter an ID number in the field under query or some other indexed data and select the query button. This should display below the data records that match.

    So in your case you would have a dropdown and when it was selected you would set the value of the approriate field under queryfields and then query the dataconnection.

    Hopefully this can get you started experimenting with dataconnections to a DB.

    Webservices are better but if you just need simple interaction with a table this works.  Unfortunately with InfoPath you have a limitation of only having one table you can query and submit to. You can get around this with web services. 

View Complete Thread
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.