Creating a table with editable cells

Today in office hours we produced something pretty cool: a table of cells that are editable.

We first explored how to create a table and a table row and a table cell and make that cell editable. This is the code we started with:

<table>
<tr>
<td contentEditable="true">Hello world</td>
</tr>
</table>

That "contentEditable” property makes a cell editable.

Then we had to figure out how to add a ‘blur’ to the cell. A blur in JS is whenever an element on the page loses focus. I don’t know why it is called “blur”.

Well we worked it all out and by the end of the time, we had produced this. I did do some CSS enhancing of it.


What’s cool is this structure is set to use Data from FileMaker and to use all the columns I want it to use. That’s pretty cool.

I was concerned about the blur action. I needed it to run a FM script and to tell me what table, row (record), and what field was being edited. The concern I had was that a blur would naturally go to another field and I was worried that running an FM script would cause another blur instance when the active cell was the next one.

I think I figured it out.

Here is what we ended up with:


So this is pretty cool.

I was able to, from scratch and with Human and Artificial intelligence, create something that could be very useful in FileMaker.

Next week we will explore this some more. We’ll figure out how to make a pivot-table kind of thing that is editable.

So join us.