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

Tip: Looking for answers? Try searching our database.

Insert row at top of repeating table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jono - 23 Jul 2007 22:48 GMT
Is there a way to make the Insert button, available in the Data tab, add the
new row to the top of the repeating table instead of the bottom?
Kalyan G Reddy MVP (GGK Tech) - 24 Jul 2007 06:40 GMT
Hello

You can use Customize commands in the data tab and insert rows above using
the short cut menu or else create a button and write code

Signature

Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com

> Is there a way to make the Insert button, available in the Data tab, add the
> new row to the top of the repeating table instead of the bottom?
Shiva (GGK Tech) - 24 Jul 2007 06:56 GMT
Hi,

If you want you can insert one button on the top. But you need to write the
code for that button where do you want to insert row.
Here is the code to insert row at top,

startNode.insertBefore(newNode,refferenceNode);

Signature

Shiva
http://www.ggktech.com

> Is there a way to make the Insert button, available in the Data tab, add the
> new row to the top of the repeating table instead of the bottom?
Jono - 24 Jul 2007 18:46 GMT
Hi Shiva, thanks for the info. I'm not very familiar with code but I've tried
some things with the code you sent. I haven't been able to get it to work so
I must be missing something.

When you say "insert one button on the top" do you mean outside of the
repeating table or somewhere within the table?

When you say "where do you want to insert row" I assume you mean that I want
it to insert the row at the top of the repeating table rows. Where in the
code would that be? All I see is the code that I entered for a date
difference function, I don't see anything that's obviously for the repeating
table.

And just to be sure you understand...my original question was aimed at
changing the "Show insert button and hint text" button that shows up at the
bottom of the table (when selected). I realize now that it would be better to
have the button at the top of the table. So is it possible? And if your
original response is the answer would you clarify.

Thanks much.

> Hi,
>
[quoted text clipped - 6 lines]
> > Is there a way to make the Insert button, available in the Data tab, add the
> > new row to the top of the repeating table instead of the bottom?
 
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.