column in grid consist 2 or more images or buttons?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

column in grid consist 2 or more images or buttons?

#1

Postby t4nu » Wed Apr 27, 2016 4:11 am

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.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Apr 27, 2016 8:17 am

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

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Wed Apr 27, 2016 9:24 am

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.
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 12 guests