-
Hi,
If you want to know the number of rows in repeating section use below the code in C#.
Code:
// Create XPathNavigator positioned at the root of the main data source.
XPathNavigator myNav = this.MainDataSource.CreateNavigator();
XmlNodeList nodeList = myNav.SelectNodes("Repeating Node XPath");
This will give the number ...
-
Hi Checco,
If you want to get the 'Causale' nodes then above Shiva given XPath is correct. If you want to 'TurnoSerale' nodes then use the given below XPath:
count(../my:Persone/my:TurnoSerale[@my:Causale = "Turno"])
By using this XPath you can get the 'TurnoSerale'' nodes with the 'Causale' ...
-
Hi Mrudula,
If we add two columns is code how are you going to see these extra columns data in UI? If we have 4 columns are existed and we added 2 columns in code then how you are going to show these extra two columns data? You are going combine these extra columns into 4 columns only? If you want to show these columns then you have to change the ...
-
Hi,
You are tried to set the value to ‘Value#%92 property. Rather than you have to try to set the value to ‘text#%92 property as below code:
XDocument.DOM.selectSingleNode(''/my:myFields/my:SectionSelector'').text = ''Section 1'';
-
Hi Alexander Ekzarov,
I tried many ways to handle it but I am not able catch the event when the form is closed. I am sure about this but we will wait some other reply this forum.
-
Hi Alexander Ekzarov,
We don#%92t have an option called hold the event of when we are trying to close the InfoPath form using close button in tool bar. If you want catch the event when the form is closing, you have to keep one button in the form and write code for that one.
-
Hi Navid,
Is present and Is not present conditions are used for secondary DOM nodes. In main DOM we always have node because this condition might not be works. For secondary DOM, some times we are tying to query or submit connection in that after performing the action it will created some node set and displayed in secondary DOM. If we trying to ...
-
Hi Gbertrand,
Sorry for the late, by using rules you can set the field value in your InfoPath form. And value to get data after the ‘question mark#%92 using string function we can do this.
By using substring-after(“Hyper link string value'', ''?'') code you can get ID=1 value.
-
Hi Bill,
You have to check the ‘objectField1#%92 node is getting or not before set the focus. If you are getting the node then below the syntax is correct to set focus this filed. One more is the textbox should not be read only as per mcjack.
-
Hi RSP,
In ‘To#%92 address email address should be differentiate with semicolon between one email address to other email address. For example, if you want to send more than two email addresses it should be format of abc@hotmail.com; xyz@hotmail.com otherwise it gives the error. Can you check your recipient email address format?