Insert row at top of repeating table

J

Jono

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?
 
K

Kalyan G Reddy MVP (GGK Tech)

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
 
S

Shiva (GGK Tech)

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);
 
J

Jono

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top