05-19-2019, 09:35 AM
Hello,
Here's two ways to handle it with CGDevTools using 'btnSearch' as an example:
Here's two ways to handle it with CGDevTools using 'btnSearch' as an example:
- To disable / enable the button - OnCreate{ btnSearch->JQEvents->OnClick->Script = "function (e) { $(<#btnSearch#>).button({ disabled: true }); }";}btnSearchJQButtonOptionsClick{ ...process btnSearch->JQButtonOptions->Disabled = false;}To lock / unlock the whole form - OnCreate{ btnSearch->JQEvents->OnClick->Script = "function (e) { ActivateLock(); }";}btnSearchJQButtonOptionsClick{ ...process WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("ReleaseLock();");}

