Hi,
Is it possible if I want one of the columns in the table consist buttons or clickable images (more than 1)? If so, how to do it?
I want to put edit, delete and other process in the form of clickable image or buttons, so if I want to delete a certain row, all I need is just click the delete button or delete clickable image in that row, the same thing with edit and other process.
Thanks in advance for the help.
column in grid consist 2 or more images or buttons?
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Yes, this is all standard tables functionality. To add a button or an image to a table, just drag in a Button Column Control or Image Column Control from the table section of the palette. When you click on one of these the system automatically sets the current row of the table to the clicked row so you can just work with the row directly e.g. to delete:
tables.MyTable.deleteRow();
e.g. to edit:
tables.MyTable.col1.value = newvalue;
etc.
For info, there is also built-in functionality for delete and select which you can configure using properties of Table Control. But most people choose to add there own buttons/images.
The "To do List" form in the vault is an example of some of this - this can be downloaded as a sample http://vault.ebasetech.com/ebase/vaultD ... e=toDoList.
tables.MyTable.deleteRow();
e.g. to edit:
tables.MyTable.col1.value = newvalue;
etc.
For info, there is also built-in functionality for delete and select which you can configure using properties of Table Control. But most people choose to add there own buttons/images.
The "To do List" form in the vault is an example of some of this - this can be downloaded as a sample http://vault.ebasetech.com/ebase/vaultD ... e=toDoList.
0 x
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
Actually what I want is put several images or buttons within 1 column, but at least using that method I can show the images or buttons and achieve what I want.
Thanks a lot for the help.
Thanks a lot for the help.
Jon wrote:Yes, this is all standard tables functionality. To add a button or an image to a table, just drag in a Button Column Control or Image Column Control from the table section of the palette. When you click on one of these the system automatically sets the current row of the table to the clicked row so you can just work with the row directly e.g. to delete:
tables.MyTable.deleteRow();
e.g. to edit:
tables.MyTable.col1.value = newvalue;
etc.
For info, there is also built-in functionality for delete and select which you can configure using properties of Table Control. But most people choose to add there own buttons/images.
The "To do List" form in the vault is an example of some of this - this can be downloaded as a sample http://vault.ebasetech.com/ebase/vaultD ... e=toDoList.
0 x
Who is online
Users browsing this forum: No registered users and 18 guests