Friday, December 11, 2009

How To Find Object of Maximum Salary in XAF

GroupWiseMasterDailyLedger lt = ObjectSpace.Session.FindObject<<"GroupWiseMasterDailyLedger">>(CriteriaOperator.Parse(String.Format("Debit={0}",ObjectSpace.Session.Evaluate<<"GroupWiseMasterDailyLedger">>(CriteriaOperator.Parse("MAX(Debit)"), null))));

Here You Can Find Maximum Debit Object
And int maxValue = int.Parse(Session.Evaluate(typeof(class), CriteriaOperator.Parse("Max(salary)")));
int maxValue = int.Parse(Session.Evaluate(CriteriaOperator.Parse("Max(salary)")));

Note : Here donot Apply "" in GroupWiseMasterDailyLedger and also one lessthan and greater than Sign

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...