How to submit to multiple database tables with one-to-many relationships? - InfoPath Dev
in

InfoPath Dev

How to submit to multiple database tables with one-to-many relationships?

Last post 04-06-2010 12:55 PM by cguruc. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-12-2008 05:24 AM

    How to submit to multiple database tables with one-to-many relationships?

    Hello, I have an infopath form that is currently connected to a SQL server database. There are a few tables I would like the data submitted to, but it appears as though the submit option is disabled because there is a one-to-many relationship between some of the tables. Is there a way around this? The one-to-many relationship is being used because repeating tables are used in the form. Any help is appreciated. Thanks.

  • 11-12-2008 08:34 AM In reply to

    Re: How to submit to multiple database tables with one-to-many relationships?

    On the last screen of the data connection wizard, are there specific reasons given for Submit not being enabled? I don't recall having it disabled because of one-to-many before....but it has been a while since I've created a DB bound form.

    Hilary Stoupa

  • 11-12-2008 08:54 AM In reply to

    Re: How to submit to multiple database tables with one-to-many relationships?

    on the last screen it is actually saying a many-to-one relationship might exist

  • 11-12-2008 09:25 AM In reply to

    Re: How to submit to multiple database tables with one-to-many relationships?

    But your main table is your 'one' table, right? and then you added another table, and created a relationship? Try selecting your main table in the wizard and clicking the modify button, and deselect the multiple records box for that table....

    Hilary Stoupa

  • 11-14-2008 07:10 AM In reply to

    Re: How to submit to multiple database tables with one-to-many relationships?

    this has been fixed. I noticed that the dba added an additional primary key to the main table so there was indeed a many-to-one relationship. I got this key removed and it will now submit. thanks for your help.

  • 04-06-2010 12:55 PM In reply to

    • cguruc
    • Not Ranked
    • Joined on 02-28-2010
    • Posts 7

    Re: How to submit to multiple database tables with one-to-many relationships?

    hi, i've been experiencing same issue.

    I have 2 tables CUSTOMER and REQUESTS table. Both tables has "ID" as a primary/unique key. And i have joined both these tables by "customerid". When i use access as a back end DB, i have no problem submitting with the same primary key and relationship. However, I now require to change the DB to SQL and it does not allow me to submit anymore. I checked the Data connection wizard and right at the end, it says "Submit option: Disabled.  A many to one relationship might exist in the data source."

    What am i missing??? please help!!!

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