I have an app that is used for Change management. When users input their changes, a collection is built and displayed on a new screen. These changes will be shown in a 'green' filled box. Items that weren't changed will have a 'no fill'.
It's very odd to me that the only instance when this logic doesn't work is the first record of my collection and ONLY occurring in the live environment.
Meanwhile, during production, the first record added (user changed record) in the collection is shown correctly, with the green fill indicator for only the item changed. Whereas in the live, everything is shown as green (i.e. Powerapps understands that all items had a 'change').
Please see photos below:
1) Live environment
2) Production Environment (don't worry about the 'x' there as that's regarding something else unrelated.)
Hi @Anthony_To ,
How do you fill the Text Box within your Gallery? Could you please share more details about the formula?
How do you determine if the Text Input box values have been changed in your app? Compare with the collection?
Based on the needs that you mentioned, I have made a test on my side, please check if the issue is solved. Please also check if the changed values of first record in your collection are different from the original values.
Please set the Fill property of the Text Input box in your Gallery as below:
If( ThisItem.ColumnName <> LookUp(YourCollection, PrimaryColumn = ThisItem.PrimaryColumn).ColumnName, RGBA(141, 198, 63, 1), RGBA(255, 255, 255, 1) )
Note: The PrimaryColumn represents the primary column in your data source (the Gallery connects to), which could identify one record uniquely.
Also please consider take a try to turn off the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, then re-publish your app, check if the issue is solved.
***EDITTED THE IMAGE PLACEMENT. All Image headings are now correctly referring to their respective pictures.
Thank you for your response Kris. Regarding the answer to your questions, please refer to the first two images attached.
With the current item shown in green, (the change, in this case, "Ministry") there's a reference check against the original (shown as "IO" on the bottom left corner of the item in the gallery). The second image shows this label doing a lookup into my master table.
I've attempted both toggling off the "Improved app rendering (final validation)" and adding the new function but it's not filling properly when an item's been changed (Image 3). Again with this image, the reference (original is shown off to the right as "IO") and the current selection is "Ministry", which results in a green fill correctly. However, if you look to the 2nd item from the right, this item is highlighted in green even though the reference check below it is the same as the "change" made. Please take a look at the formula because I'm not sure I'm doing it correctly.
Are you referring to Primary Key? I don't believe i can set a primary key/column in my collection either?
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021