Solved

SharePoint Auto Numbering in InfoPath 2007

Posted on 2010-11-19
6
809 Views
Last Modified: 2012-05-10
I am trying to Create a Purchase order form using InfoPath published thru Sharepoint

So I download the Purchase order Template from Microsoft download and tweaked it.

Now i needed to create a Recurring number sequence .. So I found this web site to help me

http://www.bizsupportonline.net/browserforms/autonumber-infopath-form-submitted-sharepoint-library.htm  

Now It seems to work fine. it names the files and adds a number after each one, great..
 
but when i open the file I dont see the number I get a fasle in the text field. instead of the number  
0
Comment
Question by:gotti777
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:melli111
ID: 34173521
Could you possibly post your form here so I can take a look at it?  Make a copy of the form and change the file extension to .txt and then attach it to a new comment here.
0
 

Author Comment

by:gotti777
ID: 34173616
Sure
here you go

I have some rules for submit that create the numbers..
Purchase-Order-Test.txt
0
 
LVL 15

Expert Comment

by:melli111
ID: 34173774
Ok I see the problem... In the formula (on the rule on the submit button to set the value of the autonumber field) you have "autonumber = max(@ID) + 1"..... you don't need the "autonumber = " part... just the max(@ID) + 1.    Having the autonumber =  in the formula is checking to see if the autonumber field is equal to the max ID + 1... which returns a false value.  Get rid of that and you'll be good to go  :)
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:gotti777
ID: 34174172
Well i removed the autonumber = max  
a
it still names it right  but now when i open it it always reads a 5

 b
0
 
LVL 15

Accepted Solution

by:
melli111 earned 500 total points
ID: 34174255
Hello, you actually didn't want to remove the max - you need the max part.  In the value from your screenshot above change it to look:

max(@ID) + 1
0
 

Author Comment

by:gotti777
ID: 34174409
Perfect thanks....
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now