/*
Next step, you choose any control to be used for data-editing.
foreign-keys have special control, because we must load the value provided in master-table or referenced table and save ‘id’ value of this master-table or referenced table to current editeed table. the combo box or list is fulfill our need.
i recommend this options: */
Berikut kita harus memilh kontrol yang digunakan untuk proses editing. Untuk foreign-key memperoleh perlkuan khusus karena data pilihan harus dimuat dari tabel-master atau tabel yang direferensi, kemudian menyimpan nilai ‘id’ dari tabel yang diacu ini ke dalam tabel yang aktif disunting.
saya merekomendasikan ini:
if sqltype is foreignkey then we use list or select-option
else
if sqltype is integer-type (bit,tinyint,mediumint,int,integer,bigint) we use text-input
if sqltype is shortstring (char or varchar) {
--if not-password-field then {
----if field-name is file-upload-field then{
------if editing-is-new then we-use file-input else we use we use text-input normal-type
----} else {
-------we use text-input normal-type
----}
--}else{
we use text-input normal-type
}
else we use text-input password-type
}
if sqltype is longtext (tinytext,text,mediumtext,longtext) we use text-area
good day // salam bahagia







































