I have a gallery in my app. In edit mode, all items always show up. In play/live mode however, it sometimes happens that a single item in the gallery (usually the first) is not shown.
Users observe the problem at totally random moments. Whenever I check the data sources, everything is fine.
Below screenshots show the difference between edit and play mode:
Gallery in edit mode: everything is shown correctly.
Same gallery in play mode. Nothing is shown for the first item.
I already checked the page elements with dev tools of my browser. In play mode, the missing information does not even show up on the page. The location where missing text appears in edit mode, is just empty. See below HTML fragments:
<div spellcheck="false" unselectable="off" class="appmagic-label-text" data-control-part="text" data-bind="{
inlineEditText: properties.Text,
css: {
'appmagic-label-single-line': !properties.Wrap()
},
attr: {
'aria-live': live,
'aria-atomic': live() ? 'true' : null
}
}">Sample text label 0</div>
Inspected HTML element in edit mode.
<div spellcheck="false" unselectable="off" class="appmagic-label-text" data-control-part="text" data-bind="{
inlineEditText: properties.Text,
css: {
'appmagic-label-single-line': !properties.Wrap()
},
attr: {
'aria-live': live,
'aria-atomic': live() ? 'true' : null
}
}"></div>
Same element inspected in play mode.
How could I solve this problem? Many thanks in advance!
Hi @PowerMathijs ,
I remember the similar issue when some gallery item properties disappeared (item was there but with blank properties). In my case it was caused by new Power App feature Explicit column selection, which was On by default, so all my data source queries without explicit column selection were incomplete. If some properties were not displayed in app, they remained blank.
As in my case turning on this feature didn't make so much sense (I had SQL Views as data source, so columns were already selected in view and I needed all of them), I turned it off and items returned with all properties filled according to data source.
Not sure if it's your case, but it's worth trying. If it's working with turned off, you can update your queries with column selection and turn it on again.
Thanks for your reply @LukasKo
I already tried changing this setting, but enabling/disabling explicit column selection does not change the buggy behavior.
It's also not the case that data is not collected properly, because sometimes the first item in the gallery is briefly visible and then disappears.
User | Count |
---|---|
156 | |
94 | |
82 | |
77 | |
58 |
User | Count |
---|---|
196 | |
175 | |
103 | |
96 | |
89 |