Comparing current view with a string - InfoPath Dev
in

InfoPath Dev

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: Previous Next
  • 06-23-2008 11:58 PM

    • sweta
    • Not Ranked
    • Joined on 06-17-2008
    • Posts 15

    Comparing current view with a string

    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
    • Not Ranked
      Male
    • Joined on 07-26-2006
    • India
    • Posts 22

    Re: Comparing current view with a string

    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).

    Shekar
    http://www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.