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

Tip: Looking for answers? Try searching our database.

undefined is null or not an object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shawnZ - 17 May 2005 15:25 GMT
I have a submit button that submits to sharepoint even if the form already
exists.  Meaning when I go in and open a page I can edit it a change it and
submit it again (I do not want to overright it - I want it posted
separately). I found some code at
http://www.sharepointu.com/forums/m_7453/mpage_2/tm.htm However, when I
implement this I get the following errors:
'undefined' is null or not an object at (mypage.FileName = fileStr;)
Some of the code is shown below:

var mypage = XDocument.DataAdapters["Submit Adoption"];

mypage.FileName = fileStr;

mypage.FolderURL = myLocation;

mypage.Submit();

Can someone please explain what I am doing wrong?
Scott L. Heim [MSFT] - 17 May 2005 18:27 GMT
Hi,

Have you stepped through the code to verify all of your variables have
valid, correct values? For instance, does "fileStr" return what you expect?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights
shawnz - 17 May 2005 20:50 GMT
Thanks for the reply.  I found a different code example and used that. :) The
link is:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;826993
This will check to see if the form exist - I added a while loop to my code
so that if the filename exists it will add "RE-" until it does not exist and
then submits to sharepoint.

> Hi,
>
[quoted text clipped - 5 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
 
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.