Inserting Numbers Automatically

Inserting Numbers Automatically

erobbinserobbins Posts: 2Questions: 0Answers: 0

Hello,
I have read some of the questions and answers, but the answers are too complicated for my needs. I have a list and journal articles and it the default is set to organize the list alphabetically (first authors last name). I really want to add a “number” column so that I don’t have to manually input numbers before each journal name. There are 250 of them and I am going to be adding and taking away from the list. There must be a simple solution to this? Please??
Thanks,
Elaine

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Does the number stay with each item as the table is sorted and filtered? If so then I would suggest looping over the data (from wherever you load it) and simply adding the index counter to the data. If you are Ajax loading the data then the ajax.dataSrc option can be used for that.

    Allan

  • erobbinserobbins Posts: 2Questions: 0Answers: 0

    Hello,
    The list is in the order dates (the items are actually a list of published articles), from previous to current. So, no the numbers do not stay with each item. For instance, if I decide to take out a few items because I don't feel they are as important, the numbers would be altered, not allowing for any gaps. So, if I decide to take out #4 in 1,2,3,4,5, the number 5 would now be 4. Does that make sense?

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Sure. Perhaps this example will be of interest then.

    Allan

This discussion has been closed.