Hi there,
How is it possible that a record (ThisItem) from a gallery is displayed outside of the gallery, depending on the loaded template in a label.
In my case, I want to display a date (comes from SharePoint) in the orange label (see screenshot). The date should always be displayed from the last data record (right, 3rd data record) from the gallery (ThisItem.'LISA-Stand').
However, if not all three data sets are loaded, but only two, the last data set should still be displayed, in this case the second. I think it's somehow possible with the "Last" function.
But I can't even get the date to be displayed outside of the gallery at all.
Can you help me with this?
Solved! Go to Solution.
Hi @Livearus
You can use the Last function with the AllItems property of the gallery.
For example, to get the last color from a gallery of colors, I can write:
Last(galColorSet.AllItems).ColorText
So for your case, you can write
Last(yourGalleryName.AllItems).'LISA-Stand'
Alternatively, you can use the Last function data source of the gallery directly; just note that you would have to apply the same filters if any was applied in the gallery items property.
There is no way to do that for multiple records in a gallery at the same time outside the gallery. If you want to do if for all the records then add the control to the Gallery template and use thisItem. If you want to do it for just one record then use GalleryName.Selected.
Hi @Livearus
You can use the Last function with the AllItems property of the gallery.
For example, to get the last color from a gallery of colors, I can write:
Last(galColorSet.AllItems).ColorText
So for your case, you can write
Last(yourGalleryName.AllItems).'LISA-Stand'
Alternatively, you can use the Last function data source of the gallery directly; just note that you would have to apply the same filters if any was applied in the gallery items property.
User | Count |
---|---|
260 | |
110 | |
97 | |
53 | |
39 |