generating unique number in infopath form while it is submitting.

R

Rao

hi
i want generate a unique no in infopath form . this no , i want use
through my application as a reference no..
hre my exact requirment is , generate a Leave_ref_number for employee,
when is applying for leave in my module
help meeeeeeeeeeee
rao
 
A

Art

Search for previous posts about numbering sequences.

In SQL you can create a field named autonumber and it will increment 1 each
time a record is added.

You cannot create a number before a record is created though
 
R

Ramana

Hello,

You can also generate unique GUID in Load event using "Scriptlet.TypeLib"
ActiveX object (if you are in JavaScript):

var guid =
new ActiveXObject("Scriptlet.TypeLib").guid.substring( 0, 38);

or using System.Guid.NewGuid() method (if you are in .NET).

Assign this guid to your Leave_ref_number for employee.

I hope this will help for you.
 
K

Kalyan G Reddy MVP (GGK Tech)

Hello

Did you want to create a unique number based on some fields value in your
form?
 
S

Spaniard

I would like to be able to do this without using a backend database. Forms
will be submitted/stored on Sharepoint and I do not want to generate a random
unique number. I would like a unique sequential number.

I lack the programming knowledge as well as the knowledge as to where to put
the code. Can anyone help me out?

Thanks!
 

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

Top