The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by dkinzler]

First of all, I'm responding to your message from 7/23/98. Hi.
Second of all, I am a new PFC user. Actually, I haven't even started using it
but am gearing up to. Last week I took a PFC Class through Greenbrier and
Russel in Shaumberg IL. I've been working with PB since December of last year
and have taken 5 classes total through G&R.

Here is my question. Where do I begin?

I have your book and have looked through it and made notes.

I have started an application called 'foundation' and have added the PFC and
PFE pbls, set the transaction object to n_tr, created the non-visual from
n_cst_appmanager, declared the global, created the instance, created the user
events in my appmanager, and redirected the events of the application to the
events in my appmanager.

I want to open the logon screen next and get the user info, start up a
database, getting the info from an ini file, which I also have created in the
directory, and check the userid and password for validity and security level.


Do I connect to the database first in the appmanager's construct event or open
event? Do I call the logon window in the construct or open event of the
application or do I create a frame window and open that up first?

Any help would be greatly appreciated, as I have no idea what I'm doing.
Thank you.

Deb Kinzler
import-bot (20211) [Avatar] Offline
#2
Re: Hi
[Originally posted by rik brooks]

> I have started an application called 'foundation' and have added the PFC and
> PFE pbls, set the transaction object to n_tr, created the non-visual from
> n_cst_appmanager, declared the global, created the instance, created the user
> events in my appmanager, and redirected the events of the application to the
> events in my appmanager.

So far so good.

> Do I connect to the database first in the appmanager's construct event or open
> event? Do I call the logon window in the construct or open event of the
> application or do I create a frame window and open that up first?

Here we enter an area that is up to you. There are a lot of differences in
style that you'll face. For example, the first question, where to connect the
database. I typically do that in the appmanager. I used to do that in the
logon window then I wrote an application where the users could log off and
back on as someone else. The connect got in the way.

Calling the logon window is another decision. If you call it from the
appmanager then you see a logon window and that is all. If you succeed then
the application starts. On the other hand I personally prefer to see the frame
window and then have the logon show up on top of that. I find that more
visually appealling. Again, it's up to you.

Rik