Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • kinghnvn Profile Picture
    on at
    Re: colMap show icon on layout

    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

     

  • v-bofeng-msft Profile Picture
    on at
    Re: colMap show icon on layout

    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
    Re: colMap show icon on layout

    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
    on at
    Re: colMap show icon on layout

    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
    Re: colMap show icon on layout

    Hi Sir,

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

    kinghnvn_0-1664336245926.png

     

  • v-bofeng-msft Profile Picture
    on at
    Re: colMap show icon on layout

    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
    Re: colMap show icon on layout

    @StalinPonnusamy

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard