adjust submit target dynamically - InfoPath Dev
in

InfoPath Dev

adjust submit target dynamically

Last post 05-04-2006 12:15 AM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-03-2006 02:42 AM

    adjust submit target dynamically

    Hi,

    I have a form that should be deployed together with a template, i.d. there is a form lib which always has the same name, e.g. addresslib and when I click "fill out" the data should be sent to the right addresslib form lib.
    But as this template can be within various webs, I can't define a static submit target.
    E.g. I have these webs
    http://localhost/template1/addresslib
    http://localhost/template2/addresslib
    http://localhost/template3/addresslib
    and to have the form to send the filled form to the right addresslib form lib, I would have to change the submit target by hand to template1, template2, etc. in any of the form lib templates.
    So is there a possilbity to change the submit target with custom code? Or how can I submit data to a dynamic target? I can figure out the url where the form is located (thisXDocument.Solution.PackageURL), but I couldn't find any tutorial on how to create the right adapter and how to use it.
    Any hints on that?

    Best regards,

    Buki
  • 05-04-2006 12:15 AM In reply to

    Re: adjust submit target dynamically

    Hi Buki,
    Welcome to the Forum!
    You can change the the submit location in code. Which adapter are you trying to use? Is it DAVAdapter? If you are using this then this has the "FolderURL" property. You can set the destination folderURL to this property.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.