parameter - form based... - InfoPath Dev
in

InfoPath Dev

parameter - form based...

Last post 08-11-2009 01:43 PM by maverickmt. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-06-2009 10:06 AM

    parameter - form based...

    So... I have share point 2007 and am hosting my forms via sharepoint (browser based.)  I currently have my form (first try...) embedded in the sharepoint xml web part. I am trying to pass paramaters to my form via html... Any ideas on how to do this? I found a link to one guy that says he has done it - but i am not having much luck implementing his solution.

     

    http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/d29e6c23-6996-47ba-8899-88340c3388ff

     

  • 08-06-2009 01:18 PM In reply to

    Re: parameter - form based...

    Hi Ben,

    Thanks for the link. This is a new hot topic. Here's another link alluding to it: http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/403e6f25-ff23-472c-b414-c17866607181 

    We are looking at including this support in the next version of qRules 2.0 for people who don't want to write code.

    For now, you'll have to write code to take a field from your form and insert it into a string that you then use to connect to the SharePoint XML Web Part.

    We can definitely help you write that code. Let us know.

    Patrick Halstead
    Project Manager at Qdabra
  • 08-11-2009 01:43 PM In reply to

    Re: parameter - form based...

    I want to see if i can figure it out on my own - I feel like i am right there on this issue

     

    -- this is my code (on event page load) VB.net

     

    e.InputParameters.TryGetValue("ID", id)

    Dim dsMain As DataSource = Me.DataSources("Main")

    Dim ns As XmlNamespaceManager = Me.NamespaceManager

    Dim xnMain As XPathNavigator = dsMain.CreateNavigator()

    Dim xnTest As XPathNavigator = xnMain.SelectSingleNode("/dfs:myFields/my:Test", ns)Dim xnDD_DEAL_ud As XPathNavigator = xnMain.SelectSingleNode("/dfs:myFields/dfs:queryFields/tns:INFO_DEAL_COMMENTS/tns:dd_deal_id", ns)

    xnTest.SetValue(id)

    xnMain.SetValue(id)

    dsMain.QueryConnection.Execute()

     

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