Generating a unique ID (codeXX+codeYY+autoNumber) - InfoPath Dev
in

InfoPath Dev

Generating a unique ID (codeXX+codeYY+autoNumber)

Last post 05-11-2009 05:24 AM by swathip. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-06-2009 11:19 PM

    Generating a unique ID (codeXX+codeYY+autoNumber)

    Good day!

    I'm a new user of Sharepoint, Infopath and ASP.NET programming. Is it possible in sharepoint + infopath to generate a unique ID compossed of a code for example CUS + 001---> which is a autogenerated number? This code should be generated in the form created...

    If possible, can anyone provide me with a sample code i can study?

     Thank you so much. :)

    -Jeatte 

  • 05-07-2009 03:20 AM In reply to

    Re: Generating a unique ID (codeXX+codeYY+autoNumber)

    Hi, You can get the unique id for the submitted forms using getlistitems method which explained in the below link. http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx
    Swathip
    www.ggktech.com
  • 05-10-2009 06:27 PM In reply to

    Re: Generating a unique ID (codeXX+codeYY+autoNumber)

    hello swathip, thanks a lot for the great link. Though i havent actually tried it yet since its still quite confusing to me, thanks for the help. :D Im sure this will help.

     By the way, is it possible to get the first few letters of the an input from a textfield and add that to the unique ID being generated on the same form?

     thanks a lot. :D

     

  • 05-11-2009 05:24 AM In reply to

    Re: Generating a unique ID (codeXX+codeYY+autoNumber)

    Hi,

    Yes, you can get the few letters from the input of a text field using Substring function. It contains three arguments. It returns the substring of the first argument starting at the position specified in the second argument and the length specified in the third argument. After getting that, use concat function to concatenate the letters with ID.

    Swathip
    www.ggktech.com
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.