postgresql - Use 4D only as front end application -


i want develop application using 4d front end , postgres backend. possible? don't want traces of database in front end i.e @ 4d end.

but here problem while opening/running compiled 4d application (exe) or opening structure file in 4d, requires datafile. question can suppress dialog use 4d front end completely.

thanks in advance.

so question can suppress dialog use 4d front end completely.

you need have data file or 4d prompt user asking create or open one, if there no tables in application.

if using v15 or higher can take advantage of default data folder in suppressing "select data file" dialog.

quote the docs

opening data file

when user launches new or updated merged application (single-user or client-server) first time, 4d tries select valid data file. several locations examined application successively.

the opening sequence launching merged application is:

1) 4d tries open last data file opened (not applicable during initial launch).

2) if not found, 4d tries open data file in default data folder next .4dc file in read-only mode (new in 4d v15, described below).

3) if not found, 4d tries open standard default data file (same name , same location .4dc file).

4) if not found, 4d displays standard "open data file" dialog box.

defining default data folder

4d allows define default data file file" @ application building stage. when application launched first time, if no local data file found (see sequence described above), default data file automatically opened silently in read-only mode 4d. gives better control on data file creation and/or opening when launching merged application first time. more specifically, following cases covered:

  • avoiding display of 4d "open data file" dialog box when launching new or updated merged application. can detect, example in on startup database method, default data file has been opened , execute own code and/or dialogs create or select local data file.
  • allowing distribution of merged applications read-only data (for demo applications, instance).

to define , use default data file:

  • you must provide default data file (named "default.4dd") , store in default folder (named "default data") inside database package (4dbase). file must provided along other necessary files, depending on database configuration: index (.4dindx), external blobs, journal, etc. responsibility provide valid default data file. note since default data file opened in read-only mode, recommended uncheck "use log file" option in original structure file before creating data file.
  • when application built, default data folder integrated merged application. files within default data folder embedded.

the following graphic illustrates feature:

image http://doc.4d.com/4dv15/picture/1879237/pict1879237.en.png

when default data file detected @ first launch, silently opened in read-only mode, allowing execute custom operations not modify data file itself.

for more information see:
docs v15.1+
docs v15r4


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -