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
Art - 29 May 2007 21:50 GMT
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
> hi
> i want generate a unique no in infopath form . this no , i want use
[quoted text clipped - 3 lines]
> help meeeeeeeeeeee
> rao
Ramana - 31 May 2007 07:59 GMT
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.

Signature
k.Ramana Reddy
http://www.autonomysystems.com
> hi
> i want generate a unique no in infopath form . this no , i want use
[quoted text clipped - 3 lines]
> help meeeeeeeeeeee
> rao
Kalyan G Reddy MVP (GGK Tech) - 01 Aug 2007 11:06 GMT
Hello
Did you want to create a unique number based on some fields value in your
form?

Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> hi
> i want generate a unique no in infopath form . this no , i want use
[quoted text clipped - 3 lines]
> help meeeeeeeeeeee
> rao
Spaniard - 12 Aug 2007 21:14 GMT
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!