Automatically Generate number

K

Kamlesh

Is there a way to have Infopath 2007 automatically generate a number?
I would like to submit the case forms to a sharepoint v3 form
library. I would also like to have the form generate the case number.
The case numbers go as follows: 06-00001, 06-00002, 06-00003 etc...
Thanks ...
 
K

Kalyan G Reddy MVP (GGK Tech)

Hello Kamlesh

You should use code to automatically generate a number. Also do you want to
save the forms in sharepoint with this case number you generate?
 
K

Kamlesh

Hello Kamlesh

You should use code to automatically generate a number. Also do you want to
save the forms in sharepoint with this case number you generate?

--
Kalyan G Reddy - INFOPATH MVP 2007http://www.ggktech.com





- Show quoted text -

yes, I want to save form with this code number in sharepoint
 
K

K.Ramana Reddy(GGK Tech)

Hi,

Without the number being generated from a web service or a database, the
number isn't guarenteed to be unique.

If you aren't requring uniqueness, there are a number of ways to generate
almost random numbers. However, there is no real way within the bounds of
the current form to create an incrementing number. For that you would have
to, as you say, use a database or a web service.


I hope this will help for you.
 
S

Shiva, GGK Tech

Hi,

Do you want to set the case number to one field in your form while
submitting? If you know the how many forms are submitted in SharePoint
library then we can increment one value for that count then assign this value
one field.

To get the how many forms are submitted in that library using the
GetListItems web service method. You can read the below link then you will
get more information on GetListItems method.

http://www.infopathdev.com/blogs/ag...rm-Library-Using-GetListItems-Web-Method.aspx
 
P

Pankaj Garg

Do you know what is code? i am not familiar with codes. Yes, I will be saving forms in Sharepoint and we use web based forms.

Any help would be really appreciated.

Thank you

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
P

Pankaj Garg

Do you know what is code? i am not familiar with codes. Yes, I will be saving forms in Sharepoint and we use web based forms.

Any help would be really appreciated.

Thank you

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top