Databound Fields are not saved

A

Alexander Zeitler

I've created a InfoPath form the retrieves database values through a web
service.
When saving the filled out form to a sharepoint site, only form field values
inserted
manually are stored in the form - the databound fields are empty.

what am I doing wrong?

regards,

Alex
 
S

Shiraz Cupala

I may be wrong but it sounds like you are retrieving the database values as a
"secondary datasource" in InfoPath. If you started the from as a blank form
then added a Data Connection to query from your web service, then this is the
case. InfoPath doesn't save data in secondary datasources. Only the Main
datasource is ever saved to a file.

Depending on your scenario and why you need that data stored you have a few
options. If you create a new form "from a data connection" and connect to
your database that way, then any queried data is part of your Main datasource
and will get saved. That's the easiest way to have your data query saved. If
that does not make sense for your architecture, then you'll have to write
code to copy the data queried from your secondary data source into some
portion of your main data source.

I hope this helps explain further.
 
A

Alexander Zeitler

thanks for that information.

regards,

Alex


Shiraz Cupala said:
I may be wrong but it sounds like you are retrieving the database values as a
"secondary datasource" in InfoPath. If you started the from as a blank form
then added a Data Connection to query from your web service, then this is the
case. InfoPath doesn't save data in secondary datasources. Only the Main
datasource is ever saved to a file.

Depending on your scenario and why you need that data stored you have a few
options. If you create a new form "from a data connection" and connect to
your database that way, then any queried data is part of your Main datasource
and will get saved. That's the easiest way to have your data query saved. If
that does not make sense for your architecture, then you'll have to write
code to copy the data queried from your secondary data source into some
portion of your main data source.

I hope this helps explain further.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top