-
Have you tried using the ExecuteAction method?
Sub CTRL5_5_OnClick(eventObj)
XDocument.View.ExecuteAction "xCollection::insert", "group2_1"
End Sub
The second argument ("group2_1" in this case) refers to the XmlToEdit identifier for the repeating control and can be found on the ...
-
Great to hear that! I'm glad I was able to help.
-
Ok, so I'm guessing your secondary data source looks something like:
Employees (repeating)
Name
And your main data source has a part like:
Jobs (repeating)
JobName
Employees (repeating)
...
-
Apparently the workaround on this page works:
-------------------
1. Go to registry (Start – Run – Regedit)
2. Go to this key
Hkey_local_machine\software\microsoft\windows\currentversion\app paths\devenv.exe
3. Change the value to (assuming you installed to the default directory)
C:\Program Files\Microsoft Visual Studio ...
-
What are you using to populate those dropdown boxes? If it's a secondary data source or a group outside of your repeating groups, you might be able to pull this off without any code.
-
Are you talking about creating a main data source from an existing schema? If so, you'll need to insert an <xsd:any> node into the appropriate place in the schema.
I don't think you can use the InfoPath designer to modify the schemas of secondary data sources, if that's what you're asking about.
-
I understand now.
It would be easy enough to display a table of employee names matched up with the jobs they did and the hours for each job, but the employees would appear in the same order they appeared in the other table, spread apart and without any sorting.
Sorting of repeating tables isn't a built-in function of InfoPath, and what you ...
-
So let me see if I understand this right. You want the second view to just show a list of all the employees, next to the total number of hours each employee has from the other view?
-
Is there a particular reason why you are putting the repeating sections inside another repeating section in the other view, instead of just putting them into the additional view? It sounds like that's what's causing the problem.
-
Could you describe the rules you're using with a little more detail? I think it may not be possible to use rules to copy the entire contents of a repeating section and that this may require code.