error LogID 5337 - InfoPath Dev
in

InfoPath Dev

error LogID 5337

Last post 11-18-2010 07:13 PM by jpat01. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-16-2010 04:17 AM

    error LogID 5337

     Hey, another newb question! :|

     

    I have applied these two codes in my infopath 2007 form:

     

    XPathNavigator xn = this.MainDataSource.CreateNavigator();
    XPathNavigator xnSaveLocation = xn.SelectSingleNode("/my:myFields/my:MySaveLocation", this.NamespaceManager);
    if (this.Application.Environment.IsBrowser)
    {
        if (xnSaveLocation.Value == "")
        {
            xnSaveLocation.SetValue(e.InputParameters["SaveLocation"].ToString());

        }
    }

     

    and 

     

    XPathNavigator xn = this.MainDataSource.CreateNavigator();
    XPathNavigator xnSaveLocation = xn.SelectSingleNode("/my:myFields/my:MySaveLocation", this.NamespaceManager);
    FileSubmitConnection fc = (FileSubmitConnection)this.DataConnections["SharePoint Library Submit"]; //replace with with the name of your data connection
    fc.FolderUrl = xnSaveLocation.Value.ToString();
    fc.Execute();
    e.CancelableArgs.Cancel = false;

     

    When I open the infopath form in webbased form it get error LogID 5337. What is wrong?

     

    Thanks in advnace!

     

  • 11-17-2010 05:53 AM In reply to

     bump - anyone? :S

  • 11-17-2010 11:16 AM In reply to

    You'll need to check your SharePoint error logs for more info so you can find out what is going wrong. I'm assuming your second code snippet isn't running when the form opens, so if the code is a problem, it would be the first snippet, which I'll assume is in your loading event?
    Hilary Stoupa

  • 11-18-2010 03:11 AM In reply to

     The strange thing is that no error log appear in the sharepoint logs! :(

     

    I got the code from: http://blogs.msdn.com/b/uksharepoint/archive/2009/02/03/top-tips-for-infopath-form-development-with-sharepoint-part-1.aspx TIP #3

     

    I followed the instructions there, but I'm not sure if I got the step 2 right, as I didnt really understand it

    "Create a property in your form’s main data source called ‘MySaveLocation’. Please not that you could also use the FormState Dictionary to store this value (as outlined in Tip 5). We are only storing as a form property here to show different ways of doing things"

     

     

  • 11-18-2010 02:51 PM In reply to

    Do you have a field in your template with the XPath /my:myFields/my:MySaveLocation?
    Hilary Stoupa

  • 11-18-2010 07:13 PM In reply to

     Yes, I do. I added a field and named it MySaveLocation - is that all?

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.