Refresh Secondary Data Connection via jscript - InfoPath Dev
in

InfoPath Dev

Refresh Secondary Data Connection via jscript

Last post 09-24-2008 11:22 AM by BrianL. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-23-2008 11:16 AM

    • BrianL
    • Not Ranked
    • Joined on 09-23-2008
    • Posts 2

    Refresh Secondary Data Connection via jscript

    I would like to add a button that will refresh/reload the secondary data connection for a list box, but havn't been able to get the code right. I tried

    XDocument.DataObjects["Program_Name"].ForceUpdate();

    but I am getting an error that XDocument.DataObjects.Program_Name is null or not an object.  Not sure if I am close or way off the mark.  Any help would be appreciated.  I am using Infopath 2003.

     Thanks in advance.

  • 09-24-2008 05:50 AM In reply to

    Re: Refresh Secondary Data Connection via jscript

    Check the developers reference on MSDN for the proper syntax.

    I believe it is query() just like in the UI.

  • 09-24-2008 11:22 AM In reply to

    • BrianL
    • Not Ranked
    • Joined on 09-23-2008
    • Posts 2

    Re: Refresh Secondary Data Connection via jscript

     Thanks Clay,

    That along with a XDocument.View.ForceUpdate(); did the trick!

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.