ExecuteSQLQuery and browser compatibility - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

ExecuteSQLQuery and browser compatibility

Last post 09-08-2012 08:17 PM by tenbao. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-31-2012 02:47 PM

    ExecuteSQLQuery and browser compatibility

    Please ignore this post. I did not force a field which had a rule to query a data source to return data to the server. Once I did this, the ExecuteSQLQuery command ran

    ------------------------------------------------------- 

    In the qRules User Guide, the PDF mentions that the ExecuteSQLQuery command is not browser compatible. But then on page 59 of 74, the table marks it as Browser compatible. Which is it? I haven't been able to use that command to return SQL data in the browser.

    qRules User Guide found here: http://www.infopathdev.com/files/folders/qrules/entry34834.aspx

  • 09-01-2012 11:32 AM In reply to

    Re: ExecuteSQLQuery and browser compatibility

    Hi Tenbao and thank you for your qRules forum question,

    The browser doesn't forward credentials to SQL; you might be able to hardcode the credentials in a UDC file - I would try that if the DB is on the same ShP server; there might also be a way to use SSO to use a fixed set of credentials to connect to it. We haven't tested these methods, but in theory they should work. However, I will ask support to update page 59 to be consistent with the earlier "non browser compatible" comment.

    I will also ask Hilary and others to test the UDC hacks and if those work, we'll document how to do it, but I think we'd still say it is non-browser. That's because the credentials will be fixed which means there will be no dynamic SQL permissions which isn't a best practice for security reasons.

    The best practice when you have a browser form and a SQL database is to use a Web service which forwards the credentials of the user. Qdabra's DBXL Web service does this. It's also a cost saving to you since you can use just one Web service for all of your InfoPath form templates. In other words, you don't have to create separate web services for each XSN. You just specify a new mapping. This loosely coupled architecture is possible because InfoPath always validates XML before it is submitted - so we know the XML will be structurally and data-type valid. That means the Web service doesn't have to validate the data before submitting to SQL. Which means the mapping can be loosely coupled. This loosely coupled architecture is a huge boon for business processes since form updates do not have to stop the submit process. For updates that change the XSN data source, you can simply publish a new document type and specify a mapping that maps to the same SQL tables as the previous version. In this way, you can smoothly transition from one version to the next without stopping the submit process. I.e. less maintenance cost and much lower impact to users submitting forms.

    If you can install a Web service in your environment, please give DBXL a go. We have a free trial on our sister site - Qdabra.com. The trial is good until September 15th, but we can extend you if you a month or two - just send us email.

    Thanks,

    Patrick

    Patrick Halstead
    Project Manager at Qdabra
  • 09-05-2012 07:21 AM In reply to

    Re: ExecuteSQLQuery and browser compatibility

     Hi tenbao-

    In our test scenario, we got this to work in the browser by converting the data connection to UDC and admin-approving the form.

    Does this match your scenario?

    We'll update the user guide to clear this up. Thanks for pointing out the issue.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 09-08-2012 08:17 PM In reply to

    Re: ExecuteSQLQuery and browser compatibility

    Yes , that's exactly what I did. It is an awesome thing to see as a non-programmer . :-)
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.