Commit 89e465d6f9d8461c1168c798ab69ddcdea5ae832
1 parent
44fe5cf1
add choices list in table renderer
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
database/vtm/view_table_renderer.anubis
| ... | ... | @@ -73,6 +73,8 @@ public define List(CXM_Form_Field) |
| 73 | 73 | [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], |
| 74 | 74 | foreign_text(s_name, c_name, value, select, help) then |
| 75 | 75 | [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory), help_line(help, _T)], |
| 76 | + choices_text(s_name, c_name, value, select, help) then | |
| 77 | + [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(value)), mandatory), help_line(help, _T)], | |
| 76 | 78 | text_area(s_name, c_name, value, help) then |
| 77 | 79 | [text_area([],_T(s_name), htmlId(""), wan(c_name), init(value), narrow, (Int)5, mandatory), help_line(help, _T)], |
| 78 | 80 | boolean(s_name, c_name, value, help) then | ... | ... |
database/vtm/view_table_types.anubis
| ... | ... | @@ -17,7 +17,8 @@ public type VT_edit_entry: |
| 17 | 17 | primary_key (String idx), |
| 18 | 18 | information (String s_name, String c_name, String v_name, Int width, HK_Help_Text help), //s_name = show_name for translation, v_name = string to show |
| 19 | 19 | text (String s_name, String c_name, String value, HK_Help_Text help), //s_name = show_name for translation, c_name = table column name |
| 20 | - foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector, HK_Help_Text help), | |
| 20 | + foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector, HK_Help_Text help), | |
| 21 | + choices_text(String s_name, String c_name, String selected, VT_edit_selector selector, HK_Help_Text help), | |
| 21 | 22 | text_area (String s_name, String c_name, String value, HK_Help_Text help), //s_name = show_name for translate, c_name = table column name |
| 22 | 23 | boolean (String s_name, String c_name, Bool value, HK_Help_Text help), |
| 23 | 24 | integer (String s_name, String c_name, Int value, HK_Help_Text help), | ... | ... |