Automatic row numbering in tabular form
156019Jan 6 2006 — edited Jan 6 2006hi
i want to create a tabular form, which automatically included line numbers. For example for a list of names with results, where the #1 is of course listed first, #2 2nd, etc:
1. John
2. Dave
3. Pete
4. Some other John.
Of course this isn't a problem to display if it's already in the database, but I want to have the lines numbered when I add lines to a tabular form.
So when I add a new line to the above list, the first field will automatically be filled in with the number 5, and then i can add the name in the 2nd field. What's the best way to accomplish this ?
I have a unique ID for each line too, but there are multiple of these kinds of lists, so for each list the numbering starts again at #1. So in my database, I have a unique ID, a line number, and a name. Oh, and I might want to add 5 or 10 empty lines at the same time to the tabular form.