# Choice Component not syncing to database

**URL:** <https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517>\
**Category:** Report a Bug\
**Created:** [February 10, 2021, 1:04am UTC](https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517 "2021-02-10T01:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)\
**Post date:** [February 10, 2021, 1:04am UTC](https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517/1 "2021-02-10T01:04:26Z")

</div>

My app’s URL: [https://awful-ants-8702.glideapp.io/](https://awful-ants-8702.glideapp.io/)

Hi,

As pictures below, its work when i am using the preview one.  
But when I am using the **android or iOS,** it is **not** updated the database.  
So that, the charts also not updated.

 ![Picture1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/9/9935d024721674ecd0febab72f342597948ef488.jpeg) ![Picture5](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/c/5c735089be42c1ecd9276eac287651dd437fac76.jpeg)  
 ![Picture3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/a/5a1940a7d5803840249c79bc2d81642f3d68c1ea.jpeg) ![Picture6](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/9/a9a276a9ada5c642346c12da469a3292a46ae504.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 10, 2021, 11:11am UTC](https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517/2 "2021-02-10T11:11:28Z")

</div>

You’ve posted about this a few times now. I’m still trying to understand what logic is happening to make the values change once you change the choice selection. You provided the link to your app, but that doesn’t help me much, since I can’t copy the app to see how you have everything set up. A video and especially more information about your app flow would really help.

The only other weird thing I can see is that you are using a swipe layout screen instead of a detail screen. Since it appears that you have disabled any ability to swipe, I can only assume that you have some sort of filters on the screen or something unusual with the swipe layout that’s somehow disconnecting it from the row you are trying to update. I really wouldn’t know without being able to see the inner workings of how you have your app stuctured. If I were you, I would switch all your screens to use the detail layout instead of the swipe layout, since you don’t appear to be using any swipe functionality and you are only using it to get a border around all of the components.

Thinking about it and looking more closely at your screenshots, it’s probably not working because you don’t have a column selected for the ‘Save Last Swipe’ setting. It appears that you aren’t really using the swipe layout as it was intended, so that’s probably what’s causing the issues.

For reference to keep everything together:

> [@Need Help : Choice Component not syncing to database](https://community.glideapps.com/t/need-help-choice-component-not-syncing-to-database/22383):
>
> Hi, As pictures below, its work when i am using the preview one. But when I am using the android or iOS, it is not updated the database. So that, the charts also not updated. Here is the link : [https://awful-ants-8702.glideapp.io/](https://awful-ants-8702.glideapp.io/)

> [@Charts with Choice Component](https://community.glideapps.com/t/charts-with-choice-component/22152):
>
> Hi, I need your help. How can I make the chart change dynamically when we make a choice. You can refer from the picture below. I want to choose the data in the table and chart will change.

---

<div class="post-metadata">

**Author:** ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)\
**Post date:** [February 11, 2021, 12:22am UTC](https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517/3 "2021-02-11T00:22:39Z")

</div>

Thank you for your reply.  
And also thank you for the suggestion.  
Will try. Thank you so much.

---

<div class="post-metadata">

**Author:** ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)\
**Post date:** [February 11, 2021, 2:51am UTC](https://community.glideapps.com/t/choice-component-not-syncing-to-database/22517/4 "2021-02-11T02:51:37Z")

</div>

Hi @Jeff_Hager ,

The reason why I chose the swipe instead of details layout, is details no have in-app filter which I need to filter date(year).  
But I’ve try the details layout. Its work. You are brilliant.

Thank you btw.  
Thank you so much.
