Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 20 of 23 total
Thread setting up a local application
Fri, May 4 2007 3:13 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


>I kind of ran low on space, and bitmaps can't span multiple pages in the
>PDFs. Smiley

Good cop out.

>The relationship is this:
>
>Configuration
>|
>---- Database Definition / Path ----------------------> Database -> Catalog
>|
>---- Database Definition / Path ----------------------> Database -> Catalog
>|
>---- Database Definition / Path ----------------------> Database -> Catalog

That was pretty much my understanding. Is there going to be a programming tool for "clone database to another directory but not the data"? Or do we just have to do a FileCopy (or whatever the DOS command is)?


><< One thing that baffled me a LOT is that the data files will NOT be
>created until you .open the tables. >>
>
>This is true for all files used by ElevateDB (config, catalog, table). The
>reason is that ElevateDB does not base the existence of these things on
>whether there are files present for them. Their existence is determined by
>logical means, and the files are just the manifestation of these logical
>constructs.

Now I understand it its fine but to start with it was driving me round the bend. Here I was creating the table in EDBMan and sometimes I couldn't find it on disk. Its a major viewpoint switch from DBISAM.

Roy Lambert
Fri, May 4 2007 3:18 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Harry


You can still do just that. Ship the data and the EDBDatabase.EDBCat in the same directory. All you need to do in your app is create the config file and the database.

You can sort of try this in EDBMan. Create a database, some tables and stuff a bit of data in. Copy the data and EDBDatabase.EDBCat to another directory and then in EDBMan create a database pointing to that directory. Voila!

Roy Lambert
Fri, May 4 2007 3:57 AMPermanent Link

"Harry de Boer"
Roy,

Thanks, I will try this.

Regards, Harry

"Roy Lambert" <roy.lambert@skynet.co.uk> schreef in bericht
news:36136A25-4817-4216-AC5B-AC0F7AF22254@news.elevatesoft.com...
> Harry
>
>
> You can still do just that. Ship the data and the EDBDatabase.EDBCat in
the same directory. All you need to do in your app is create the config file
and the database.
>
> You can sort of try this in EDBMan. Create a database, some tables and
stuff a bit of data in. Copy the data and EDBDatabase.EDBCat to another
directory and then in EDBMan create a database pointing to that directory.
Voila!
>
> Roy Lambert
>

Fri, May 4 2007 5:52 AMPermanent Link

"Harry de Boer"
Tim,

I now have the following setup:

EDBSession1.AutoSessionName - FALSE
EDBSession1.SessionType - stLocal
EDBSession1.SessionName - '' (empty: if I fill in 'Default' I get an error
that such a session already exists)
EDBSession1.LoginPassword - 'EDBDefault'
EDBSession1.LoginUser - 'Administrator'
EDBDatabase1.SessionName - ''
EDBDatabase1.Database - 'Test' (the databases are proper shown in the
propert editor's combobox)

When I start my app I get the login dialog with the caption 'Remote Login'.
I thought that if I set the login info in the properties a dialog should not
be shown. Furthermore the 'Remote' caption puzzles me.

Regards, Harry


"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> schreef in bericht
news:23F1FE0C-DD0C-487C-AF90-0FD1AA7497EE@news.elevatesoft.com...
> Harry,
>
> << 1) I tried to set in the configpath property the value '.\' or '..\'
and
> putting the edbconfig.edbcfg in the application dir. I get an error that
the
> database does not exists. What's the proper way to set this up (we don't
> know the directory structure at clients site, so I thought the appdir
would
> be the best. >>
>
> As Roy indicated, use full path names to ensure that you are using the
> correct config file and not relying on being in a certain working
directory
> at all times.
>
> << 2) If I use the 'default' session the login window always appears. If I
> change autosessionname to true the login window doesnot appear. Can I not
> use the default session in that way? >>
>
> Are you setting AutoSessionName to True for the default session ?  If so,
> then don't do that.  AutoSessionName is only for explicit sessions used on
a
> form or data module.
>
> Also, are you saying that you are able to login without entering a user
> ID/password if you set AutoSessionName=True ?
>
> --
> Tim Young
> Elevate Software
> www.elevatesoft.com
>
>

Fri, May 4 2007 6:44 AMPermanent Link

"Harry de Boer"
Mmm... when I make up a sessionname and fill in the appropriate properties
with it it goes well (no dialog appears). Really have to get used to all
this Smile

Harry

"Harry de Boer" <harry@staaf.nl> schreef in bericht
news:92150487-0845-475D-8537-AEBE75E8BE36@news.elevatesoft.com...
> Tim,
>
> I now have the following setup:
>
> EDBSession1.AutoSessionName - FALSE
> EDBSession1.SessionType - stLocal
> EDBSession1.SessionName - '' (empty: if I fill in 'Default' I get an error
> that such a session already exists)
> EDBSession1.LoginPassword - 'EDBDefault'
> EDBSession1.LoginUser - 'Administrator'
> EDBDatabase1.SessionName - ''
> EDBDatabase1.Database - 'Test' (the databases are proper shown in the
> propert editor's combobox)
>
> When I start my app I get the login dialog with the caption 'Remote
Login'.
> I thought that if I set the login info in the properties a dialog should
not
> be shown. Furthermore the 'Remote' caption puzzles me.
>
> Regards, Harry
>
>
> "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> schreef in
bericht
> news:23F1FE0C-DD0C-487C-AF90-0FD1AA7497EE@news.elevatesoft.com...
> > Harry,
> >
> > << 1) I tried to set in the configpath property the value '.\' or '..\'
> and
> > putting the edbconfig.edbcfg in the application dir. I get an error that
> the
> > database does not exists. What's the proper way to set this up (we don't
> > know the directory structure at clients site, so I thought the appdir
> would
> > be the best. >>
> >
> > As Roy indicated, use full path names to ensure that you are using the
> > correct config file and not relying on being in a certain working
> directory
> > at all times.
> >
> > << 2) If I use the 'default' session the login window always appears. If
I
> > change autosessionname to true the login window doesnot appear. Can I
not
> > use the default session in that way? >>
> >
> > Are you setting AutoSessionName to True for the default session ?  If
so,
> > then don't do that.  AutoSessionName is only for explicit sessions used
on
> a
> > form or data module.
> >
> > Also, are you saying that you are able to login without entering a user
> > ID/password if you set AutoSessionName=True ?
> >
> > --
> > Tim Young
> > Elevate Software
> > www.elevatesoft.com
> >
> >
>
>

Fri, May 4 2007 7:04 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Harry


email me the project at this address and I'll see if I can help.

Roy Lambert
Fri, May 4 2007 7:47 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Harry


It becomes clear now. You had a session component on the form, but the table was still using the default session which you didn't have a username or password for. Is that right?

Roy Lambert
Fri, May 4 2007 9:43 AMPermanent Link

"Harry de Boer"
Roy,

Well, I tried a lot of things so I'm not really sure but that easily could
be the case. I am up and running now. One of these days I will try your
"Ship the data and the EDBDatabase.EDBCat in the same directory. All you
need to do in your app is create the config file and the database"  solution
and I am on my way (half of it really, still waiting for the middleware
update that will work with EDB. Will be a feast to see them working
together- and a lot of testing tooSmile Anyway, thanks a lot for helping out.

Harry

"Roy Lambert" <roy.lambert@skynet.co.uk> schreef in bericht
news:6055B861-6D48-4B29-8168-7874CE8B13B2@news.elevatesoft.com...
> Harry
>
>
> It becomes clear now. You had a session component on the form, but the
table was still using the default session which you didn't have a username
or password for. Is that right?
>
> Roy Lambert
>

Fri, May 4 2007 4:09 PMPermanent Link

Gordon Turner
Harry de Boer wrote:

> Mmm.. I guess the Application.Exename is the way to go then, because that
> would be the kbmmw driven middleware server. We have a lot of customers that
> use this middlewareapp/database on their server. We want the software and
> database delivered together withan ini file that stores the dir info. As I
> understand the EDBconfig file contains  info of all the databases (initially
> on our developer system). However, I only want the EDBconfig to contain
> their database. Must I -and can I, and how?- use different EDBconfig files
> then (If I change the settings in EDBmngr, I don't see my databases anymore:
> must I create them all over again for each configuration?

If you have not yet experienced the glories of Windows Vista, you may
need to re-think using the application path for storing your data.  Even
Administrator users are not allowed to update files in the Program Files
folder structure without elevated privileges.  When installing programs,
Vista automatically elevates the privilege of the Administrator long
enough to perform the install (so you can write to the Program Files
structure during setup), but when the program executes it does NOT run
with elevated privileges and you will have to elevate it manually to
make updates to your EDBconfig file.  (I ran into this problem prepping
my applications for Vista using DBISAM.)  The new preferred location for
data files is the Application Data folder.

--
Gordon Turner
Mycroft Computing
http://www.mycroftcomputing.com
Sat, May 5 2007 3:24 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Gordon


So why use Program Files?

Roy Lambert
« Previous PagePage 2 of 3Next Page »
Jump to Page:  1 2 3
Image