settings_model.anubis 572 Bytes
/*
 * Created by PyramIDE.
 * User: フランスのトトロ aka (David RENÉ) 
 * Date: 01/01/2022
 * Time: 02:32
 * © David RENÉ
 */

read hayamiki_lib/types/hayamiki.anubis

public define HK_Table   settings_table =
  hk_table("settings",
    hk_model(
      [
        
        hk_column("name", char_field(20),  []),
        hk_column("value", char_field(20),  []),
      ],
      "obj.name+\" = \"+obj.value"
    ),
    hk_display(
      //list_view
      [ list_view_all],
      //list edit
      [edit_view_list_form("default", ["name", "value"])]
    )
  )
.