Perhaps I'm still not understanding exactly what you are trying to do... but let me try again anyway...
If you are working with only a single data source which is supplying the data fields to both views, then when you refresh, it automatically affects both views. If you want a refresh button on both views, you only need put one on both views.
If you are working with multiple data sources, and each one is supplying different data fields to each view, then you will need to write some code which, when you click the refresh button, tells both data sources to refresh.
Does that help?

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Thanks!
But i want to refresh my queryfields so that i can do a new search.
since i have an option to search by view or by view 2, i want the refresh
button(In default view) to refresh both the views.So, now when i do a search
from view 2, i don't have to go back and delete the search in view 1.Is it
possible, to add such functionality?