in

InfoPath Dev

Not Able to Pull Data From a SQL Database

Last post 05-29-2008 04:01 PM by Clay Fox. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-29-2008 12:27 PM

    Not Able to Pull Data From a SQL Database

    I have created a InfoPath form that queries a datasource for a a user and then auto populates other fields on the form. I orginally designed this using an MS Access database and everything worked perfectly. I changed the datasources to point to a SQL database (The SQL view's structure is identical to the Access table) and now I get no results. Has anyone seen this before?

    Filed under: , , ,
  • 05-29-2008 01:07 PM In reply to

    Re: Not Able to Pull Data From a SQL Database

    That should not be a problem.

    I would verify the permissions on the view in SQL for the user's account, that is the most common.

    Is this a secondary connection or a main data connection? Are you actually sending a query parameter?

    Another test would be to create a new blank form and see if that works, that would tell you if the issue is in the form or with the connectivity.

     

  • 05-29-2008 02:13 PM In reply to

    Re: Not Able to Pull Data From a SQL Database

    Those were all great suggestions. I checked the security and it is good. I am using a secondary connection and querying it via JScript.

    I did try the final suggestion of recreating a form. I got a new error message:
    The following error occurred:

    'XDocument.DOM.selectSingleNode(...)' is null or not an object
    File:script.js
    Line:86

    I checked to see if my code was sending correct values by setting a XDocument.UI.Alert. The form sees the original variable value (xxxx). It sends the correct SQL to the database. But the database returns no values.

    I can forward the form and jscript if you would like to see it.

    Filed under: , ,
  • 05-29-2008 04:01 PM In reply to

    Re: Not Able to Pull Data From a SQL Database

    The basics would be just to set up a new form, with the data connection to load when opened, and then just dump the whole data set on a view as a repeating table to verify the data is being pulled in and the issue is not in script.

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