# Change "int" in the data base by button in perspective

**URL:** <https://forum.inductiveautomation.com/t/change-int-in-the-data-base-by-button-in-perspective/43417>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 15, 2021, 1:33pm UTC](https://forum.inductiveautomation.com/t/change-int-in-the-data-base-by-button-in-perspective/43417 "2021-02-15T13:33:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarLucas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/oscarlucas/32/6417_2.png) [@OscarLucas](https://forum.inductiveautomation.com/u/OscarLucas)\
**Post date:** [February 15, 2021, 1:33pm UTC](https://forum.inductiveautomation.com/t/change-int-in-the-data-base-by-button-in-perspective/43417/1 "2021-02-15T13:33:17Z")

</div>

Hello All  
I am trying to get the contact which Perspective, I have a script to put the data in the id row of the data base that works in vision but in perspective is giving a failure.  
I have try to understand what is failing.  
Do you know where it can come?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f06c0bfe55a120338d3e65792e745c10d35ea12a.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25e9ed5330c619a35715a05771a4e5eca06b706e.png)  
Thanks

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [February 15, 2021, 1:41pm UTC](https://forum.inductiveautomation.com/t/change-int-in-the-data-base-by-button-in-perspective/43417/2 "2021-02-15T13:41:15Z")

</div>

You a mixing Vision and Perspective scripting functionality… Get rid of “event.sorce.parent.getComponent(’” and "’).intValue. Use self.getSibling(“Dropdown”).props.value
