Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWLocker How To?
#1
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
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)