At the Ex 1255, I figured out how I can modify the source ( = SchedulerActivityListViewController.cs) for various filtering and sorting scenario. Even if I don't understand the 10% of all the code, I fullfilled my needs well that way(Guessing Modification).
But I hope to control the Activity view between serveral senarios.
Please refer the attached screen shot for my needs.
And pls, advice what is the best way to implement this.
Assuming that your drop downs are represented by XAF Actions, you can handle their Execute events and in their handlers access the ListView.CollectionSource to filter it as you require.
This approach is detailed in our documentation.
I hope you find this information helpful.
I solved this problem by making another activity listview and some changing of the source code.
The followings are the core change of the SchedulerActivityListViewController.cs source code.
if (View.Id == "Activity_ListView")
// --------- If the TargetView is Original Activity Listview, My group members Schedule will be displayed -------
// --------- This ListView cannot be Added, Deleted, Updated but only Viewed
criteria = CriteriaOperator.Parse("[Groups][[Employees][[Oid] = CurrentUserId()]]");
// --------- If the TargetView is Annother Activity Listview, Only My Schedule will be displayed -------
// --------- This ListView can be Added, Deleted, Updated and also Viewed
criteria = CriteriaOperator.Parse("Oid = ?", SecuritySystem.CurrentUserId);
Thank you and have a nice day
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.