cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Edina
Helper I
Helper I

Form Viewer Item error

Hi,

 

the Gallery I have now is named as "MGallery". So on the next screen, I added in the display form and under Items I put "MGallery.Selected". However, they gave me an error: "Invalid formula. Expected a value compatible with 'Datasource'".

 

Is there a way to solve this?

 

Capture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User II
Super User II

Hi @Edina ,

 

Please be aware that Gallery.Selected contains, as columns, beside the datasource columns the controls inside the gallery. The structure of Gallery.Selected is not identic with the datasource structure. This is not happen in case of data table.

To fix this use as item property of the form:

LookUp('Microfluidizer - Powerapps', ID = MGallery.Selected.ID)

 

Hope it helps !

View solution in original post

2 REPLIES 2
Edina
Helper I
Helper I

However, if I use a Data Table instead of Gallery, I am able to display the selected data. 

 

Why is this so?

 

gabibalaban
Super User II
Super User II

Hi @Edina ,

 

Please be aware that Gallery.Selected contains, as columns, beside the datasource columns the controls inside the gallery. The structure of Gallery.Selected is not identic with the datasource structure. This is not happen in case of data table.

To fix this use as item property of the form:

LookUp('Microfluidizer - Powerapps', ID = MGallery.Selected.ID)

 

Hope it helps !

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,716)