<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12048.aspx</link><pubDate>Sun, 18 Feb 2007 19:59:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12048</guid><dc:creator>marinaNZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12048.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12048</wfw:commentRss><description>Thanks everyone!  Seems like i've found the solution - the alternative to the suggestions you posted above.  This is what i did and it looks like it's working:&lt;br /&gt;1 - promoted the unique code (e.g product number) as a column to the Sharepoint library&lt;br /&gt;2 - added this library as a data connection&lt;br /&gt;3 - set up the field value using the 'max' formula that retrieves the biggest number in the product code column in the Sharepoint form library '+1'.  (the formula in the end looks like this: "max(@PC) + 1"&lt;br /&gt;&lt;br /&gt;I was just playing with the formula and didn't expect it to work without having a 'sum' function, but looks lilke it does! &lt;br /&gt;&lt;br /&gt;Thanks for the references to the other topics - i'll find them useful in other scenarios, i'm sure.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Marina&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12047.aspx</link><pubDate>Fri, 16 Feb 2007 06:58:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12047</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12047</wfw:commentRss><description>Hi MarinaNZ,&lt;br /&gt;&lt;br /&gt;Check out these links,&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=639&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=639&lt;/a&gt;&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=5eb5c19c1e2747bc965fe1720534d8dd&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=5eb5c19c1e2747bc965fe1720534d8dd&lt;/a&gt;</description></item><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12046.aspx</link><pubDate>Thu, 15 Feb 2007 06:36:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12046</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12046</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You can create a GUID and Concate that GUID to any text you want(Ex:PC+GUID) and assign the value to the field you want show in the infopath form.&lt;br /&gt;&lt;br /&gt;Formula for Generating GUID:System.Guid.NewGuid();&lt;br /&gt;&lt;br /&gt;I hope this will help for you.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description></item><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12045.aspx</link><pubDate>Thu, 15 Feb 2007 06:11:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12045</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12045</wfw:commentRss><description>Hello &lt;br /&gt;&lt;br /&gt;Why Dont You try using a GUID to be unique to each form created?&lt;br /&gt;</description></item><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12044.aspx</link><pubDate>Wed, 14 Feb 2007 20:00:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12044</guid><dc:creator>marinaNZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12044</wfw:commentRss><description>Sorry, I may not have described properly what i'm trying to achieve.  there's a field that i would like to autopopulate every time a new form is opened from a template.  the value that I would like to have in the field is e.g "PC-" and a number that would be +1 from the field previously populated in the form that was last created in the library.  Or the other option is to apply some logic for generating the number, the important thing is that the number is unique, i.e. it does not duplicate any other ones that were generated before.&lt;br /&gt;&lt;br /&gt;Thanks again!</description></item><item><title>Re: Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/12043.aspx</link><pubDate>Wed, 14 Feb 2007 05:08:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12043</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12043</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Check out this link, it may be helpful for you,&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=2964&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=2964&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Unique number in text string field</title><link>https://www.infopathdev.com:443/forums/thread/11765.aspx</link><pubDate>Wed, 14 Feb 2007 03:46:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11765</guid><dc:creator>marinaNZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11765</wfw:commentRss><description>Is there a function that I can run in a text string field that will be automatically populated every time a new form from a template is created?  Ideally it would be a number picked from the form last created using this template (if it's of any help - the form is stored on the SharePoint site)&lt;br /&gt;&lt;br /&gt;cheers!</description></item></channel></rss>