Handling a document id

A

Anders

Hi,

I am creating an InfoPath - Sharepoint solution. I would like the document
to have a textbox containing document id to be set when the document is saved
in sharepoint or uploaded to sharepoint. I would like to read the highest
existing document id from sharepoint and add the next number in turn to the
new document.

I haven't got a clue what to do.
Any hints are most appreciated.

Cheers
Anders
 
F

Franck Dauché

Hi Anders,

You can search in this Newgroup a post dated 10/21: "uniqueidentifier in
Infopath". It will get you started.

Regards,

Franck Dauché
 
A

Anders

Thanks,

I think I was a little fuzzy...

I am creating a Quotation form that should contain a quation number. I would
like the quotation number to be collected from the Sharepoint site where the
form is located where it reads the highest existing quoatation number and
gives the current document the next number available.

I have created a data source that collects the quotation number from the
sharepoint site. I have tested to in the QuotationNo text field define a
function that get the max QuotationNo from the datasource and adds one. This
works fine.

I would however like to call this function first when the document is saved.
Otherwise there is a risk that end users will get the same QuotationNo.

So, I would like to:
- Query a sharepoint datasource where Quotation No is. This I have solved.
Document.DataAdapters["Specialty Products Offerings"].Query();
- Get the highest QuotationNo from from the dataadapter and present it in a
textbox.

Thanks for any help!!

//Anders
 

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