cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nerdifand
Frequent Visitor

metadata filter missleading after changing view of entitylist

Dear developers,

 

we noticed that there is missleading behavior, when changing the view of an entitylist:

-the filters will reset, but remain selected

 

nerdifand_0-1661180357436.png

 

anyone experiencing the same issue?

how to solve this?

can we hook into a viewselection event? 

this event

 

 

$(".entitylist.entity-grid").on("loaded", function () {

 

 

will not work because it will introduce even more confusion.

 

be blessed

Ferdi

1 ACCEPTED SOLUTION

Accepted Solutions
nerdifand
Frequent Visitor

Dear Developers,

 

after the microsoft-support added this issue to their tasks to fix, we can now safely assume that this behavior is by design, however a design that is not thought to the end?

 

with some distance to the topic i was now able to implement a workaround:

 

$(document).ready(function () {
    $(".entitylist.entity-grid").on("loaded", function () {

        console.log($('#filterDropdownId > ul > li > a'));
        $('#filterDropdownId > ul > li > a').each(function (i, e) {
            console.log("registering onclick for view");
            $(this).on("click", function () {
                console.log("view clicked");
                global.need2reapply = true;
            });
        });

if (global.need2reapply) {
            global.need2reapply = false;
            console.log("reaplying filter");
            $('.btn-entitylist-filter-submit').click();
        }

    });
});

 

 

hope i could help!

View solution in original post

2 REPLIES 2
hugobernier
Administrator
Administrator

Hi @nerdifand would you mind providing a little bit more information on this issue? I can't quite understand the question and, by the number of views/lack of response, it seems like members from our community need a little more be to able to help.

 

Thanks for your understanding

nerdifand
Frequent Visitor

Dear Developers,

 

after the microsoft-support added this issue to their tasks to fix, we can now safely assume that this behavior is by design, however a design that is not thought to the end?

 

with some distance to the topic i was now able to implement a workaround:

 

$(document).ready(function () {
    $(".entitylist.entity-grid").on("loaded", function () {

        console.log($('#filterDropdownId > ul > li > a'));
        $('#filterDropdownId > ul > li > a').each(function (i, e) {
            console.log("registering onclick for view");
            $(this).on("click", function () {
                console.log("view clicked");
                global.need2reapply = true;
            });
        });

if (global.need2reapply) {
            global.need2reapply = false;
            console.log("reaplying filter");
            $('.btn-entitylist-filter-submit').click();
        }

    });
});

 

 

hope i could help!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,371)