Refresh secondary data source 2007 equivalent - InfoPath Dev
in

InfoPath Dev

Refresh secondary data source 2007 equivalent

Last post 02-23-2007 11:41 AM by erinselena. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-23-2007 07:11 AM

    Refresh secondary data source 2007 equivalent

    Hello All,
    I want to refresh a secondary data source that is bound to a combobox in an infopath 2007 form. When the changing event is called, something happens and a new value is added to the database which is the source for the secondary data source attached to this combobox. Immediately after i want to refresh the SDD so that this new value appears in the list... I have seen on some other posts to do this you would use the following statement in infopath 2003... what is the equivalent in 2007???

    XDocument.DataObjects["Secondary DataSource Name"].Query();

    thanks!
  • 02-23-2007 08:04 AM In reply to

    Re: Refresh secondary data source 2007 equivalent

    Hello Everyone,
    I actually found another way to refresh the datasource.. using this line of code will do it..

    this.CurrentView.ForceUpdate();

    thanks,
    Erin
  • 02-23-2007 11:41 AM In reply to

    Re: Refresh secondary data source 2007 equivalent

    Sorry about that, i gave a wrong answer.. it's actually

    this.DataConnections[dataconnection].Execute().....
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.