Hi All,
I have a dashboard where all the data from 4 different SharePoint list is combined by group by and get displayed in the gallery. The gallery used in the Dashboard is two-level (where the outer gallery contains DD names and the inner gallery contains the projects under the respective DD to be displayed. now I have a requirement where when the "More Details" button is pressed in the gallery a popup must get displayed containing three columns from the inner gallery. (Last updated by, DM approval & DD Approval). For each item in the gallery the popup containing the columns will vary.
Last updated by - Name of the person who recently made changes.
DM Approval & DD Approval - this field gets updated based on the flow (for e.g. - there are three values each Submitted, To be defined and completed. Submitted has one icon, completed has one icon and To be refined has one icon).
I need to display these three field in the popup when More details button is clicked, and the values will vary based on each item clicked in the gallery. I have attached the screenshot for the same.
Any help on this would be greatly appreciated. Thanks in advance.
Hi @Ethan_R ,
On More details button I gave as this:
UpdateContext({Popup: true, varlastupdatedby: Gallery.Selected.'DM approval'})
and added a label in the Popup and just gave the variable name "varlastupdatedby" in the label and its working now.
Thank you so much.
Hi @Uthhra ,
When you add a dot after "varlastupdatedby" do you get suggestions from the App?
You will get list of columns to choose from.
Add appropriate value
Hi @Ethan_R
The gallery values in dashboard are saved values from the SharePoint list. Only I need to display the values in the Popup based on each project selected.
Hi @Uthhra ,
If you are using Editable grid and you made changes on the value.
Until the record is not been saved you will get old record.
Instead you can pass Dropdown value instead of Gallery Selected if you want unsaved item as well.
Note: If you won't saved record then your changes will not be saved.
Hope this makes sense
Hi @Ethan_R ,
If I directly give using the first method as DDGallery.Selected.Modifiedby in the label in the Popup.
the gallery will have different projects for each DD name. but when I click on the More details button it gives me only the first name of the person in the gallery even though I click different values. At the end of the row in the gallery for each project the values must vary but it's returning only the first name of the person.
Second method:
After assigning variable on the button, I have given as Update Context ({popupmoredetails: true, varlastupdatedby: DDGallery.Selected.Modifiedby})
And in the popup, I have added a label and text input and tried it on both, but I am getting error.
I have attached screenshot for both scenarios.
Hi @Uthhra ,
You can either pass the values to those on the pop-up controls depending such as label, text, dropdown, etc as follows:
Method 1: Reference item directly as
Gallery.Selected.' DM approval'.FullName
//OR
Gallery.Selected.' DM approval'.DisplayName
Method 2: Pass as variables as when clicked on button "More Details" as
UpdateContext({TogglePopup: true, varApprover: Gallery.Selected.'DM approval'});
//Then reference in your control as
varApprover.DisplayName
Hope this helps
WarrenBelz
146,631
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,991
Most Valuable Professional