M
Matthew Ortiz
I've got an InfoPath form that requires work offline. In other words, the
users will grab the InfoPath form originally from a URL, open the form, the
form executes the DataObject query and caches the data. I've done this
successfully using the DataInterop sample.
Now when the user saves the form locally and then re-opens the form when
offline the data is cached, it can be seen if you open the saved form in a
text editor, but the repeating section that contains a repeating table that
is bound to the original data object no longer binds. This isn't surprising;
however, I now need to change the binding of the repeating section and the
contained repeating table so that the cached data is now used to bind to.
I have not found how this is happening in the DataInterop sample. However,
in testing the sample I’ve opened the form, queried on the Employee, and then
click the Offline button. This caches the data, the same way that I do in my
app, and then prompts the user to save the file for offline use. The form is
then closed and the SQL Server service is stopped. I then re-open the form
and after a while waiting for the time out on the DataObject query execution
the cached data now shows up in the drop-downs. How is this being done?
I’ve obviously got a bit more complicated binding going on but how is the
data binding being changed to look at the cached data?
If I take a look at the OrderDetails.xsl I can see where I think the
‘xdComboBox’ is original bound to the DataObject (e.g.
‘xdXDocument:GetDOM("Employees")/dfs:myFields/dfs:dataFields/d:Employees’)
but the question remains how is control then changed to bind to the cached
data?
Can somebody provide any help on this? This seems to be something that
would be obvious but I’m not getting it.
I appreciate any support,
Matthew Ortiz
users will grab the InfoPath form originally from a URL, open the form, the
form executes the DataObject query and caches the data. I've done this
successfully using the DataInterop sample.
Now when the user saves the form locally and then re-opens the form when
offline the data is cached, it can be seen if you open the saved form in a
text editor, but the repeating section that contains a repeating table that
is bound to the original data object no longer binds. This isn't surprising;
however, I now need to change the binding of the repeating section and the
contained repeating table so that the cached data is now used to bind to.
I have not found how this is happening in the DataInterop sample. However,
in testing the sample I’ve opened the form, queried on the Employee, and then
click the Offline button. This caches the data, the same way that I do in my
app, and then prompts the user to save the file for offline use. The form is
then closed and the SQL Server service is stopped. I then re-open the form
and after a while waiting for the time out on the DataObject query execution
the cached data now shows up in the drop-downs. How is this being done?
I’ve obviously got a bit more complicated binding going on but how is the
data binding being changed to look at the cached data?
If I take a look at the OrderDetails.xsl I can see where I think the
‘xdComboBox’ is original bound to the DataObject (e.g.
‘xdXDocument:GetDOM("Employees")/dfs:myFields/dfs:dataFields/d:Employees’)
but the question remains how is control then changed to bind to the cached
data?
Can somebody provide any help on this? This seems to be something that
would be obvious but I’m not getting it.
I appreciate any support,
Matthew Ortiz