cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
victorxvhx
Level: Powered On

Gallery1.selected resets when filtering my Gallery1

Hi Everyone, 

I looked a lot of similar post, but I didn't found the answer...

 

I have a gallery on my first page with different items, linked to a Sharepoint list, named "AppReviewM".

When I click on an Item, I naviguate to another page with a form in view only. If I want to change data, I click on an icon and I navigate to another page with the a form in edit mode. Then I save and all is working percfectly. The data is refreshed instantly in the Sharepoint list and in the viewform page.

I have about 20 pages like this (10 Editform/ 10 ViewForm), because in one page I don't have enought space to put all the information concerning a Gallery1 item.

All of my forms (view or edit) have in "Item" property : 

Gallery1.Selected

So this works.

 

My issue appears when on the first page, in the item property of my "Gallery1", I apply this filter : 

If(
    Radio1.Selected.Value = "Your project";
    Filter(
        AppReviewM;
        StartsWith(
            Title;
            TextInput1.Text
        );
        StartsWith(
            CREATEDBY1.DisplayName;
            User().FullName
        )
    );
    Filter(
        AppReviewM;
        StartsWith(
            Title;
            TextInput1.Text
        )
    )
)

 

instead of just :

 

AppReviewM

The filter works correctly, my Gallery is filtered. 

But, when I select an item and navigate to the View or Edit page of an item and I do modification, the Sharepoint list is actualised with the new data, but the viewForm page is set with the first item, I need to go back to my gallery, and then reselected the item, to see the viewform page beeing actualised.

 

Does somebody know why the Gallery1.Selected is working when no filter and when a filter is applied, the Gallery1.Selected automatically set with the first item in this Gallery ?? 

 

Thank you for your help ! 

 

PS : I tried to create a global variable when I select an item on my gallery :

 

Set(Select; Gallery1.Selected)

and set the Item proprety of all my forms with : 

Select

This partially works, I mean that when I save modification in a editForm page, and I go back to the viewForm page, the viewform is actualised, so no problem, but if I rechange to another viewpage, it seems that the global variable "Select" is set to null, because the viewforms says "Nothing to display"...

 

I hope all this is clear for you

 

1 REPLY 1
Administrator
Administrator

Re: Gallery1.selected resets when filtering my Gallery1

Bumping for visibility 

 

@TopShelf-MSFT 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 173 members 4,847 guests
Please welcome our newest community members: