using a run query button on a secondary view - InfoPath Dev
in

InfoPath Dev

using a run query button on a secondary view

Last post 05-13-2011 08:41 PM by morphguy112. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-07-2010 01:31 AM

    using a run query button on a secondary view

    Hi,

     I currently have a form set up which uses 2 buttons on the main view to switch between views 'b' and 'c'.

     On these 2 views i have a 'run query' button that takes a value from the same view, and brings info back from a DB.

     The problem i am having is that when the 'run query' button is pressed, it automatically takes me back to my default view. Is there any way of keeping the view once the button is pressed so i can display the information or is this not possible using views?

  • 12-07-2010 04:57 AM In reply to

    Re: using a run query button on a secondary view

    There’s a woman were I work who was having similar problem and I found a possible solution from this site, basically it was something to do with how the data sources and views interact. I’m not sure if she got round to checking the link below but it did make sense when I read it.

    http://www.infopathdev.com/forums/p/1094/3886.aspx

     

  • 12-07-2010 09:18 AM In reply to

    Re: using a run query button on a secondary view

    Worst case -- put all your views on your default view in separate sections. Then add a field to your data source (or use a secondary XML data source) simply to control which section is displayed. The buttons that switch between views simply set the field that the conditional formatting for the sections is based on. I use this a lot to get around the issue that we can't switch views and email in the same ruleset without sending a blank email.

    Hilary Stoupa

  • 05-13-2011 08:41 PM In reply to

    Re: using a run query button on a secondary view

     What I did for my code is use a custom rules button with rules.  Action 1 would be to run query, Action 2 would then be to switch to that view you are in.   Works for me right now, hopefully this will help you out as well!!

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