Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IW 15.1.5.RC7
#3
(09-05-2019, 09:07 PM)ShaneStump Wrote: Howdy Alexandre!

I downloaded the latest interim version to test against my application and I am happy to report that most of my application is working.

The earlier issue I reported about memory EAccessErrors was caused because apparently in IW 15.0.24->15.1 the destruction of objects (or at least child forms) of a form has changed! That is, I have a form that contains a couple of children IWAppForms and I was saving their some of their variables in my main form's deconstructor because usually they aren't destroyed until AFTER my destructor has run. Any how, once I noticed this, I was able to fix my issue.

The problem I haven't figured out that is causing me issues is RegisteredCallBack()s. I have  a class I wrote that encapsulates a bootstrap 4 progress stepper class. Since it is a non-visual class, I use a TDataModule. When I registered my callback, I use the function below:

void TSSBS4ProgressStepperDataModule::RegisterCallbacks(void)
{
// Add JS events
  SSStringListUniquePtr pJavaScript(new TSSStringList);
  pJavaScript->Add(L"function OnStepItemClick(event)");
  pJavaScript->Add(L"{");
  pJavaScript->Add(L"executeAjaxEvent(\"&ID=\"+event.currentTarget.id.toString(),null,\"" + UpperCase(Name) + L".OnStepItemClick\",false, null, false)");
pJavaScript->Add(L"}");

  Form->JavaScript->AddStrings(pJavaScript.get());

  Form->WebApplication->RegisterCallBack(UpperCase(Name) + L".OnStepItemClick",OnStepItemClick);
}


When I render the control that will call the above event, I use the following code line:

pHtmlList->AddEx ( L"<a href=\"#\" id=\"%d\" onclick=\"OnStepItemClick(event)\">%s</a>",nStepID,strCaption.c_str());

Any how, all works in IW versions 15.0.24 and previous.

I looked at the demos and don't see an updated example of how to do the new callbacks.

What am I missing?

Thanks,

Shane

Anyone?????
Reply


Messages In This Thread
IW 15.1.5.RC7 - by ShaneStump - 09-05-2019, 09:07 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-10-2019, 03:24 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-13-2019, 03:46 AM
RE: IW 15.1.5.RC7 - by kudzu - 09-13-2019, 02:33 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-13-2019, 02:52 PM
RE: IW 15.1.5.RC7 - by kudzu - 09-13-2019, 03:28 PM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 09-13-2019, 11:58 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-14-2019, 12:54 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-22-2019, 08:48 PM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 09-23-2019, 09:08 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-24-2019, 01:41 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 09-29-2019, 08:56 PM
RE: IW 15.1.5.RC7 - by jeroen.rottink - 10-08-2019, 09:34 AM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 10-09-2019, 09:34 AM
RE: IW 15.1.5.RC7 - by jeroen.rottink - 10-09-2019, 09:51 AM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 10-09-2019, 11:16 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-10-2019, 04:25 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-12-2019, 11:16 AM
RE: IW 15.1.5.RC7 - by jeroen.rottink - 10-12-2019, 12:18 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-12-2019, 12:27 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-23-2019, 04:03 AM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 10-24-2019, 10:46 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-25-2019, 05:58 PM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 10-31-2019, 08:43 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 10-31-2019, 05:40 PM
RE: IW 15.1.5.RC7 - by ShaneStump - 11-05-2019, 07:50 PM
RE: IW 15.1.5.RC7 - by Alexandre Machado - 11-07-2019, 08:16 AM
RE: IW 15.1.5.RC7 - by ShaneStump - 11-15-2019, 07:23 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)