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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


605 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