Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2007

Tip: Looking for answers? Try searching our database.

Update Repeating Control via VS 2005 formControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
esebastian@esolutionsgroup.ca - 08 Feb 2007 20:40 GMT
Hello All,
I have created a project half in infopath and half in visual studio c#
windows code.  My VS app calls the infopath form, the form is filled
out and then the xml is saved to our datbase.  I have a certain button
that when clicked opens another windows form does some stuff and then
returns a dictionary of information to the main window where i want to
take that information and insert it into a repeating control that i
have in my form. I can't seem to do this however. Here are the
details.

I have created a repeating group in my infopath datasource it looks
like this:

<Images> -- repeating group
 <Image type='' id=''></Image>
</Images>

there could be many of these <Image type='' id=''></Image> rows and
this is where i need help becuase i need to populate these rows from
the visual studio project. I have been trying to use executeAction on
the current view but i keep getting errors... here is the line of code
i am using.

formControl1.XmlForm.CurrentView.ExecuteAction(Microsoft.Office.InfoPath.ActionType.XCollectionInsert,
"Images_77");

I just happened to open the manifest file and noticed that these
fields are not inside the manifest even though i did drop them on the
form as optional controls that are not visible.

Can someone PLEASE HELP, i have spent days on this and am getting
nowhere!!!!!

Thanks,
Erin
esebastian@esolutionsgroup.ca - 08 Feb 2007 20:41 GMT
I should also mention I am using Infopath 2007.
esebastian@esolutionsgroup.ca - 12 Feb 2007 21:39 GMT
Hi Everyone,
I ended up having to call Microsoft on this one. The repeating table I
had was inside an optional section on my form. It turns out you cannot
add nodes programmatically to optional sections, i turned my option
section into a regular section and all works as it should.
Erin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.