View Single Post
Old 02-13-2018, 11:01 AM
Norrit Norrit is offline
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333

This is a big problem if you mix logic in your UI what should be in your backend.
I'm guessing you've build some simple database structure using xml and want an id column. And instead of having some backend do the work (for example what SQL does with an autoinc) you want to do it manually in the UI.
I would say, back to the drawing board for this. Only way possible is if you loop through the nodes each time just to get your next free number. But again, this shouldn't be some UI job...