Perspective issue with users

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



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

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

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 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!

2 Likes