Infopath current Url without writting code - InfoPath Dev
in

InfoPath Dev

Infopath current Url without writting code

Last post 10-28-2009 09:27 PM by Honey_hhv. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-13-2008 07:10 AM

    Infopath current Url without writting code

    Hi I'm trying to get the current url of the Infopath form where it's deployed,?? I've seen that there is a workaround this using custom code, is there any way to do it without writting any code?

     Any Ideas?

     

    Luis

  • 08-14-2008 03:37 PM In reply to

    Re: Infopath current Url without writting code

    I think you can use a formula to get what you need:

    substring-before(substring-after(/processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'href="'), '"')

    gets me the location of my published form, regardless of where it is published.

    Hilary Stoupa

  • 10-28-2009 02:30 AM In reply to

    Re: Infopath current Url without writting code

    Hi Hilary

    your information was helpful ,thank you so much.

    i pubish my form in sharepoint library, i want to get that library's Url, my Form opens.

    then redirect form to that URL after click Save button on Form

    any help will be appreciated Dera.

  • 10-28-2009 09:01 AM In reply to

    Re: Infopath current Url without writting code

    When you say 'redirect form to that URL' do you mean submit the completed form to the same library? I don't think you'll be able to do that without code (or the upcoming v2.0 release of qRules, which will have a command for changing the submit url). Here's an interesting blog post on using code for this.

    Hilary Stoupa

  • 10-28-2009 09:27 PM In reply to

    Re: Infopath current Url without writting code

    Hello dear

    No,I have a button in form and i handle click event for that (in code) to save in My sharepoint Document Library.(it works well)

    so after saving without error, i want to close form (i cannot use a Close Rule for that , because it occurs before click event) 

    or redirect it to Document Library (this part is the problem ), how can i solve it?

    although i didn't read your link yet, maybe it helps!! ;)

    i should add my form is browser enabled, too. and jscript it's not work

    although i test thease code too, and did not work when i publish form to sharepoint :

    1- System.Diagnostics.Process.Start("iexplore.exe", URL);

    2- System.Web.HttpRequest.Current.Response.Redirect(System.Web.HttpContext.Current.Request.UrlReferrer.OriginalString);

     

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