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

Community site session details

Session Id : L28tUKUjEoOyIyDWuPteQy
Power Apps - Building Power Apps
Unanswered

colMap show icon on layout

Like (0) ShareShare
ReportReport
Posted on 27 Sep 2022 23:48:35 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 28 Sep 2022 at 06:22:51
    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 28 Sep 2022 at 05:16:09
    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 28 Sep 2022 at 04:28:20
    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 28 Sep 2022 at 03:48:47
    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 28 Sep 2022 at 03:37:50
    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 28 Sep 2022 at 01:26:19
    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 27 Sep 2022 at 23:50:01
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete