Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Gallery items not showing on mobile

(0) ShareShare
ReportReport
Posted on by 25

Hello, I have a gallery that does not show the items on mobile. The desktop version works fine, but on mobile I just see a blank screen. The gallery is connected to a sharepoint list and it says that I'm signed in. What could be causing this? 

 
 
 

Thanks!

  • CarlosCalleja Profile Picture
    25 on at
    Re: Gallery items not showing on mobile

    Thanks Randy! I followed that process and found that the problem was the _selectedMonth variable, my phone is in english so it takes the month in English but the SP List is in Spanish. Could I maybe use the Text function to change the language?

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Gallery items not showing on mobile

    @CarlosCalleja 

    Very good.. Here is where I would start.

    1) Sort is notoriously an issue on mobile depending on what it is sorting.

    Try changing your formula to SortByColumns:

    SortByColumns(
     Filter(HorariosIniciales,
     EstadoHI=Dropdown6.Selected.Value &&
     MesHI=_selectedMonth &&
     SolicitanteHI=_negocio2
     ),
     "UbicacionHI"
    )

    (Also you will note a few other changes in your original formula in the one above.  Firstly, avoid using SelectedText on dropdowns as it is a deprecated property.  The above assumes that your Items property is Value based.  If not, replace Value with the appropriate column from your Selected item)

     

    2) Start to break apart your formula:

    SortByColumns(
     Filter(HorariosIniciales,
     EstadoHI=Dropdown6.Selected.Value &&
     SolicitanteHI=_negocio2
     ),
     "UbicacionHI"
    )

    Note in the above, the MesHI column was removed from the formula.  Try that, if no joy, put it back and take out one of the others. 

    With this process you are trying to narrow down if one of the values is impacting the problem - either the dropdown value, _selectedMonth, or _negocio2.  If you find that removing one gives you items, then start working your way back from that.  For example, _selectedMonth when removed shows items, then look to see where that is defined and how.  Then start breaking that apart.

  • CarlosCalleja Profile Picture
    25 on at
    Re: Gallery items not showing on mobile

    Thank you Randy, the Items formula is a filter function inside a sort function. 

    I had a huge formula on one of the text boxes, so I removed it and tried again, but I still can't see it.

    The items property contains this:

    CarlosCalleja_0-1606495250035.png 

    All of the variables are defined as text.

    Edit: I see what the problem is, my phone's language is in English, so the _selectedMonth variable doesn't match with anything on my list, which is in spanish. Is there a way to solve this?

     

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Gallery items not showing on mobile

    @CarlosCalleja 

    What is the Items property of your Gallery?  Chances are that you have some formula with implicit conversions in it (i.e. text to number, etc).  These will notoriously cause issues on mobile devices.

    Check to see if you have any part of your formula in the Items (and possibly other properties that would impact display) that is doing an implied conversion from one data type to another.  Then change them to be declarative.

     

    I hope this is helpful for you.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard