How to add auto Line Number in form grid using extension class?


I have created a new table and add LineNum field for auto numbering in grid like sales Line form . Now i have added datasource in existing form called SalesQuotationTable. I have created a extension class to override create method of form datasource how can i add auto line numbering in grid in extension class ?

So you have created a extension form and added a data source to it?

Have you tried by setting the Counter field property of the data source to LineNum?

Yes i have added but like in ax 2012 we have to override create method with set append parameter to True. how can i do the same in extension class ?

I think adding counter field would suffice. Is it not generating the line number even after adding the property?