Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Form control showing selected item from a searched Gallery

(1) ShareShare
ReportReport
Posted on by 2
I am using a Vertical Gallery to select items from a sharepoint list, to view in a Form control. I now wish to add a Text control to search the Vertical Gallery as there will be many entries there to select from
The Gallery and Form operated properly together, until I added the highlighted Search operation below. I now get an error on the Form: "Invalid formula. Expected a value compatible with DataSource." I'm not sure what to do now, because the Gallery and Form are using the same DataSource.
 
Would appreciate help on getting the Form to now show a selected item from the gallery, that has been searched by a Text control. Thank you!
 
Gallery glyReportSelect > Items:
// Sort in descending order by Modified date
SortByColumns(
    // Filter on text entered to txtProjectSearch
    Search(
        // 'Project Name' is a lookup field in source sharepoint list and cannot be used for searching. Add new text column with the value of the 'Project Name' to use for search
        AddColumns(
            'Project Status Reporting',
            ProjectNameText,
            'Project Name'.Value
        ),
    txtProjectSearch_2.Text,
    ProjectNameText, 'Report Month'
    ),
    "Modified",
    SortOrder.Descending
)
 
Gallery glyReportSelect > OnSelect:
// Clear any fields in the Form, and set the form mode to View
ResetForm(ProjectReportForm1_2);ViewForm(ProjectReportForm1_2)
 
Form ProjectReportForm1_2 > Items
// Display the item selected in Gallery
glyReportSelect.Selected
 
Additional context
Data source: Sharepoint List 'Project Status Reporting'
Categories:
  • Michael E. Gernaey Profile Picture
    41,126 Super User 2025 Season 1 on at
    Form control showing selected item from a searched Gallery
    HI,
     
    Sorry but what I don't see is this
     
    1. they search
    2. they selected a record
    3. It failed
     
    So I am not sure if someone selected a record (which is required for the Form to work, or not?
     
    Also, why are you resetting the form? if your are changing the data based on the select record?

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard