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