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 Apps / Model-driven app self-...
Power Apps
Unanswered

Model-driven app self-refrencing lookup filter using Javascript

(0) ShareShare
ReportReport
Posted on by 7
 

Screenshot (12).png

Capture2.JPG

I need to write a javascript code to return fields with designation as "Manager" in the Manager lookup column in Model-Driven app.
Here is the code:

 
 

Capture.JPG

Give solution to achieve it.

 

 

 

 

I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @ChandruHemu ,

     

    We can implement this requirement without js.

    vxiaochenmsft_0-1686018063101.png

    vxiaochenmsft_1-1686018076778.png

    vxiaochenmsft_2-1686018088116.png

    Save and publish.

    vxiaochenmsft_3-1686018115445.png

    vxiaochenmsft_4-1686018134721.png

     

    Best Regards,

    Wearsky

  • ChandruHemu Profile Picture
    7 on at

    Hi @v-xiaochen-msft 

    On performing the above steps, able to filter the columns, but the default view is showing all the employees list.

    Screenshot (15).png

    Need to click all records, then only showing filtered records

    Screenshot (16).png

    Please provide a solution to solve it.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @ChandruHemu ,

     

    Please try this:

    vxiaochenmsft_0-1686027922575.png

     

    Best Regards,

    Wearsky

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard