How to use cached date even if online

N

Nicolas

Hi

I have a form with two data connections. Both are tied to webservices.

The first one should return a date and compare it to a date that I have in
the cache for the second data connection. If the date is newer that the date
form the cache I would like to get new data from the second data connection.

It seems like that if I'm online I can't access the cached second data
connection, it's empty. If I'm offline I can use the cached second data
connection. How do I use the cached second data connection even if I'm online?
 
D

Don Reamey \(MSFT\)

InfoPath does not have the concept of offline vs online so you may have to
write some code to attempt to query the connections manually.

If the online connections fails then you can programmatically use the second
connection.

--
Don Reamey
Microsoft
Software Development Engineer
InfoPath Forms Server
http://blogs.officezealot.com/dreamey
 
N

Nicolas

Ok.

My main question is: Can I use the cached data even though I'm online?

I don't want to query my second data connection if my other data connection
returns a certain value. In that case I want to use the cached data instead
even though I'm online

Best regards,
Nicolas
 
S

Shiva (GGK Tech)

Hello,

First we have to check the form is offilne or online then depends on that we
have to user the cache data or we need to connect again online.

While taking the XML data connection we have option called like,

‘Access the data from the specified location’ radio button should be select
and under one more ‘Store a copy of the data for offline use’ check box need
to be check for offline form will get the data from locally saved xml.
 

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