Custom Record Number
I made another modification by adding the custom record number, especially if I want to display the record number on each record that found from the filter form.
Currently, I can only use the id field for this purpose. IMHO, this id field has two limitations. They are:
1) If I delete one or some records directly from the table, then there will be some missing id when I display the remain records from that table.
2) Similarly with the first condition above, if I filter the certain records, then the value on id field or column will not be continuosly anymore. For example, I currently having 10 record in a table. Then I filter based on the certain data/keyword, the result will become 3 records. They are the first, the third, and the seventh record id. So the result will become:
| id | name |
| 1. | The first record | | 3. | The third record |
| 7. | The seventh record |
So, by using the modification I made, that result will become like this:
| rec | name |
| 1. | The first record | | 2. | The third record |
| 3. | The seventh record |
Please visit the full article and code from: http://www.openscriptsolution.com/2009/09/21/how-to-add-custom-record-number-in-table-list-of-podpages/
I hope this is helpful for you. Thank you very much.
Sincerely, Masino Sinaga


