repating table

How to import rows to a repeating table in InfoPath

Currently i am developing an medical software. Therefor i use InfoPath form template with code behind c# and MS SQL or Infomix databse was a very comfortable solution. As the complexety of the system grows i had to broaden my horizon and find some tricky solutions to achieve the surreal requirements of the client. If you wish to import data from database (like MS SQL or Informix) to an InfoPath Form this method will help you to get the data in a repeating table. People always want everyhing flexibel, fast and automatically, properties which are very hard to reach within a software. So someday i encountered a very hard problem which took me a long time to solve it (although, afterwards it wasn't so difficult). If someone has programmed a little bit with c# before, its not that hard to get content of a database within c#, but its not so easy to process this data in a repeating table in InfoPath. So a solution had to be found to show the data from the database in InfoPath. After hours of internet surfing and testing many methods i found the best way to solve this problem.
Subscribe to repating table