Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • 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.

                                Scenario Filtering.png
                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date
                                Rating
                                Importance
                                Sort by
                                0

                                Hello BJ,

                                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.

                                You must  log in  or  register  to leave comments
                                0

                                Hello Dennis,



                                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()]]");
                                }
                                else
                                {
                                // --------- 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

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                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.