SharePoint Diva

March 19, 2009

Name Template Returns “NaN”

Filed under: SharePoint, ShareVis — sharepointdiva @ 10:52 pm

In ShareVis, linking a Name Template to a Form, I’ve found that it’s best to let the Form create the Name Template and then modify it in the Process.  I’ve struggled with creating it in the Process first and then adding it to the Form.

nametemplate1

Once that’s working though, I ran into trouble with the number showing up as “NaN”.  “NaN” means Not A Number. 

nan

Which would make sense if my field was a Whole Number (integer), but it’s Text (string).  I’ve checked it over and over.  And then I realized it used to be a number.  When I was first adding the fields, I had made it a number and then later changed it to text.  However, something was still treating it like a number in the form view.  I deleted and readded the field. Then reset the ShareVis.FormName custom control to the new field.  Then republished the form and the process.

nan2 

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.