Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread lazarus and embedded elevateDB
Thu, Dec 31 2009 7:50 PMPermanent Link

"Fabio Codebue @ GestionaleOpen"
I'm try to develop a simple app, I have to show to customer on 2 jan
2010 Wink with lazarus for winCE

I'm using Lazarus 0.9.29 with FPC 2.3.1 on Win7
I created with ElevateDB Manager a new connection "gomaga" into
directory c:\gomaga and on it a new database "gomagaDB" under
subdirectory gomagaDB

I just put one  engine "engmaga", one session "sesmaga" and one
database component "arcmaga".
When I try to open arcmaga.database I see noone database!!!!

where I make some error?

The only property I changed are:

engmaga.ConfigPath:= c:\gomaga
sesmaga.ConfigPath:= c:\gomaga
sesmaga.SessionName:= gomaga
sesmaga.SessionType:= stLocal


1. why I can't see database name?
2. why I can't open database?
3. Which kind of file I have to distribute to windows mobile hardware?

Fabio Codebue
Gestionale Open srl
Fri, Jan 1 2010 10:14 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Fabio,

<< When I try to open arcmaga.database I see noone database!!!! >>

This is usually due to not hooking up the SessionName property correctly for
the TEDBDatabase/TEDBTable/TEDBquery/TEDBStoredProc components.

In your case, make sure that the TEDBDatabase and other components'
SessionName property has this value:

'gomaga'

See here for more information:

http://www.elevatesoft.com/newsgrp?action=openmsg&group=16&msg=10761&page=1#msg10761

on how the SessionName property is used to hook up the components to a
specific session.

<< 3. Which kind of file I have to distribute to windows mobile hardware? >>

Just the .exe, and optionally the database catalog (edbdatabase.edbcat).

If you don't distribute the database catalog, you can use SQL DDL statements
to recreate everything on the fly, as needed.  Please see our shopping list
example application here for more information:

http://www.elevatesoft.com/articles?action=view&articleno=5

specifically the data module where the DDL is executed "on-the-fly".

If you distribute the database catalog, ElevateDB will automatically create
the table files when a table is opened.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image