Infopath Params....

B

Ben

How do i get a paramater to work on a sharepoint enabled form?

Here is my VB.net code (on form load)


Dim id As String = String.Empty

Try

' Write your code here.

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()


Catch ex As Exception
id = ex.Message.ToString
End Try
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top