Hi,
I have an section control on my page & I need hide id based on some condition. I have implemented below code for hiding section control
CurrentView.ExecuteAction(ActionType.XOptionalRemove, "EULA");
But while executing that I get the followign error. The fieldname of the section is "EULA"
System.NotImplementedException: The method or operation is not implemented.
at Microsoft.Office.InfoPath.Server.DocumentLifetime.ViewHost.ExecuteAction(ActionType action, String xmlToEdit)
at ExternalAccountForm.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e) in D:\Inetpub\WWWROOT\InfoPath\Forms\ExternalUser\FormCode.cs:line 199
at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<>c__DisplayClassa.<add_Loading>b__3()
at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<add_Loading>b__2(Object sender, LoadingEventArgs e)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass34.<FireLoadingEvent>b__30()
at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)
An entry has been added to the Windows event log of the server.
Log ID:5337
What might be the issue?
Regards,
Vipul Mehta