Question : Microsoft Infopath 2007-2010  sql 2005 fixed sections and repeting sections

I am trying to design a simple shift report in infopath that submits to a MS SQL database.
I can submit data to my database.
But the problem I have is that the form is for an entire shift and I would like the user to select the date and shift once and have a repeating section for the actual report.
I have tried having a fixed date and shift section
Then a repeating section for the report but when I submit the data the date and shift columns are blank. The field in the repeating sections have data.
So my question is it possible to have a form that submits a fixed field to repeating fields?
I could put the date and shift in the repeating section but the user would be entering date and shift  multiple time per shift every making the form un-user friendly.
any help would be helpful.

Answer : Microsoft Infopath 2007-2010  sql 2005 fixed sections and repeting sections

I would add it to the repeating section and then use logic to default the information.  It is best to keep that data together with the rest of the record for reporting and reuse anyway.

I commonly have a group of fields in my form body I call default.  I create a field for each field the user will be entering into the repeating section that would be nice to remember the last entry.
Then for each repeating field I put a rule that sets the corresponding default field value to the fields value when it is changed.
Then on the repeating table properties, for default values, I set each field to use the default field on any inserted rows.

This way when they add their second row the values default from the first and they can change them by exception.

Hope that helps.
Random Solutions  
 
programming4us programming4us