Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Sequential Number


Go to End


551 Views

Avatar
voodoochile

Community Member, 52 Posts

16 May 2012 at 4:39pm

Hello All

have finally come back to this problem had to leave it for a while but i need to get it solved now.

i am trying to get a sequential number for a each record in a databoject, I cannot use the Record ID for this.

In a Previous Post swiba posted a snippet for me (Thank you) i could not get this to work however it would do what i want it to so its likely i have not done something correct.

Here is the post from a few months ago http://www.silverstripe.org/general-questions/show/18789

also one thing to note is that the field no matter what i do the field always has a default value of 0 i have tried changing this.

Thanks if you can help further