Using Infopath 2010, browser enabled form on Sharepoint 2010, coding is in VB.
I created a field called GoToView that get's the name of a view based on a Sharepoint list with a filter based on two drop down boxes. To verify the result I temporary show the content of this field in a text box. This works perfectly.
I created a button to switch views. I know this can be done with a action rule but I think I cannot pass on the value from GoToView into one of the rules to determine the correct view.
I've used this code to test the button witch works fine.
Public Sub CTRL14_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
Me.ViewInfos.SwitchView("PMI")
End Sub
My questions is: how can I replace "PMI" with the dynamic content of the GoToView field?