How can I get the date of a Secondary Data Resource File

R

roliver99

I am updating a secondary data resource file in an InfoPath template from a
Web Service (the secondary data is stored in the xsn cab because the users
are often offline when using the application). This data is only used as
lookup reference data.

I am trying to create code that will check how long it has been since the
secondary data file in the xsn cab was last refreshed user last refreshed.
If it has been a while (e.g., 30 days) I want to prompt the user that they
need to go online and refresh their data.

Does anyone out there know how I can determine the date that the secondary
data file was last updated?
 
R

roliver99

Thanks suresh. I've looked over the link you listed below. However, it
appears to be looking at the value of a field (that is a date field) within
the secondary XML data source instead of determining the date that the XML
file was last imported into the InfoPath template.

Do you (or anyone else out there) know if there is a way to determine the
date that a secondary data source file was last imported into the xsn? I
guess I could create a new field in the primary data source (called something
like "dteLastWebServiceImportDate") and update that field every time I
perform the import web service function. But I'd prefer to get the date from
the system.

Thanks,
roliver99
~~~~~~~~~~~~~~~~~~~~~~
 

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