<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Codeless and dataconnection-less random number generator challenge + now()</title><link>https://www.infopathdev.com:443/forums/thread/76181.aspx</link><pubDate>Wed, 07 Mar 2012 22:55:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76181</guid><dc:creator>s3ttt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76181</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Creating a unique key isn&amp;#39;t so much the impossible challenge.&amp;nbsp; The fact that basic and short identifiers are even a challenge is annoying.&amp;nbsp; Form numbers are simple, succinct, and not distracting.&amp;nbsp; It&amp;#39;d be nice to be able to make them without slowing down performance or requiring huge file names.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Codeless and dataconnection-less random number generator challenge + now()</title><link>https://www.infopathdev.com:443/forums/thread/76162.aspx</link><pubDate>Wed, 07 Mar 2012 12:14:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76162</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76162</wfw:commentRss><description>&lt;p&gt;I think there is a simpler way to get a unique key. How about &lt;i&gt;&lt;b&gt;concat(username, &amp;quot; - &amp;quot;, now())&lt;/b&gt;&lt;/i&gt;? It&amp;#39;s pretty difficult for the same user to submit two forms within the same second, so I think this should be unique, and you wouldn&amp;#39;t need to resort to custom code to generate a more complex random number or a GUID.&lt;/p&gt;</description></item><item><title>Codeless and dataconnection-less random number generator challenge + now()</title><link>https://www.infopathdev.com:443/forums/thread/76153.aspx</link><pubDate>Wed, 07 Mar 2012 00:46:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76153</guid><dc:creator>s3ttt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76153</wfw:commentRss><description>&lt;p&gt;Here was my formula to generate a random number.&lt;/p&gt;&lt;p&gt;Step 1:&amp;nbsp; number(concat(substring(string(today()), 6, 2), substring(string(today()), 9, 2))) &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This formula will return the month and day so 3-06-2012 is returned as a number (not a date) as 306.&lt;/p&gt;&lt;p&gt;Step 2:&amp;nbsp; string-length(CreatedBy) * Step 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; This formula multipled the previous monthday number by the number of characters in someone&amp;#39;s name.&lt;/p&gt;&lt;p&gt;&amp;nbsp;By limiting the result to 3 characters I sort of get a random number.&amp;nbsp; By then concatenating this with now(), I can ensure that the form name is never duplicated by just using now.&lt;/p&gt;&lt;p&gt;&amp;nbsp;How can I improve Step 1 or Step 2 so that the number is even more random.&amp;nbsp; Right now if the same user on the same day creates a form their form number will be the same for that date? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>