# Data Viewer - show/hide icons based on database value

**URL:** https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410
**Category:** Questions about Thunkable X
**Created:** [September 28, 2022, 12:02pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410 "2022-09-28T12:02:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ksp](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@ksp](https://community.thunkable.com/u/ksp)
#### Post date: [September 28, 2022, 12:02pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/1 "2022-09-28T12:02:48Z")

</div>

Hi,

I need to be able to display a warning icon if a value in my database exceeds a certain value.

I know how to build the Customer Data Viewer and I know the “Advanced Binding”.

But where and how should the logic around the display of the icons be placed?

Does anyone know of a relevant thread or examples of this?

Example of what I would like to achieve is:  
FieldValue \> 8 - show red icon  
FieldValue \< 3 - show green icon

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [September 28, 2022, 12:53pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/2 "2022-09-28T12:53:05Z")

</div>

Conditional binding with the data viewer list is not possible at this time. Your options are to [paint the DVL](https://community.thunkable.com/t/fun-share-dvl-hack/1665645) or to use a [layouts component and cloning.](https://community.thunkable.com/t/join-us-in-beta-testing-the-new-layouts-component-rows-columns-for-the-drag-and-drop-interface/1970795)

---

<div class="post-metadata">

### Author: ![ksp](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@ksp](https://community.thunkable.com/u/ksp)
#### Post date: [September 29, 2022, 8:32pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/3 "2022-09-29T20:32:32Z")

</div>

Thanks for the reply.

I’m not sure I’m catching the purpose of the “layouts” component in relation to the specific issue.

So there is no way I can show/hide a component/image based on a value?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [September 29, 2022, 9:01pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/4 "2022-09-29T21:01:56Z")

</div>

Did you try the “paint the DVL” method mentioned above? Because that is a way to alter the look of DVL elements based on conditional values.

---

<div class="post-metadata">

### Author: ![ksp](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@ksp](https://community.thunkable.com/u/ksp)
#### Post date: [October 5, 2022, 7:46am UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/5 "2022-10-05T07:46:08Z")

</div>

Thank you for your reply.  
I have looked a bit at the solution of painting the DLV, but I do not think it is the right technical solution to loop through a temporary table.  
So I have solved it with formulas in the database, which generate a filename depending on which image to display.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [October 6, 2022, 12:15pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/6 "2022-10-06T12:15:05Z")

</div>

Nice solution!!!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [January 4, 2023, 12:15pm UTC](https://community.thunkable.com/t/data-viewer-show-hide-icons-based-on-database-value/2061410/7 "2023-01-04T12:15:36Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
