Passing parameters to an InfoPath 2007 form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Passing parameters to an InfoPath 2007 form

Last post 04-13-2013 07:40 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-12-2013 01:51 PM

    Passing parameters to an InfoPath 2007 form

    I've seen lots of forum posts about this, but it's not clear if this functionality is available using VBScript. I want to pass a parameter to a form in the URL. This is what I am trying based on some code examples I found.

     my URL is http://team.usaa.com/sites/externalaffairs/eaops/Initialize/Forms/template.xsn?ListID=4

     my name:value pair is ListID = 4

     In my OnLoad event, I tried this code, hoping I could interpret the parameter and write the value to a text field named MyFormID:

    strListID = XDocument.InputParameters["ListID"].value

    XDocument.DOM.selectSingleNode("//my:MyFormID").text = strListID

    I am starting to think that the InputParameters object is not available in VBScript. Can anyone help with this?

    Thanks!

    Leon Bryant
  • 04-13-2013 07:40 AM In reply to

    Re: Passing parameters to an InfoPath 2007 form

    I think if you are using VBScript, you will be using InfoPath 2003 compatible forms - so my guess would be that Input Parameters aren't available. What version of IP are you using? Can you use managed code instead?

    Hilary Stoupa

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