I have a table that is initially displayed as "Display Only". When the user clicks on the edit button to enable editing, I call mytable.SetDisplayOnly(false) and want to also show the delete column. Is there a way to pragmatically hide or show the delete column.
I have looked through the tables object and did not find a method that allows this.
tables delete column
Moderators: Jon, Steve, Ian, Dave
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Should be:
The setDeletable() method is on the TableControl object.
Code: Select all
mytable.setDeletable(true);
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Spelling mistake: the method name is setDeletable, not setDeleteable. If you issue it directly against the control like this, you will see it in the code assist.
You will also see it in the API doc for TableControl.
But it's also valid to code it like you are doing, it's just that you don't see the method name in the code assist because the system treats it as a generic Control instead of a TableControl:
Code: Select all
controls.TABLE1.setDeletable(true);
But it's also valid to code it like you are doing, it's just that you don't see the method name in the code assist because the system treats it as a generic Control instead of a TableControl:
Code: Select all
tables.MYTABLE.control.setDeleteable(true);
0 x
Who is online
Users browsing this forum: Google [Bot] and 8 guests