Second datasource doesnt save data.

  • Thread starter Judith van der Niet
  • Start date
J

Judith van der Niet

Ls,

I have a webservice witch retrieves the data from a database. But now when i
save this form into a library in sharepoint and i open this form aigain the
webservice also needs te open! but this one isnt always available.. i just
want to save to retrieved data within the infopath form... is there a
solution??

J.
 
V

virgul

hi,

You have to define your webservice to primary datasource it is possible
when begin your project. If You can't do that because your primary
datasource is already use for collect other information you can do that
with rules with a onafterchange events.

good luck

++
 
J

Judith van der Niet

Thanks for the fast reply!
But can you be al little more precise? im not realy the professional in
infopath yet!

Tnks....
 
V

virgul

If I have good understand you have data send by your webservice like a
name, location, ... and you wan't to include that in your template.xml
for see in your sharepoint library the things that the man who filled
the form as enter + the data of your webservice
2 possibility:

All your data is in the webservice (the web service send you the enpty
field that the user have to complete) you can define the webservice as
the primary data source. So infopath send you all the data contain in
your webservice.

other

The field of your form is not send by the webservice you have created
in infopath form and you have a webservice who send you additionnal
information (and you want to store that in the infopath form).
1.
So you have to define a rules for that the data contain in the
webservice is copy to one (or two,..) field contain in your primary
data source. This is a little bit complicated but you can do that
without code
2.
You wan't to do that with code (Jscript) microsoft has made a example
at this link:
http://support.microsoft.com/?scid=kb;fr;827005&spid=2515&sid=global
It's a little bit more easy to understand.
So make your choice and If you don't understand ask for more..

++
 

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