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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / colMap show icon on la...
Power Apps
Unanswered

colMap show icon on layout

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

in the SharePoint list, I have two Tower: Tower A & Tower B in the LocName field

1.png
I also have two screen for each tower with different floor plans

2.png
How do I display the icon corresponding to each tower on the layout? (that means if LocName is Tower A it will show only the desk coordinates of Tower A)

3.png

Thank you very much.

Categories:
I have the same question (0)
  • kinghnvn Profile Picture
    on at

    @StalinPonnusamy

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kinghnvn ,

     

    You could use App.ActiveScreen.Name to get the current screen's name. On your side , you could filter the table by this formula:

    Filter(SPList,Substitute(LocName," ","")=Last(Split(App.ActiveScreen.Name,"-")).Result)

     

    Best Regards,

    Bof

  • kinghnvn Profile Picture
    on at

    Hi Sir,

    I'm trying to use the code as below, is that correct?

    kinghnvn_0-1664336245926.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kinghnvn ,

     

    First , the expression is wrong. Cause you need to use ';' to split two formulas .

    vbofengmsft_0-1664336799093.png

    Secondly, put the App.ActiveScreen.Name in OnStart is useless , cause App.ActiveScreen.Name only return current screen's name. If current screen is screen1, it will return screen1. If current screen is screen2, it will return screen2.

     

    Best Regards,

    Bof

     

  • kinghnvn Profile Picture
    on at

    I really don't know how to use the code, could you please explain more detail?
    I have two screens below

    kinghnvn_0-1664339195149.png

    My sharepoint list:

    kinghnvn_1-1664339296207.png

     

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @kinghnvn ,

     

    The information you provide is not enough for a complete solution. Maybe you could try to provide more details?

     

    Maybe you could try:

     

    In what control do you need to display the records in this SP list, put this formula in the items property of this control.

     

    Best Regards,

    Bof

     

  • kinghnvn Profile Picture
    on at

    I'm using the colMap for the items property, I have tried to put your code in the field but it doesn't work

    Items -> MainGallery/ WaypointIcon

    kinghnvn_0-1664346044932.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard