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 / December 2005

Tip: Looking for answers? Try searching our database.

Assign a value to an XML node using Javascript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick Temple - 14 Dec 2005 18:23 GMT
I'm trying to set an XML node for one of my forms using javascript.  Example
code:

var X = a date brought in from another xml doc.

XDocument.DOM.selectSingleNode(/requirement/my:PMTProductManagementTool/DODate).text = X;

Everything works except the assignment of the date to the node.  I'm
assuming I'm doing something wrong, so if anyone knows that would be very
helpful.

Thanks

--Patrick Temple
Franck Dauché - 15 Dec 2005 05:09 GMT
Hi Patrick,

Are you using ISO8601 as a date format?
http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html

Regards,

Franck Dauché

> I'm trying to set an XML node for one of my forms using javascript.  Example
> code:
[quoted text clipped - 10 lines]
>
> --Patrick Temple
Patrick Temple - 15 Dec 2005 15:10 GMT
Franck,

Not really sure, its whatever InfoPath uses for the Date.  Example: 2005-12-15

I tried assigning a text value using a basic string field node as well with
the same negative result.

Thanks again

--Patrick Temple

> Hi Patrick,
>
[quoted text clipped - 19 lines]
> >
> > --Patrick Temple
 
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.