You searched for the word(s): 2
-
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.
-
Hi
I am rather new at Infopath and what I am trying to do is to take a few different repeating sections from one view and put them togeather in a repeating section in another view.
I get an error saying that this control cannot repeat here
Any known workarounds?
thanks
Steini
-
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.
-
Ok, sure thing. the first thing I did was create a group in my main data source that mimicked the dataFields group in the secondary data source:
Notice that I chose to use different names for my groups, but for simplicity's sake, I used the same column names and in the same order. Note however that I used elements for the column ...
-
It's OK. I figured it out. I had to make it fully trusted.
For other newbies with this problem, do this (when you are in design view of Infopath):Tools / Form Optionsclick the 'Security and Trust' categoryuncheck 'Automatically determine security level'check 'Full Trust'Then, you should no longer get that error. ...
-
Your
var Enteredby = XDocument.DOM.selectSingleNode("/my:myFields/my:EnteredBy").text;
line looks ok, but you will get that "object required" error if you reference a node that does not exist (e.g. it is in an optional section that is not included at the time) or if the XPath is misspelled, and that includes case. ...
-
Jimmy...worked liked a champ!...thanks
-
I see. In that case the procedure would be about the same, except that the code in step 8 would be more like this:
public void number_OnAfterChange(DataDOMEvent e)
{
if (e.IsUndoRedo)
{
// An undo or redo operation has occurred and the DOM ...
-
//<namespacesDefinition>
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" ...
-
Im not sure if this is what you are looking to do, but try reading this blog entry.
http://www.infopathdev.com/blogs/matt/archive/2006/02/02/Add-SharePoint-List-Items-with-InfoPath.aspx