Formating a number display

D

Damaris

Hi guys, I create a form that are published on a Share Point form library.
Each form needs to have a sequential number with 04 digits, for example:

1st doc: DOC0001
2nd doc: DOC0002
3rd doc: DOC0003
....

I already have this sequential number using the function " count(@ID) + 1" ,
where ID is a query of the indentification number on the form library.

Now I need format these number that apears as 1, 2, 3 to apears as 0001,
0002, 0003...

Someone have any suggestion?

Thanks,
 
G

Greg Collins [InfoPath MVP]

Use the format-number() function:

format-number(count(@ID) + 1, "0000")
 

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