![]() |
|
IWLocker How To? - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: IWLocker How To? (/thread-1197.html) |
IWLocker How To? - ShaneStump - 08-20-2019 Howdy All! I have some places where I need to lock the form and so I have functions that basically implement the following (c++): void ActivateFormLock(void) { UnicodeString strJS = L"ActivateLock();"; // Add java script to be executed! WebApplication->CallBackResponse->AddJavaScriptToExecute(strJS); } void ReleaseFormLock(void) { // Javascript to lock form UnicodeString strJS = L"ReleaseLock();"; // Add java script to be executed! WebApplication->CallBackResponse->AddJavaScriptToExecute(strJS); } The problem is the IWLocker isn't activated. What am I doing WRONG? Thanks in advance, Shane RE: IWLocker How To? - MJS@mjs.us - 08-20-2019 Hi Shane, Usually I'll put 'AcivateLock();' in the client js event so it gets locked immediately then this will release after returning from the server: WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("ReleaseLock();"); Regards, Mark |