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 / March 2007

Tip: Looking for answers? Try searching our database.

Insert new row in a repeating table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
carlos.ht@gmail.com - 06 Mar 2007 17:57 GMT
Hi All,

Is there anyway I can insert a new row in a repeating table with two
controls using a button ?

Regards,

Carlos
Zhang Haiguang - 08 Mar 2007 06:41 GMT
Please try the following codes in InfoPath 2007:
       public void CTRL6_5_Clicked(object sender, ClickedEventArgs e)
       {
           // Write your code here.
           XPathNavigator ContextNode =
this.MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:group1/my:group2",
NamespaceManager);
           this.CurrentView.SelectNodes(ContextNode);
           this.CurrentView.ExecuteAction(ActionType.XCollectionInsert,
"group2_1");
       }

InfoJet Service, a product likes InfoPath Forms Services,
http://www.infojetsoft.com
-------
> Hi All,
>
[quoted text clipped - 4 lines]
>
> Carlos
Justin Greywolf - 19 Mar 2007 17:15 GMT
Zhang - in the following statement from the sample code below

this.CurrentView.ExecuteAction(ActionType.XCollectionInsert, "group2_1");

What does the value "group2_1" actually mean?  Ie, if this code is run every
time the button is clicked, do you just need to add the repeating table name
(in this case, lets say it is "group2") followed with the "_1" value?  Or
will something else need to be added?

This is quite confusing to me, ad I have not been able to find any good
informaiton to really explain this over the past couple of weeks.

Thanks!

Justin

> Please try the following codes in InfoPath 2007:
>         public void CTRL6_5_Clicked(object sender, ClickedEventArgs e)
[quoted text clipped - 19 lines]
> >
> > Carlos
 
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.