Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

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

 

  • Verified answer
    Ulrikke Akerbaek Profile Picture
    101 on at
    Re: filters view based on the view you open the record in

    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

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: filters view based on the view you open the record in

    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 

  • Krbromark Profile Picture
    14 on at
    Re: filters view based on the view you open the record in

    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,342 Most Valuable Professional on at
    Re: filters view based on the view you open the record in

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35