Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New demo: IWGrid + DataTables (and almost no code)
#4
Hi Soren,


>> how to use one of my SQL tables in stead.

If you scroll to the bottom of my example you'll see I'm creating the json string (to be passed to a datatable) using a SQL query so should work very similarly in your case.  The keys are setting the ajax parameter in the new datatable, e.g. "ajax: '/Data3'," then creating a custom content handler in IW responding to requests on /Data3 to serve up the required json data to populate the table.  Sample of Delphi custom content handler.
[url=https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/CustomContentHandlers][/url]
Regards,
Mark
Reply


Messages In This Thread
RE: New demo: IWGrid + DataTables (and almost no code) - by MJS@mjs.us - 02-23-2020, 03:32 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)