Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2006

Tip: Looking for answers? Try searching our database.

InfoPath Change Variable Value from Sharepoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
t3jjj - 20 Nov 2006 22:08 GMT
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
andrew_s - 21 Nov 2006 18:30 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.