Changes to resource files does not show in form

J

Jono

I have a drop-down list box that has as it's data connection another form (a
one column repeating table). Everything works except if I add another line or
make any other changes they do not show up in the drop-down list box. The
original list is displayed.

When I first made the connection I was asked if I wanted to add the fill to
my form so that it was accessible from other computers to which I answered
"yes". Since this form will be used when no network connection is available I
figured this was the right choice.

How do I make updates to my resource files and have those updates show up in
a form (drop-down list box) that has been previously filled in?
 
S

S.Y.M. Wong-A-Ton

You can refresh the items in a drop-down list box by requerying the data
source that it's bound to. I think the "Query using a data connection" action
in a rule should do the trick. Otherwise, you can retrieve the data
connection through code and call its Query() method.
 
J

Jono

Unfortunately I am not versed in writing code so I tried various "conditions"
in a rule to trigger a query of the updated resource but I couldn't get it
to update. I must be missing something. Any idea?
 
S

S.Y.M. Wong-A-Ton

Obviously I did not understand your initial question well enough. Sorry about
that.

I'm assuming that the source for your drop-down list box is an XML file.
Correct? Since you chose "Yes" when creating the data source, InfoPath saved
the data as a Resource File in the form and you lost the connection to the
original file. You effectively have a copy of 'old' data in your form, so
requerying will not help in this case.

What you can do: Go to Tools > Data Connections, select the data connection
to the XML file, click Modify, click Resource Files, and click Remove. Then
browse to the XML file again and re-create the data connection, but choose
"No" when you're prompted whether you want to add the data to your form.

If you still want to save the data in your form for offline use, and refresh
it whenever a connection is available, coding will be required. InfoPath 2007
has better configuration for using offline data than InfoPath 2003, so coding
might not be required in InfoPath 2007 - I haven't tested this, though.
 

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