When I update item, selected gallery item is changed, but i want to keep this.
Could you let me know why it happened and what is the solution ?
Thank JH
Solved! Go to Solution.
On the OnVisible of the screen, Create a variable;
Set(MySelected, GalleryName.Selected)
You can use the variable: MySelected anywhere in your App.
Edited:
You can set the Default of the Gallery to:
MySelected
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @JHChoi81 ,
Based on the screenshot that you mentioned, I found that your second Gallery (Gallery1) has been bind to the selected item in your First Gallery (FixtureListMain_2), right?
According to the issue that you mentioned, I think this issue is related to your UpdateIf function. When you execute your UpdateIf function successfully, your FixtureMasterList data source would be refreshed, then your First Gallery FixtureListMain_2 would also be reset. So the FixtureListMain_2.Selected formula would be reset to the first record in your FixtureListMain_2 Gallery.
As an fixed solution, please take a try with the following workaround:
Set the OnSelect property of the FixtureListMain_2 Gallery to following:
Set(CurrentSelectedItem, FixtureListMain_2.Selected)
Set the Items property of the Gallery1 (second Gallery) to following:
Filter(FixtureMasterList, ID = CurrentSelectedItem.ID)
remove the formula from the Default property of the Gallery1.
Please consider take a try with above solution, check if the issue is solved.
Best regards,
On the OnVisible of the screen, Create a variable;
Set(MySelected, GalleryName.Selected)
You can use the variable: MySelected anywhere in your App.
Edited:
You can set the Default of the Gallery to:
MySelected
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
It has same problem.
1. Gallery1 -> Items :
SortByColumns(
If(TextInput1_3.Text="" && TextInput1.Text="",
Filter(FixtureMasterList,Applied = ddFixtureType_3.Selected.Result && FixtureName=Dropdown1_1.Selected.Result),
If(TextInput1_3.Text="",
Search(FixtureMasterList,TextInput1.Text,"FixtureName"),
Search(FixtureMasterList,TextInput1_3.Text, "FixtureNum"))),
"FixtureNum",Ascending)
what is wrong ?
JH
The procedure I stated is the way to go. However remember you have about 3 criteria using If function. So if the variable does not Fall into the criteria, it may not work.
Can you give a screenshot of the formula I gave
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I don't know what is wrong....
I cant see the Variable in the Default of the Gallery, you have rather put the FixedMasterList there.
The suggestion was to create a variable onvisible and put the variable on the default.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Sorry,
I've followed your recommend.
But, it also has same problem.
OnVisible : Set(MySelected,FixtureListMain_2.Selected)
Hi @JHChoi81 ,
Based on the screenshot that you mentioned, I found that your second Gallery (Gallery1) has been bind to the selected item in your First Gallery (FixtureListMain_2), right?
According to the issue that you mentioned, I think this issue is related to your UpdateIf function. When you execute your UpdateIf function successfully, your FixtureMasterList data source would be refreshed, then your First Gallery FixtureListMain_2 would also be reset. So the FixtureListMain_2.Selected formula would be reset to the first record in your FixtureListMain_2 Gallery.
As an fixed solution, please take a try with the following workaround:
Set the OnSelect property of the FixtureListMain_2 Gallery to following:
Set(CurrentSelectedItem, FixtureListMain_2.Selected)
Set the Items property of the Gallery1 (second Gallery) to following:
Filter(FixtureMasterList, ID = CurrentSelectedItem.ID)
remove the formula from the Default property of the Gallery1.
Please consider take a try with above solution, check if the issue is solved.
Best regards,
This is an interesting solution, but the problem for me it comes when I modify the data. The source gets updated but not the variable, what I am missing?
Thanks
Pablo
User | Count |
---|---|
204 | |
93 | |
84 | |
47 | |
42 |
User | Count |
---|---|
251 | |
104 | |
104 | |
62 | |
57 |