-
Hi all,
in my code there are a few try blocks one after another, in the catch blocks, i would like to include a Stop function so that if there is an exception, no more code will be processed.
i have tryed Stop and it seems valid, but upon running the form, the form continues to process the code even after it runs through the stop code.
any ...
-
My previous response left out the GetListItemsStrResponse in the xpath.
"/dfs:myFields/dfs:dataFields/ns1:GetListItemsStrResponse/ns1:GetListItemsStrResult/Rows/row"
You may want to display the node.innerText inside the loop.
-
Also, you might find this more helpful for debugging:
XDocument.UI.Alert(nodes.length);
-
There is a typo in your xpath:
/dfs:myFields/dfs:dataFields/ns1:GetListItemsStrResult//Rows/row
should be:
/dfs:myFields/dfs:dataFields/ns1:GetListItemsStrResult/Rows/row
with just one "/" between GetListItemsStrResult and Rows. Try that.
-
Hi--
Infopath doesn't provide programatic access to the form controls, only the data. Not sure what your data field is named, but if it really is named 'textbox', and assuming that you are using VB.NET and InfoPath 2007 (since you specifiy VSTA) you'd want to use something like:
Dim root As XPathNavigator = ...
-
Gladly,
First the Namespace defnitions which I got out of the Samples file as you suggested:
XDocument.GetDOM( "GetListItemsStr" ).setProperty( "SelectionNamespaces" , 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-04-28T14:41:50" ...
-
I'm used to visual basic and not VSTA, but ive been trying to use this code to clear some text boxes when a user hits submit.
Dim root As XPathNavigator = MainDataSource.CreateNavigator()
Dim textbox As String = root.SelectSingleNode("my:myFields/my:textbox", NamespaceManager).Value
with me
textbox = ""
end ...
-
It would help if you would post your most recent version of the script you are using. You have an alert in the first sample -- I'm going to guess you are using that to help debug. Does the alert display anything?
-
Hello All!
I need help
I have a site at SharePoint. The site is a form that is built on the InfoPath. I need to before sending data to the server to sign the form of electronic signature. The certificate which we take from the electronic key. I read MSDN and could not find a basic example of how to sign the form, but only as read ...
-
Hi, I'm also getting the same error. My scenario is, I'm trying to write a simple approval workflow that uses an Infopath form for edit form. Workflow is started. when I click the title filed in the task session of the work flow. I'm getting this error "The following location is not accessible, because it is in a ...