cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hemasai1999
Helper III
Helper III

I want gallery to be stable untill my datepicker value matches to another gallery column

HI,

below is my gallery where I have training requests.

MicrosoftTeams-image (13).png

This is first screen of my app where I have one gallery(Gallery3) .when I click on edit button Assign trainer screen will be visible(which is there in below pic).

 

MicrosoftTeams-image (11).png

In Assign trainer screen I have one gallery,dropdown(ID),two datepickers(start date and end date) where I have default value for all these items is gallery3.selected which is my first screen.

MicrosoftTeams-image (11).png

when I click on add button trainer get assign to training request only for that particular dates selected in start date and end date until and unless I assign all the trainers to one training request gallery should stay stable.

MicrosoftTeams-image (12).png

But as soon as I click on add button it is changing to frst item in my sharepoint list.

issue- I have one training request list (12-07-2021 to 20-07-2021), here I have to assign multiple trainers(i.e from 12/07 - 14/07 one trainer, 15/07 - 17/07 second trainer, 18/07 - 20/07 third trainer) my gallery shouldn't change untill I assign trainer to all dates.

 

Any suggestion would be helpful.

 

2 REPLIES 2
zmansuri
Super User
Super User

a19.jpga20.jpg

Set this on Gallery's OnSelect. Remember on your whole gallery's onselect not just selecting arrows.

Set(varRecord,ThisItem)

Set Template fill proeprty to make sure it stays on same record:

If(ThisItem.ID=varRecord.ID,AliceBlue)

if you are using forms, set your form's item property to

VarRecord

Hi,

I tried but it is not working

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,157)