Reset all field including Query fields - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Reset all field including Query fields

Last post 03-17-2011 01:17 AM by gshetye. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-15-2011 05:08 AM

    Reset all field including Query fields

    Hello Team

    I am new with infopath software.

    Currenly I have connected infopath form to access database.

    I have used query field and to search out data (part of field value) from database by using some C# programming code.

    After searching data it gives me data in repeating table.

     

    Now I want to clear all fields including query field to default position.

    By using New record button it clear only data fields.

    Kindly provide me code to in c# to clear infopath form.

    Thanks and Regards

    Gaurav

    Filed under: ,
  • 03-15-2011 06:51 PM In reply to

    Re: Reset all field including Query fields

    Hi Gaurav, I think you could accomplish the same effect if you used a rule to open a blank form and then close the other one. Add a rule that says "Open form at [location of form]" and then add another one that closes the old form -- you will probably want to close without saving. Hope this helps,

    Qwerty
  • 03-16-2011 01:09 AM In reply to

    Re: Reset all field including Query fields

    Hi Qwerty

    Nice logical idea and it working with me.

    But i got stuck at one place when I use search option it always ask me to accept security warning since each time I open new form.

    Any idea to avoid it.

     

    Gaurav

  • 03-16-2011 10:44 AM In reply to

    Re: Reset all field including Query fields

    What is the Security Level of your form template (Tools > Form Options > Security and Trust.) If it is domain, you may want to change it to Full Trust (make sure to sign it with a trusted certificate!).
  • 03-17-2011 01:17 AM In reply to

    Re: Reset all field including Query fields

    Thanks a lot........

    This idea working works for me.

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