Refresh Secondary Data Source - InfoPath Dev
in

InfoPath Dev

Refresh Secondary Data Source

Last post 02-23-2007 08:05 AM by erinselena. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-22-2007 12:22 PM

    Refresh Secondary Data Source

    Hello Everyone,
    I am wondering how I can refresh a secondary datasource through code. I am using infopath 2007. I have a combobox and have entered a value into the database through code into the same table that the combox fills on, how can i refresh the list in the combobox programmatically to make sure the list has the most current database entries?
    Thanks,
    Erin
  • 02-22-2007 08:51 PM In reply to

    Re: Refresh Secondary Data Source

    Hi,

    Check out this link, may be helpful for you.
    http://infopathdev.com/forums/topic.asp?TOPIC_ID=670

    Thanks.
    K.Ramana Reddy / http://www.ggktech.com
    India.
  • 02-23-2007 05:55 AM In reply to

    Re: Refresh Secondary Data Source

    Hello,
    Thanks so much for getting back to me, this did not work however... i get the error "Operation is not valid, because of the current state of the object" as i have been trying to do this on the changed event of the combobox.
    I do believe that it did not work for the gentlemen in the post that you sent. Any other work arounds?
  • 02-23-2007 08:05 AM In reply to

    Re: Refresh Secondary Data Source

    Hello,
    I have figured it out.. using this line of code will refresh the datasource..

    this.CurrentView.ForceUpdate();

    thanks for your help.
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.