# Perspective issue with users

**URL:** <https://forum.inductiveautomation.com/t/perspective-issue-with-users/76922>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [July 26, 2023, 4:45am UTC](https://forum.inductiveautomation.com/t/perspective-issue-with-users/76922 "2023-07-26T04:45:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandini\_S](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nandini\_S](https://forum.inductiveautomation.com/u/Nandini_S)\
**Post date:** [July 26, 2023, 4:45am UTC](https://forum.inductiveautomation.com/t/perspective-issue-with-users/76922/1 "2023-07-26T04:45:08Z")

</div>

Hello  
I have created users table with edit and delete button and the script is written for the two buttons.  
The edit and delete functionality is working but only if I navigate from one tab to another in perspective

I have attached the snapshots for reference.  
Can you please help me out with this issue

 ![Delete](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0e0c835dad6cd64d30312bfc13ab66868b3860f0.png)  
 ![Edit (1)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1ac1cf7c49a8ce68e453d1851cb094d7ac8a9205.png)  
 ![Edit (2)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/488989c4ceab9b85a14afd7ad2b40eacbc1db55d.png)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 26, 2023, 5:42am UTC](https://forum.inductiveautomation.com/t/perspective-issue-with-users/76922/2 "2023-07-26T05:42:21Z")

</div>

You need to refresh the Table's `props.data` binding after modifying the users.

Use something like `self.getSibling('Table').refreshBinding('props.data')`

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 26, 2023, 6:16am UTC](https://forum.inductiveautomation.com/t/perspective-issue-with-users/76922/3 "2023-07-26T06:16:24Z")

</div>

Regarding your code and component property references, you are creating a "brittle" application. If you move any of the conponents or wrap them inside another container then the application breaks as you are using absolute paths everywhere.

Have a look at my comments on [Trouble with 'if' statement, button event - #5 by Transistor](https://forum.inductiveautomation.com/t/trouble-with-if-statement-button-event/76892/5) where I explain how the application can be cleaned up by using a view's custom properties to hold the values of components using bidirectional bindings. Your code then just references `self.view.custom.xxxxx` and there are no absolute or relative paths. It brings great joy to you and to those who maintain your code in the future!
