Comparing current view with a string - InfoPath Dev Sign in | Join | Help in Views InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Views » Comparing current view with a string Comparing current view with a string Last post 06-24-2008 01:37 AM by shekar. 1 replies. Page 1 of 1 (2 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 06-23-2008 11:58 PM sweta Joined on 06-17-2008 Posts 15 Comparing current view with a string Reply Contact Can anybody tell me a function which compares the current view with a string??? I tried something like this...string CurrentView = this.ViewInfos.ToString();if (CurrentView == "Managers Main view") ........ but this dint work out... 06-24-2008 01:37 AM In reply to shekar Joined on 07-26-2006 India Posts 22 Re: Comparing current view with a string Mark as Not AnswerMark as Answer... Reply Contact Hi string CurrentView = this.CurrentView.ViewInfo.Name;if (CurrentView == "Managers Main view") Note:CurrentView cannot be called in the Form Loading event. Try checking the above condition on view swithced event(if you want to check in onload). Shekarhttp://www.ggktech.com Page 1 of 1 (2 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Can anybody tell me a function which compares the current view with a string??? I tried something like this...
........
but this dint work out...
Hi
string CurrentView = this.CurrentView.ViewInfo.Name;if (CurrentView == "Managers Main view")
Note:CurrentView cannot be called in the Form Loading event.
Try checking the above condition on view swithced event(if you want to check in onload).