Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2007

Tip: Looking for answers? Try searching our database.

generating unique number in infopath form while it is submitting.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rao - 26 May 2007 08:49 GMT
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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.