How to create a new field in database table?


i need a new field in the table “tevents”. So i created the field “termin”. But what i have to change that he maps into that field? Can someone help me please and guide me through this solution? Finally it should work something like this:

var termin = [
	{ key: 1, label: 'Test 1' },
	{ key: 2, label: 'Test 2' },
	{ key: 3, label: 'Test 3' },
	{ key: 4, label: 'Test 4' }
   {name:"description", height:23, map_to:"text", type:"select", options:section_wonr, focus:true}, 
   {name:"termin", height:23, map_to:"termin", type:"select", options:termin },
   {name:"custom", height:23, type:"select", options:sections, map_to:"type" },
   {name:"time", height:72, type:"time", map_to:"auto"}

I’m really new with this and hope that it’s not too complex :frowning:

thank you

Your client side code look valid, it will create a select in the lightbox and will send termin value to the server side. The only thing which you need to done - add “termin” in list of fields in the render_table or render_sql command, to link client side data to the database.

Perfekt … thank you :slight_smile: