Hi Everyone,
I am facing the issue like.
I have created the database table with
db.define_table('testcases',Field('Testcase_Name',requires=IS_NOT_EMPTY()),
Field('Time_stamp','datetime',requires=IS_NOT_EMPTY()))
controller code:
def testcases():
form = SQLFORM(db.testcases).process()
grid = SQLFORM.smartgrid(db.testcases)
return locals()
I have inserted 10 testcases in to above "testcase" table, If I delete the 5th testcase then the sequence of the row id's are missing for example:(1,2,3,4,5,6,7,8,9,10) after deleting the 5th row then it was displaying as (1,2,3,4,6,7,8,9,10)
my requirement is to display as(1,2,3,4,5,6,7,8,9).
Please give me the solution to resolve the issue.