web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / filters view based on ...
Power Pages
Unanswered

filters view based on the view you open the record in

(0) ShareShare
ReportReport
Posted on by 14

Hello all! 

 

I don't now how to explain this but i try.. The issue is regarding two custom entity lists.

I want open a record, and remember the view of the record. 

 

So if i open a record from "Cancelled Workgroups" view (see picture 1). I want that record to remember its view and show other records from "Cancelled Workgroups" view and not "Active Workgroups" view (see picture 2). 

 

What do i need to do to solve this issue? 

Can i change the view based on GUID from the record i open?

Any ideas?

 

Thank you!

 

Best Regards 

Kim Roar Bromark

 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Hi

     

    I am just a bit curious on what you are showing on your second page? how or what view is showing up there? 

     

    My initial thoughts:

    • I would add some flag representing the view, you can loop the data via JS/jQuery and modify the URL / details
    • now from the seconds page I guess you might need another JS to read the query string getting the view that is opening from
      • I wrote a while ago a JS for this, hopefully still works (you just need to define the selected index representing the view): 

     

    var selectViewControl = $(".view-toolbar").find(".view-select").find("li").find("ul");
     var options = selectViewControl.find("li");
    
     var selectedOption = options[selectedIndex];
    
     if (!!selectedOption) {
     $(selectedOption).find("a").trigger("click");
     }

     

    I hope this didn't make you more confused 😉
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Krbromark Profile Picture
    14 on at

    The second page left navbar is build like this:

    https://ulrikke.akerbak.com/2020/10/05/navigate-between-records/

     

    My colleague write this blogpost today. Do you think your idea would stil work?

     

    Best regards

    Kim Roar Bromark 

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    thanks, I will try to check that post and see how it's built

    in the meantime, @UlrikkeAkerbæk any ideas here, can you check my proposal above to see if it would work?

     

    cheers

    Oliver 

  • Verified answer
    Ulrikke Akerbaek Profile Picture
    101 on at

    Hi to you both @Krbromark  and @OliverRodrigues.

     

    Your solution with Custom Javascript on the entity list could work, @OliverRodrigues. We would use your short script to get the entity list view and add that to the URL as a parameter on the item action links. That's a great idea, thank you!

     

    @Krbromark and I will work on it tomorrow and get back to you whether it works or not. 

     

    Cheers! 

    Ulrikke

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard