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 / How to get td value fr...
Power Pages
Answered

How to get td value from lookup modal ?

(0) ShareShare
ReportReport
Posted on by 12

I have the following case: 

In my form , after I pres the first search button I get a list of items.

In the list of items ,there is a type column.

I need to filter the results of the next lookup field based on the type value.

Is the any way to get the type value of the selected row in the list with javascript and filter with that ?

Screenshot 1.png

Screenshot 2.png

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @IulianBurlacu 

    I think for your use case. You can implement a metadata filter. Adding reference below 

     

    official URL: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/entity-lists 

     

    ragavanrajan_0-1638838431912.png

    Additional info: 

     

    https://softchief.com/2021/08/23/step-by-step-enable-configure-metadata-filters-for-entity-list-in-power-portal-for-products/ 

     

    so you can have a metadata filter for any columns you like. 

     

    Hope it helps. 
    ------------

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

  • IulianBurlacu Profile Picture
    12 on at

    thank you for your answer, but I want the filtering to happen behind the scenes. In other words ... I want to implement something like this code: 

    $(document).ready(function (){
     $(".entitylist.entity-grid").on("loaded", function () {
     $(this).children(".view-grid").find("tr").each(function (){
     // do something with each row
     $(this).css("background-color", "yellow");
     });
     });
    }); 

     to my first lookup modal / view !

    Where can I find that view ? Should I just write the javascript in the basic form?

    I have seen some elegant solution that @OliverRodrigues was suggesting but I dont know how to get the elements of that lookup modal.

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

    @IulianBurlacu were you able to follow this article: http://oliverrodrigues365.com/2021/01/24/power-apps-portals-custom-lookup-filter/ ?

  • IulianBurlacu Profile Picture
    12 on at

    I converted the lookup to a  dropdown and filtered the results with the help of webapi. So I solved one problem but I'm still having problems finding the right selectors for different modals on the page when inspecting it. Its a lot of detective work involved which takes a lot of time.

    I'd love some tips and tricks on that one or maybe some real consulting time.

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
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard