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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form control showing s...
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'
Report Error.png
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard