Hi, currently I have a gallery(Screen 1) where if user select data 1, it will bring user to another gallery (Screen 2) using varSelected.Variable.
The issue is it resulted in Screen 2 showing data 1 only.
What I want is Screen 2 to point to data 1, with all other data intact.
Current (Upon select item 1 from screen 1)
Item 1 |
Item 1 |
Item 1 |
What I want instead (To retain item 2 and item 3 upon selected item 1 from screen 1)
Item 1 |
Item 2 |
Item 3 |
Hi
Don't you want to indicate that the selected record from the previous screen is represented as Item1 on the next screen? That's the intention behind the sample I posted as well.
You can check the currently selected record (stored in varSelected) using GalleryName.Selected.YourItemName on the next screen.
If I misunderstood. please let me know
Kirkby
Hi, currently the behavior is upon clicking item 1 on previous screen.
Below is OnSelect code
Set(varSelected,ThisItem); Navigate('Edit Page Test'); Set(varexist, LookUp('[Test] Sharepoint List','Report ID'=varSelected.ReportId));
Next screen will display below
What i want is
Hi @MrKoh
The results are the same whether on the same screen or a different screen, so I tested it on the same screen first. (without invoking Navigate)
1)Set(varSelected, ThisItem);// The selected record is stored in varSelected.
2)Default property of the gallery on the right side (or on the next screen): varSelected
//selects the corresponding record as the default value from the records in the gallery on the right side. As you explained the data structures and values are the same in both galleries. So fx is simple.
When 2nd item is selected, default of the right gallery reacted
When 3rd item is selected
When 2nd gallery is placed on the next screen
1)Set(varSelected, ThisItem);Navigate('Edit Page Test') //Correct. The selected record is stored in varSelected.
2) the same fx in default property : varSelected
when 2nd item is selected on the prev. screen
(What is the code "Set(varexist, LookUp('[Test] Sharepoint List','Report ID'=varSelected.ReportId));"for?
This fx doesn't seem directly related to this topic. Does it? )
Kirkby
Yes. You are correct. The data shown on the first screen is also maintained on the second screen, but only the data selected from the previous screen is highlighted.
Current behavior is first screen contain a list of item. When select the first item
Set(varSelected,ThisItem); Navigate('Edit Page Test'); Set(varexist, LookUp('[Test] Sharepoint List','Report ID'=varSelected.ReportId));
The second screen will be displayed with below
varSelected.WorkSpaceName
Issue is based on above, screen 2 is showing all the same item info, even though i want only the item selected from first screen to be highlighted, while retaining other items.
The highlighted part is done through below code
If(ThisItem.IsSelected,ColorFade(RGBA(1, 184, 170, 100), -2%), RGBA(0, 0, 0, 0))
Hi @MrKoh
Could you please provide more information about the relationship between the first screen and the second screen? Does it mean that the data shown on the first screen is also maintained on the second screen, but only the data selected from the previous screen is highlighted? I'm asking for a better understanding of the purpose. Is the purpose to work through the steps as you progress?
Thanks.
Kirkby
MS.Ragavendar
27
mmbr1606
14
Super User 2025 Season 1
EE-04041031-0
11