Composite key in data table - Using INFOPATH - InfoPath Dev
in

InfoPath Dev

Composite key in data table - Using INFOPATH

Last post 10-30-2009 04:26 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-27-2009 02:37 AM

    Composite key in data table - Using INFOPATH

    I am trying to insert data into sql table using Infopath 2007. Can I use composite keys in database? As soon as I create composite key and refresh connection in Infopath, submit is disabled. Does anyone have some expirince about this problem.

     

    Thank you.

     

  • 10-30-2009 04:26 PM In reply to

    Re: Composite key in data table - Using INFOPATH

    Hi--

    This can be done. You just need to first create a primary key on your table, then set that primary key to be a composite, by using more than one column. At that point, submit will be enabled in InfoPath.

    I first tested by creating a composite key without setting a primary key first, and had the same issue of submit being disabled. When I removed that key, set one field as the PK, then edited the PK to use an additional column, I had a composite primary, and InfoPath was fine with that.

    Hilary Stoupa

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