Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pzppbJpFpIKGKMK/Ov2N1F
Power Apps - Building Power Apps
Unanswered

Second screen to show selected table data while retaining others

Like (0) ShareShare
ReportReport
Posted on 20 Mar 2024 13:57:38 by

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
  • Kirkby Profile Picture
    647 Super User 2025 Season 1 on 22 Mar 2024 at 00:25:58
    Re: Second screen to show selected table data while retaining others

    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

  • MrKoh Profile Picture
    on 21 Mar 2024 at 10:08:08
    Re: Second screen to show selected table data while retaining others

    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));

     

    Item 1
    Item 2

     

    Next screen will display below

    item 1 varSelected.Variable
    Item 1 varSelected.Variable

     

    What i want is 

    Item 1 varSelected.Variable
    item 2 

     

  • Kirkby Profile Picture
    647 Super User 2025 Season 1 on 21 Mar 2024 at 04:27:49
    Re: Second screen to show selected table data while retaining others

    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

    confidential_2668770 16 32.png

    When 3rd item is selected

     

    confidential_2668770 16 321.png

     

    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

    confidential_2668770 16 32 (2).png

    (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

  • MrKoh Profile Picture
    on 21 Mar 2024 at 03:15:16
    Re: Second screen to show selected table data while retaining others

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

     

  • Kirkby Profile Picture
    647 Super User 2025 Season 1 on 21 Mar 2024 at 01:11:37
    Re: Second screen to show selected table data while retaining others

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 27

#2
mmbr1606 Profile Picture

mmbr1606 14 Super User 2025 Season 1

#3
EE-04041031-0 Profile Picture

EE-04041031-0 11

Overall leaderboard
Loading started
Loading complete