in

InfoPath Dev

New Record Button switches to default view

Last post 07-26-2008 04:10 AM by SusieW. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-25-2008 04:52 AM

    • SusieW
    • Not Ranked
    • Joined on 07-25-2008
    • Posts 2

    New Record Button switches to default view

    Hi everyone, I'm new to the post but have found some very useful information in the last few months that have helped me out tremendously, much appreciated. 
     
    I have a New Record button, a New Query button and 5 views, the default being 
    a menu selection using the switch view option on the button. When I run a 
    query or new record the screen switches to the default view (menu) where I 
    select the form(view) again and the results are there. How to stop the (menu) 
    default form from opening before I can see the results.
     
    Filed under:
  • 07-25-2008 06:54 AM In reply to

    Re: New Record Button switches to default view

    The built-in new Record essentially resets the form and is like opening a new one.

    I beleive you would want to have a button that just uses rules and then do the functionality your self or add it on to your submit automatically.

    What I do is set a incorrect value in a query field. Like 99999 for record ID, something I know will not be found in the data and therefore return any values.

    Then query the main data connection.

    Then you have your data fields with blanks again and ready for the user to input a new query value and start over.

  • 07-26-2008 04:10 AM In reply to

    • SusieW
    • Not Ranked
    • Joined on 07-25-2008
    • Posts 2

    Re: New Record Button switches to default view

    Hi Clay,

    Not too sure what you mean, sorry to be vague.  If I place a value in a field that I know will not be found then click the query button the form switches to the default view. That button I have removed now, (I found that if I used code to query, the view stays put), so I'm trying to get the New Record button to behave. When this is clicked it changes the view to the default (which is a menu selection) then when you select the form you were in it has a record with no values. What I'm trying to achieve is for the new record click not to switch views. Is there a JScript command for New Record, or should I try and clear values from the form when submitting has completed via a submit button.

    I think what I'm trying to achieve is when the user submits the data for the view to stay put with blank values in the field so they can input another record, is this possible with multiple views?

     

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