Commit 7934e7942e6b86bf13f0cf5dbf0580ad1b6d557d
1 parent
2e17aca7
Use vt_view_row_header now for viewable table and add "id" in vt_view_row to all…
…ow to have row id for delete or others operation
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
calexium_lib @ 46219dd336d
src/generation/types.anubis
| @@ -415,13 +415,13 @@ public define Maybe(One) | @@ -415,13 +415,13 @@ public define Maybe(One) | ||
| 415 | " if list is\n"+ | 415 | " if list is\n"+ |
| 416 | " {\n"+ | 416 | " {\n"+ |
| 417 | " [] then\n"+ | 417 | " [] then\n"+ |
| 418 | - " with header = vt_view_row([\n"+ | 418 | + " with header = vt_view_row_header([\n"+ |
| 419 | // view row header | 419 | // view row header |
| 420 | make_list_view_header(current_list_view, " ")+"\n"+ | 420 | make_list_view_header(current_list_view, " ")+"\n"+ |
| 421 | " ]),\n"+ | 421 | " ]),\n"+ |
| 422 | " vt_view(\""+table_name+"\", \""+view_name+"\", header, reverse(so_far)),\n"+ | 422 | " vt_view(\""+table_name+"\", \""+view_name+"\", header, reverse(so_far)),\n"+ |
| 423 | " [ h . t ] then\n"+ | 423 | " [ h . t ] then\n"+ |
| 424 | - " with entry = vt_view_row([\n"+ | 424 | + " with entry = vt_view_row(to_Int(h.id), [\n"+ |
| 425 | // view row | 425 | // view row |
| 426 | make_list_view_row(table, "h", " ", list_view)+"\n"+ | 426 | make_list_view_row(table, "h", " ", list_view)+"\n"+ |
| 427 | " ]),\n"+ | 427 | " ]),\n"+ |