Thursday, October 1, 2009
How To Call a DetailView On Action
Take a View Controller add a SimpaleAction and on Execute Event write Code
ObjectSpace objectSpaceInternal = Application.CreateObjectSpace();
CurrentConfig cc = CurrentConfig.GetCurrentConfig(objectSpaceInternal.Session);
objectSpaceInternal.CommitChanges();
e.ShowViewParameters.CreatedView = Application.CreateDetailView(objectSpaceInternal, cc);
e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
e.ShowViewParameters.Context = TemplateContext.PopupWindow;
e.ShowViewParameters.CreateAllControllers = true;
DialogController dcPeriod = new DialogController();
dcPeriod.Accepting += new EventHandler(dcPeriod_Accepting);
e.ShowViewParameters.Controllers.Add(dcPeriod);
Note: currentConfig is class whose detail view you have to call;
Subscribe to:
Post Comments (Atom)
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...
-
CriteriaOperator criteria = new BinaryOperator("Age", 30, BinaryOperatorType.Greater); CriteriaOperator criteria = CriteriaOperato...
-
SortingCollection sc = new SortingCollection(); sc.Add (new SortProperty("field on which you want to sort",DevExpress.Xpo.DB.Sorti...
-
Minification and Uglyfication in Angular Deployement Minification : While building Angular Application white spaces , unused variable , u...
No comments:
Post a Comment