I created a web service to generate the number so it can be used in infopath 
form as well.

Ken

Date: Thu, 30 Jul 2009 13:39:26 +1000
From: [email protected]
Subject: Pre-generated list order numbers
To: [email protected]
















Afternoon folks,

 

I have a need to create a SP list which, when users create a
new list item entry, a new unique ‘order‘ number will be presented
to them and displayed on the newform.aspx, before the list item is actually
created.  So the first thing they see is a unique number (which stays with
the item as a key value when they commit it and is from that point forward not
changeable), followed by normal editable fields for the list item.

 

Anyone done anything like this before?  I’m
thinking of creating two lists, one being the aforementioned list (call it list
A) and the 2nd being a ‘administration’ list which
essentially contains a variable/value of the last used number.  When someone
hits new on list A, it increments the value and gives the next number.  To
do that, I’d need to edit newform.aspx to display the new ID value, then
somehow store it with the list item when it gets committed and make it not
editable on editform.aspx.  Anyone know of any better ways to achieve
something like this?

 

 

Kind regards,

 

Chris Milne

 







Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: 
http://www.codify.com/lists--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to