04-21-2018, 01:31 PM
(04-19-2018, 03:41 PM)radub Wrote: Hello,
We have IW 14.2 along with XE5.
Our html contains DataTables plugin.
Tu supply data to DataTables we're trying to use a Delphi function but we don't know how to make the function to return this data to the DataTables js function.
We cannot find a way to register either a callback real function (not a procedure), or to pass out/var parameter(s) from the procedure.
Any help, example, demo will be much appreciated!
Thank you
Hi, You can use an IWTemplateProcessor wich have a Event called OnUnknowTag to full data to use in DataTable.
Other way is put a IWLabel and set Properties RawText := True; Full data to iwlabel and use in DataTable.
Other way is OnFormRender add a var with data like Self.JavaScript.Add( 'var myData = xyz'); and use myData on DataTable.
I don't use DataTable ok. Is ideas to test and adapt to your case.

