Refresh secondary datasource

E

esebastian

Hello All,
I have a combo box whose values are retrieved from a database table.
While my form runs though code a new entry may be added to the
database table, I have an event captured when this happens but i
can't seem to find a way to refresh the datasource that is populating
the combobox so when an entry is added it will be reflected in the
list. Does any one know how to programmatically refresh a secondary
datasource in infopath???
Thanks,
Erin
 
E

esebastian

Hello Everyone,
I was able to figure this out. Adding this line of code will refresh
your datasources.

this.CurrentView.ForceUpdate();

thanks,
Erin
 

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