refresh button in Jscript - InfoPath Dev
in

InfoPath Dev

refresh button in Jscript

Last post 10-08-2008 09:04 PM by phamj. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 06-24-2005 01:25 AM

    • jojinek
    • Not Ranked
    • Joined on 06-04-2005
    • Czech Republic
    • Posts 4

    refresh button in Jscript

    Hi,
    I neeed replace Infopath refresh button with my own button where I write some Jscript. But I do not know how to write Jscript code for refresh button

    Thanks
    Mrázek

    RM
  • 06-27-2005 11:26 PM In reply to

    Re: refresh button in Jscript

    Hi Mrázek,
    What do you mean by the InfoPath refresh button. I've never heard of that. Can you be more specific about what functionality you are looking to create? Sorry for my confusion.
    Thanks!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 06-28-2005 10:25 PM In reply to

    • jojinek
    • Not Ranked
    • Joined on 06-04-2005
    • Czech Republic
    • Posts 4

    Re: refresh button in Jscript

    Hi,
    when I create buttons on form I can create several types of buttons which I can connect with action
    - run query
    - submit
    - refresh
    - delete
    - own code

    And I would like to find Jscript code for button action REFRESH

    Thanks


    RM
  • 06-28-2005 11:35 PM In reply to

    Re: refresh button in Jscript

    Hi RM,
    I've never heard of refresh and I'm wondering what it means. Can you send specific repro steps for how you create the refresh button in the Designer. Maybe this is something that I have completely missed over the years. If so, the answer will undoubtedly be in the SDK. Have you searched it for the Refresh info? My guess is that there's nothing there.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 07-07-2005 01:11 AM In reply to

    Re: refresh button in Jscript

    Hi,

    I post here because I have the same probleme as jojinek!

    You can in design mode add a button and in the property you can say refresh and you can refresh all your datasource or only one. That means that infopath remake the call to the webservice (for example) with the new data entered in the textbox.

    Is there anyway to make this with a c# code?

    Because if you make a button that make refresh you can't add a rules or edit form code?

    If it's not is there anyway to make a button click on another button event on click?

    Thanks a lot!

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 07-07-2005 01:41 AM In reply to

    Re: refresh button in Jscript

    Hi.

    I have not used the designer for the refresh capabilities you are talking about here.

    But, if understand you correctly, the C# code for "refreshing" a secondary datasource is;
    thisXDocument.DataObjects["Secondary DataSource Name"].Query();

    Cheers. Scott.
  • 07-07-2005 07:33 AM In reply to

    Re: refresh button in Jscript

    Hi,

    That's great Thanks a lot for your answer!

    It's exactly what I need!

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 12-17-2007 01:54 AM In reply to

    • Mickey B
    • Not Ranked
      Male
    • Joined on 10-10-2007
    • Northern Ireland
    • Posts 7

    Re: refresh button in Jscript

    Hi

    Would it be possible for the JScript code for this action?

    Thanks

  • 10-08-2008 09:04 PM In reply to

    • phamj
    • Top 500 Contributor
      Female
    • Joined on 05-22-2008
    • Australia
    • Posts 26

    Re: refresh button in Jscript

      XDocument.DataObjects["name"].Query();

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