cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Collection in Production vs. Live

Hi there!

 

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').

 

Thank you,

 

Anthony

 

Please see photos below:

 

1) Live environment

DebugCollection_Live.JPG

 

2) Production Environment (don't worry about the 'x' there as that's regarding something else unrelated.)

 

DebugCollection_Production.JPG

 

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Collection in Production vs. Live

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.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Collection in Production vs. Live

***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? 

 

Image 1

 

DebugCollection_FC_ReferenceCheck.JPG

 

Image 2

 

DebugCollection_FC_LookUp.JPG

 

IMAGE 3

 

DebugCollection_Cap_ReferenceCheck_newFormula.JPG

Highlighted
Frequent Visitor

Re: Collection in Production vs. Live

I've updated the image placement in my last post to correctly reference the image i'm referring to.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,464)