S
suraj
Hey guys,
I've done a search on this post on how to insert a row into
a repeating table using Jscript, and found a couple of threads
that answer the question, and it seems simple enough.
In my code I specify:
XDocument.View.ExecuteAction("xCollection::insert", "BenefitsDetailsTable_5");
Where BenefitsDetailsTable_5 is the value specified as xCollection under the
Advanced tab of my repeating table properites. Now the error I get is
"The specified varXmlToEdit value for the View.ExecuteAction call is not
valid."
Now I extracted the form files and looked under the manifest.xsf file, and the
action to insert a row to this table is as follows:
<xsf:button action="xCollection::insert"
xmlToEdit="BenefitsDetailsTable_5"......
so the error is looking for a varXmlToEdit value, while the manifest.xsf file
only specifies BenefitsDetailsTable_5 as a xmlToEdit value.
I'm still somewhat new to InfoPath, so I'm a bit hesitant on playing around
wtih
these extracted form files.
Anybody have an idea on how to resolve this problem? I'd really like to use
the insert feature of the repeating table programmatically.
Any help is greatly appreciated, thanks
suraj
I've done a search on this post on how to insert a row into
a repeating table using Jscript, and found a couple of threads
that answer the question, and it seems simple enough.
In my code I specify:
XDocument.View.ExecuteAction("xCollection::insert", "BenefitsDetailsTable_5");
Where BenefitsDetailsTable_5 is the value specified as xCollection under the
Advanced tab of my repeating table properites. Now the error I get is
"The specified varXmlToEdit value for the View.ExecuteAction call is not
valid."
Now I extracted the form files and looked under the manifest.xsf file, and the
action to insert a row to this table is as follows:
<xsf:button action="xCollection::insert"
xmlToEdit="BenefitsDetailsTable_5"......
so the error is looking for a varXmlToEdit value, while the manifest.xsf file
only specifies BenefitsDetailsTable_5 as a xmlToEdit value.
I'm still somewhat new to InfoPath, so I'm a bit hesitant on playing around
wtih
these extracted form files.
Anybody have an idea on how to resolve this problem? I'd really like to use
the insert feature of the repeating table programmatically.
Any help is greatly appreciated, thanks
suraj