Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Combobox highlight what page I am on

(0) ShareShare
ReportReport
Posted on by 725

Hi Everyone

I have a Combobox to navigate screens, is there anyway for me to highlight in the Combobox which screen I am on? Combobox is getting it's details from a hard coded table.

 

Thank you

  • Verified answer
    R Bakker Profile Picture
    R Bakker 725 on at
    Re: Combobox highlight what page I am on

    O.k

    I think I got it. I have changed from a hard coded table to a OnStart collect to populate my Combobox. below is a sample of that collection.

    ClearCollect(colSiteNav,{PTitle:"Incident Report",Scrn:ScrnRL})

    OnChange of that Combobox I have the following.

    Set(PageNav,Self.Selected.PTitle);Navigate(Self.Selected.Scrn)

    Then in the DefaultSelectedItems of that ComboBox I have 

    LookUp(colSiteNav,PTitle=PageNav)

    Then C/P this Combobox to all four pages, That way the landing page has the selected fill already highlighted.

  • EddieE Profile Picture
    EddieE 4,641 on at
    Re: Combobox highlight what page I am on

    @Corissandageri 

    I thought that's what you were looking for? My mistake ...

     

  • R Bakker Profile Picture
    R Bakker 725 on at
    Re: Combobox highlight what page I am on

    Hi EddieE

    I found it highlighted the whole combobox fill

  • EddieE Profile Picture
    EddieE 4,641 on at
    Re: Combobox highlight what page I am on

    @Corissandageri 

    You could add your colours to your Table data and reference that in the Fill property, eg

     

    // Table
    Table(
     {Screen: Scr1, FillColor: Green},
     {Screen: Scr2, FillColor: Purple},
     {Screen: Scr3, FillColor: Red},
     {Screen: Scr4, FillColor: Blue}
    )

    Then the ComboBox Fill property

    LookUp( Table, Screen = Combobox1.Selected.Screen, FillColor)

     

    To get the above to work I did use ClearCollect to collect the Table data into a collection but that may differ for your situation

  • R Bakker Profile Picture
    R Bakker 725 on at
    Re: Combobox highlight what page I am on

    27.04.2022a.png

  • eka24 Profile Picture
    eka24 20,921 on at
    Re: Combobox highlight what page I am on

    Can you show a screen shot of the combobox with the selections.

    ------------

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

    Please Subscribe to my Youtube Channel

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard