Commit f3cb0a1f4255b7c9a03256ab1b5d4f424789d139
1 parent
32c3ae42
add specific action link when we want to override the call to generic dialog editor in list view
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
types/model/display.anubis
| ... | ... | @@ -12,8 +12,16 @@ transmit calexium_lib/CXM_message_constants.anubis |
| 12 | 12 | |
| 13 | 13 | public type HK_List_View: |
| 14 | 14 | list_view_all, |
| 15 | - list_view(String view_name, List(String) columns). | |
| 15 | + list_view(String view_name, List(String) columns, String link_id_action). | |
| 16 | 16 | |
| 17 | +public define HK_List_View | |
| 18 | + list_view | |
| 19 | + ( | |
| 20 | + String view_name, | |
| 21 | + List(String) columns | |
| 22 | + )= | |
| 23 | + list_view(view_name, columns, ""). | |
| 24 | + | |
| 17 | 25 | public define Message |
| 18 | 26 | to_Message |
| 19 | 27 | ( |
| ... | ... | @@ -23,9 +31,10 @@ public define Message |
| 23 | 31 | if list_view is |
| 24 | 32 | { |
| 25 | 33 | list_view_all then forget(add_string(_msg, "type", "list_view_all")), |
| 26 | - list_view(name, columns) then | |
| 34 | + list_view(name, columns, link_id_action) then | |
| 27 | 35 | forget(add_string(_msg, "type", "list_view")); |
| 28 | 36 | forget(add_string(_msg, "view_name", name)); |
| 37 | + forget(add_string(_msg, "link_id_action", link_id_action)); | |
| 29 | 38 | map_forget((String column) |-> forget(add_string(_msg, "columns", column)), columns) |
| 30 | 39 | }; |
| 31 | 40 | _msg | ... | ... |