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.

General Questions

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

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

Sequential Number


Reply

313 Views

Avatar
voodoochile

16 May 2012 at 4:39pm Community Member, 52 Posts

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 [url]http://www.silverstripe.org/general-questions/show/18789[/url]

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