Move already filled forms - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Move already filled forms

Last post 03-23-2006 05:40 PM by Matt Faus. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 04-01-2005 06:14 AM

    Move already filled forms

    Hi,

    I have a question: I try to move the filled form depending on a field in
    this form. Is it possible ?

    At this time, each time I edit a document, a new one is created an the old
    one is deleted. But this solution isn't very safe, so that I need another
    solution.

    Hope you can help me :)

    Greetings
  • 04-04-2005 05:08 AM In reply to

    Re: Move already filled forms

    I don't fully understand by what you mean by "move". Are you trying to overwrite during submit? Can you explain the issue with more detail?

    Shanthi
    InfoPathDev India
    Shanthi Reddy
  • 04-04-2005 06:11 AM In reply to

    Re: Move already filled forms

    Ok ;) i will try with an example:

    Dir Tree:
    Root - test1
    - test2
    - test3

    New form -> submitted to folder test1

    Now when I edit this form I would like that, depending on a field in the form, that it is submitted in another folder (test2). this works fine ... but the problem is, that the original in test1 is still there ;)

    thanks in advance for your help ;)
  • 04-05-2005 05:25 AM In reply to

    Re: Move already filled forms

    I tried everything but I don't know what to do ...
  • 04-11-2005 11:13 AM In reply to

    Re: Move already filled forms

    What process are you using to move the file? Are you using shell commands, or just resaving the form in the new location? I'm assuming it is the latter.

    Is your form Full Trust? If so, you should be able to simply delete the original form via code once you've saved it in the new location.

    Greg Collins [InfoPath MVP]
    InfoPathDev
  • 03-23-2006 05:24 PM In reply to

    Re: Move already filled forms

    hi there Greg,

    is the delete method from code really working?
    I've been trying to do it but always fails.
    I've posted inhttp://www.infopathdev.com/forums/topic.asp?TOPIC_ID=38&SearchTerms=DeleteFile as well.

    Basically, I tried deleting one of the xml infopath forms on sharepoint, but 'FileExists' method cant seems to be able to locate the file.

    This is the code snippet I used:

    var fso;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    XDocument.UI.Alert("about to delete " + filespec);
    if ( fso.FileExists(filespec) ) {
    XDocument.UI.Alert("file found");
    fso.DeleteFile(filespec);
    XDocument.UI.Alert("file deleted");
    }

    where 'filespec' is the file location string to be deleted like 'http://sharepointlocation.com/Forms/libraryfolder/filename.xml'.

    And my form template is fully trusted.

    Any idea Greg? :)
  • 03-23-2006 05:40 PM In reply to

    Re: Move already filled forms

    Hi potpourri,

    Please see this thread for my response:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=38.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.