| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
DB-W-HTML
   Example  
   Where it Starts  
   The Big Picture  
   DB Structure  
   AppID on the Fly  
   Hook up the DB  
   htdbwapp.pas  
   Multilingual DB  
*

  

Browsing >>Hook up the DB: From ThtDBWebApp to the TDatasource

In the datamodule containing a TDataSource pointing at your database.
function TfmAppDBHTML.Init:Boolean;
begin
  Result:= inherited Init;
  if not result then
    exit;
  with TwhdbApplication(pWebApp) do begin
    ChunkDataSource:=DataSource1;  // hook up the database for chunks.
    ChunkFieldName:='ChunkText';
    CacheDBChunks:=true;  // turn on to optimize performance.
    end;
  BtnLoadClick(nil);  // automatically load the database
end;

 
Path:  www.href.com to; Services to; Tech Talk Archive to; DB-W-HTML to; Hook up the DB

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:28:51.
Session 452429792, 26 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.226;
Time to produce this page: 0msec.