[SOLVED] Â Automatically update one field when another is updated |
4/14/2016 10:24:28 AM |
ASPRunner.NET General questions | |
![]() I know this is going to be complicated and involve JavaScript -- something I'm not good with. But I would appreciate any help getting started. |
|
J
|
JosefTK 4/14/2016 |
Use Trigger in MS-SQL? |
J
|
JosefTK 4/14/2016 |
Use Trigger in MS-SQL? |
![]() |
Pete K author 4/14/2016 |
I suppose I could write a trigger that would set the value when adding or editing IF the user leaves the field blank. I have had some bad luck in the past with triggers and performance issues as well as unintended consequences. But that might be the best way to handle this. Thanks for the suggestion. |
![]() |
jadachDevClub member 4/14/2016 |
If you want Registration Deadline to be editable, then I think you need JavaScript. Triggers will work after the record is saved to the database. This can also be done in an event. |
![]() |
jadachDevClub member 4/14/2016 |
Peter, you can do something like this on JavaScript OnLoad event: var ctrlDateTime = Runner.getControl(pageid, 'DateTime');
|
![]() |
Pete K author 4/18/2016 |
Thanks Jerry. |