![]() |
jadachDevClub member 2/19/2019 |
I just checked this out on one of my test apps. If I do not make a selection, my database value remains null. If I make a selection and save, the database field has a numeric value. If I edit the selection to "Please Select" (no value), the database field returns to null. I am using MSSQL Server if that makes any difference. |
P
|
Penultimatum author 2/20/2019 |
I just checked this out on one of my test apps. If I do not make a selection, my database value remains null. If I make a selection and save, the database field has a numeric value. If I edit the selection to "Please Select" (no value), the database field returns to null. I am using MSSQL Server if that makes any difference.
insert into Table (`id`, `var1`, `var2`, `Name`) values ('abc', 'def', 'xyz', '')
update `Table` set `id`='abc', `var1`='def', `var2`='def', `Name`='' where id='abc'
|
M
|
MikeT 2/20/2019 |
Maybe you could use 'Custom record update' event with your own SQL, but this would be somewhat cumbersome solution. |
![]() |
Admin 2/20/2019 |
For your scenario using CustomEdit event will be a solution. |
P
|
Penultimatum author 2/22/2019 |
I managed to achieve what I need using the 'Custom Record Update' with something like this: ## Build the Set value element of update ###
|
M
|
MikeT 2/22/2019 |
Just another thought: maybe you could achieve the same with triggers in the db, maybe less overhead and stuff to manage in your code. But probably also a question of "taste". |