I appreciate if someone could help this newbie. In jscript.js, I have a
defined variable that referneces a list in Sharepoint. I have a secondary
data source and successfully read into the variable the value. In this case
1. It returns as 1.000000000000. I simply want to take the variable and
change it from 1.0000000000 to 1. How do I do that to the variable? Here
are the lines:
//retrieve auto_num value
var object2 = XDocument.GetDOM("Retrieve AutoNumber").selectSingleNode("/dfs:
myFields/dfs:dataFields/dfs:AutoNumber/@auto_num");
//returns 1.00000000000, round value
object2.text = round(object2.text) //not working
Try parseint method?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/e
86471af-2a0e-4359-83af-f1ac81e51421.asp
> I appreciate if someone could help this newbie. In jscript.js, I have a
> defined variable that referneces a list in Sharepoint. I have a secondary
[quoted text clipped - 9 lines]
> //returns 1.00000000000, round value
> object2.text = round(object2.text) //not working
t3jjj - 21 Nov 2006 19:05 GMT
Awesome. Thank-you for your help...
>Try parseint method?
>
[quoted text clipped - 5 lines]
>> //returns 1.00000000000, round value
>> object2.text = round(object2.text) //not working