-
Please change the default value of DepartmentSection/Services/AutoNumber to:
count(../../../preceding-sibling::my:RepeatingServices//my:AutoNumber) + count(../../preceding-sibling::my:DepartmentSection//my:AutoNumber) + count(../preceding-sibling::my:Services//my:AutoNumber) + 1
Change the default value of ...
-
Hello,
While inserting new row you have to set your data into that node. After setting the data you have to insert your new node.
-
To select the last row (most recently added) in a repeating group, you can use the XPath last() function, so if the path to your repeating group was /my:myFields/my:group1/my:group2, you could do something like this:
XDocument.View.ExecuteAction "xCollection::insert", "group2_44"
Set ...
-
Yes, thank you. I just noticed that your code is in an OnAfterChange event handler, so you don't need a loop.
Please try the following:
Replace
empid = XDocument.DOM.selectSingleNode("//my:Prefix").Text
with
empid = eventObj.Site.text
And ...
-
Hello,
Can you check once multi selection box field is repeating field or not? We can use integer data type for multi selection dropdown but those selected values should be integers.
If you want to change the data type of that field you can directly change in .xsd file of that your schema file.
-
Ok, please try putting this code in the event handler for a button. You will need to change the underlined parts. The first underlined part corresponds to the path of the field where the user will enter the count, and the second is the path of the repeating group on your form:
XPathNavigator mainDataNavigator = ...
-
-
I meant, is there a way to customize the infopath toolbar that is shown on the top and bottom of the browser enabled form.
Igor
-
I figured it out, thank you all again to those who help us out here.
-
That is a great idea Janice.
I have done a similar thing on the print view screen.
So I will try on the main screen.
Thanks again.