prepopulating data in infopath

B

baskar.g

how can i get the prepopulated number? for example i am
desingning a purchase order form,purchase order number
should be incremented each time while filling the form,
but it should not be the autonumber.How can i do this?
this should be published in the sharepoint portal server.


thanx in advance
 
J

James Roe-Smith

Hello baskar.g,

You need to know if you're always connected or not.

If you are always connected to the SharePoint server then you can maintain
a list of PO numbers issued. You could then use that list to ensure you don't
have duplicates when you issue a new PO. Be very careful to ensure that your
system copes with two users simultaneously attempting to get a new PO. It
is possible that you end up with duplicates if you don't consider this possibility.

If you are disconnected sometimes, then it would be useful to assign a GUID
as the PO number (or at least a hidden PO number). Then use something like
the date time entered as the PO. Something like 20041128164321, but salt
it with a hash of the user entering the PO. This should ensure unique IDs.

Does that help?

James.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top