Commit 55d484c763e0539b990151b1b56aa10aa6405524
1 parent
f6c73ca7
replace NULL value which are represented by "{NULL}" string by an empty string. …
…This make better reading in view list or editor
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
view/view_table_renderer.anubis
| ... | ... | @@ -13,7 +13,7 @@ read hayamiki_lib/types/hayamiki.anubis |
| 13 | 13 | read system/string.anubis |
| 14 | 14 | read locale/L3.anubis |
| 15 | 15 | read tools/basis.anubis |
| 16 | - | |
| 16 | +read data_base/sqlite.anubis | |
| 17 | 17 | read system_colors/rgb.anubis |
| 18 | 18 | read system/convert.anubis |
| 19 | 19 | |
| ... | ... | @@ -68,9 +68,9 @@ public define List(CXM_Form_Field) |
| 68 | 68 | primary_key(idx) then |
| 69 | 69 | [hidden(html_Id(""), wan("id"), wav(idx))], |
| 70 | 70 | information(s_name, c_name, value, width, help) then |
| 71 | - [input_readonly(label(_T(s_name), no_help), wan(c_name), init(value), if width > 0 then custom(width) else narrow), help_line(help, _T)], | |
| 71 | + [input_readonly(label(_T(s_name), no_help), wan(c_name), init(not_null_String(value)), if width > 0 then custom(width) else narrow), help_line(help, _T)], | |
| 72 | 72 | text(s_name, c_name, value, help) then |
| 73 | - [input(label(_T(s_name), no_help), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], | |
| 73 | + [input(label(_T(s_name), no_help), wan(c_name), init(not_null_String(value)), narrow, mandatory), help_line(help, _T)], | |
| 74 | 74 | password(s_name, c_name, help) then |
| 75 | 75 | [password_input(label(_T(s_name), no_help), wan(c_name+"_1"), init(""), narrow, non_mandatory), |
| 76 | 76 | password_input(label(_T(s_name), no_help), wan(c_name+"_2"), init(""), narrow, non_mandatory), |
| ... | ... | @@ -81,7 +81,7 @@ public define List(CXM_Form_Field) |
| 81 | 81 | choices_text(s_name, c_name, value, select, help) then |
| 82 | 82 | [selector_c([],label(_T(s_name), no_help), html_Id(""), wan(c_name), 1, select.get(db), success(init(value)), mandatory), help_line(help, _T)], |
| 83 | 83 | text_area(s_name, c_name, value, help) then |
| 84 | - [text_area([],label(_T(s_name), no_help), html_Id(""), wan(c_name), init(value), narrow, (Int)5, mandatory), help_line(help, _T)], | |
| 84 | + [text_area([],label(_T(s_name), no_help), html_Id(""), wan(c_name), init(not_null_String(value)), narrow, (Int)5, mandatory), help_line(help, _T)], | |
| 85 | 85 | boolean(s_name, c_name, value, help) then |
| 86 | 86 | [checkboxr([],label(_T(s_name), no_help), html_Id(""), wan(c_name), wav(c_name),value, mandatory), help_line(help, _T)], |
| 87 | 87 | integer(s_name, c_name, value, help) then |
| ... | ... | @@ -150,7 +150,7 @@ define HTML_Row(HTML_Off_Form) make_line |
| 150 | 150 | [h . t] then |
| 151 | 151 | with cell = if h is |
| 152 | 152 | { |
| 153 | - text(string) then cell((HTML_Off_Form)text(string)), | |
| 153 | + text(string) then cell((HTML_Off_Form)text(not_null_String(string))), | |
| 154 | 154 | // link(id, string) then cell((HTML_Off_Form)actioner(same,same, link(string), action_name, [("table_name", table_name),("id",id)])), |
| 155 | 155 | link(id, string) then cell((HTML_Off_Form)literal(jq_dialog_open(string, dialog_id(action_name+"_dlg_ajax"), "'id="+id+"'"))), |
| 156 | 156 | link_id_action(id, name, action) then cell((HTML_Off_Form)actioner(same,same, link(name), action, [("id",id)])), | ... | ... |