ModifySQLQuery - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

ModifySQLQuery

Last post 10-31-2012 07:59 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-30-2012 07:14 PM

    ModifySQLQuery

    Hi I have the following command on a change fields value: concat("ModifySqlQuery /dsname=SchoolPositions /where= WHERE hr_wdep_code =", .) The problem is that it still return ALL the data in the table and IGNORE the where clause. On closer inspection under SQL Profiler I found the following: SELECT hr_wdep_code, hr_posn_numb, hr_posn_desc FROM v_SchoolPosition WHERE (hr_wdep_code =7036) AND 1 = 0 go IF @@TRANCOUNT > 0 ROLLBACK TRAN go set implicit_transactions off go SELECT hr_wdep_code, hr_posn_numb, hr_posn_desc FROM v_SchoolPosition WHERE hr_wdep_code =7036 go set implicit_transactions on SET NO_BROWSETABLE ON go SELECT hr_wdep_code, hr_posn_numb, hr_posn_desc FROM v_SchoolPosition WHERE 1 = 0 go IF @@TRANCOUNT > 0 ROLLBACK TRAN go set implicit_transactions off go SELECT hr_wdep_code, hr_posn_numb, hr_posn_desc FROM v_SchoolPosition go I'm not sure what I did wrong nor how to fix it :(, does anybody have any idea? Your help is much appreciated Regards Peter
  • 10-31-2012 07:59 AM In reply to

    Hi - have you put the Qdabra Rules error node on your form so you can see if there is an error? Are you just running the command, and not re-executing the data connection afterward? From the user guide:

    This command will allow you to add a WHERE clause to an existing SQL data connection. It will execute the SQL query after adding the WHERE clause.

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

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