Solved

SharePoint Auto Numbering in InfoPath 2007

Posted on 2010-11-19
6
810 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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