PDA

View Full Version : need to work out how to increment a counter after pressing a button



joolsr
11-12-2008, 03:56 PM
Hi

I am looking for a means in the wiki to have a Drawing number variable, which is incremented by 1 each time someone clicks a button to take a drawing number. It would also be good to be able to label the drawing number with a drawing title optionally. ie for a project D1567, the first drawing number would be D1567-001

Then the next user when they press the button, gets the next sequential number in the list, ie D1567-002 etc

The first part of the D number could be derived from the page title, or could be typed in manually.

I'm not a programmer, but can hack code a bit if someone has done something similar.

If anyone can help, I'd be pleased to listen :)