Disable ListViewCriteriaObjectCreatingController

StatusIDPriorityType
Closed36476MinorQuestion
ProfileReply
RossClient

Hi

Can you please provide me of a way to disable ListViewCriteriaObjectCreatingController. Either in Code or somewhere else. I have no idea where to do this.

Thanks
Regards
Nico

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello Nico!

Sorry for the delay with the answer.

To disable ListViewCriteriaObjectCreatingController, inherit From a Controller ListViewCriteriaObjectCreatingControllerWin. In constructor set active property to false.
Also you need to override the method OnFrameAssigned.

public partial class CustomListViewCriteriaObjectCreatingControllerWin : ListViewCriteriaObjectCreatingControllerWin
{
public CustomListViewCriteriaObjectCreatingControllerWin()
{
this.Active["CustomController"] = false;
InitializeComponent();
}protected override void OnFrameAssigned()
{

}
}

Feel free to contact us if you need further assistance or have additional questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

Ross

Hi Mariya!

I still can't get it to work.

I created a ViewController in the Project.Module called "CustomListViewCriteriaObjectCreatingControllerWin" as shown in code below.
But when I go into the model editor the controller is still there.

Partial Public Class CustomListViewCriteriaObjectCreatingControllerWin
Inherits ListViewCriteriaObjectCreatingControllerWin
Public Sub New()
Me.Active("CustomController") = False
InitializeComponent()
End Sub
Protected Overrides Sub OnFrameAssigned()
MyBase.OnFrameAssigned()
End Sub

Protected Overrides Sub OnActivated()
MyBase.OnActivated()

End Sub
Protected Overrides Sub OnViewControlsCreated()
MyBase.OnViewControlsCreated()

End Sub
Protected Overrides Sub OnDeactivated()
MyBase.OnDeactivated()
End Sub
End Class

Im new to the XAF Framework. I do apologize for the inconvenience.

Kind Regards
Nico

× This ticket is closed.

Write US