add new data to sql table that has a foreign key relationship with another table - InfoPath Dev
in

InfoPath Dev

add new data to sql table that has a foreign key relationship with another table

Last post 10-04-2010 02:00 PM by jenfi. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-02-2010 04:28 PM

    • jenfi
    • Not Ranked
    • Joined on 09-07-2010
    • Posts 19

    add new data to sql table that has a foreign key relationship with another table

    hi,

    i want to know how can i add new records to a sql database table that has a foreign key relationship with another table using infopath form.

    i have created a blank form based on database

    i have all my fields and the "add new" button already in the form.

    i have the username and the userid  and some other fields filled in automatically when the user opens the form.

    i want that the user does not have to fill in his name, id and some other fields everytime he opens the form.

    only a part of the form like new vacation days must be filled in as new. so when the user click on the "add new" button i dont want that it clears all the fields. i want it to only set the new vacation days as new fields to fill in.

    when i fill in the form with new data and click submit. it gives me this error:

    Field or group: BE_CODE
    Error: Only integers allowed

    this "BE_CODE" field has to be filled in the database table, it can not be null. but it must not be filled in by the user it self. and it is a repeating table so it can not be auto increment.

     

    is there an easy way to do this?

  • 10-04-2010 02:00 PM In reply to

    • jenfi
    • Not Ranked
    • Joined on 09-07-2010
    • Posts 19

    Re: add new data to sql table that has a foreign key relationship with another table

    nobody knows how to do this?

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