Getting Document ID from empty Library Returns NAN

B

Bismarck

I have a browser based InfoPath 2007 form that users fill out and submit to
a MOSS 2007 Form Template Library. I set the file name during the submit by
using concatenate("Request - " + MAX( @ID) = 1)

This works great. It increments the ID based on the Retreived ID from the
Library. However, when the library is empy, it returns "NaN".

Any ideas how I can avoid this?

Bismarck
 
P

Paresh

I have a browser based InfoPath 2007 form that users fill out and submit to
a MOSS 2007 Form Template Library.  I set the file name during the submit by
using concatenate("Request - " + MAX( @ID) = 1)

This works great.  It increments the ID based on the Retreived ID from the
Library.  However, when the library is empy, it returns "NaN".

Any ideas how I can avoid this?

Bismarck

How do u retrieve the ID?

Thanks,
Paresh
http://www.openzeas.com/blogs/Paresh
 
S

Swathi (GGK Tech)

Hi,
While setting the filename, check the condition that Id is blank or not. If
it is not blank then only set the filename.
 
B

Bismarck

Send me your e-mail address and I'll send you a "How To" document I'm
putting together

Bismarck
(e-mail address removed)
 
S

Shiva (GGK Tech)

Hello,

If your ID field data type is integer then it will return ‘NaN’ for blank
value. You have restrict to check the blank values not allowed otherwise you
can set any default value for blank value.
 

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