Refreshing Sharepoint Library - InfoPath Dev
in

InfoPath Dev

Refreshing Sharepoint Library

Last post 04-22-2007 12:06 PM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-28-2007 03:13 AM

    • edove
    • Top 500 Contributor
    • Joined on 08-21-2006
    • Posts 50

    Refreshing Sharepoint Library

    Hi,

    If a user submits a new form to a sharepoint library SOMETIMES if refreshes the library automatically. It doesn't seem to do this at all if the user is just editing an existing infopath form and saving down over the top.

    I want to be able to refresh thge library every time the user submits the form, whether new or existing. Does anyone know a way to do this?

    I know that I can create rules, etc in the submit options. Also I know you can add a button to a form, with the action "Refresh" and get it to refresh a data connection, but how can I get it to do this when the form is saved?
  • 04-22-2007 12:06 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Refreshing Sharepoint Library

    Hi Edove,

     

    Write a method in your formcode that returns true if the form is new and false if it is false.
    for ex:-
    public bool isNew()
    {
    return thisXDocument.IsNew;
    }

    And call the above method with xdExtension functionality to refresh the data connection.
    You can find more info about xdExtension at
    http://www.infopathdev.com/howto/bugs/default.aspx?i=afa2d89e65b44b1b83a282244d08de8b
    http://www.infopathdev.com/howto/tutorials/default.aspx?i=88f921f13dec4e7cae61191bac084fff
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.