Thursday, October 1, 2009

How To Call a ListView On Action

Take a View Controller add a SimpaleAction and on Execute Event write Code And write this code on ONACTIVATED()Event simpleAction1.Active.SetItemValue("ObjectType", View.ObjectTypeInfo.Type == typeof(TrialBalance)); ObjectSpace objectSpace = Application.CreateObjectSpace(); CollectionSource collectionSource = (CollectionSource)Application.CreateCollectionSource(objectSpace, typeof(OperationUnit), "OperationUnit_ListView"); ListView listview = Application.CreateListView("OperationUnit_ListView", collectionSource, true); e.ShowViewParameters.CreatedView = listview; e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow; e.ShowViewParameters.CreateAllControllers = true; DialogController dcOU = new DialogController(); e.ShowViewParameters.Controllers.Add(dcOU); dcOU.Accepting += new EventHandler(dcOU_Accepting);

No comments:

Post a Comment

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...