Re qualifiers

GCC Consulting gccconsulting at comcast.net
Wed Mar 22 07:28:17 PST 2006


I don't know how many of you are aware of the following, so I am posting
this just in case.

I have an application which runs on terminal server wherein a user logs into
fp through a routine I wrote.

Recently I needed to create an application which would be specific to that
user.  Each user would have his own database consisting of 2 file.  I
created the files with qualifiers and use their employee # for the qualifier
name.  What I then needed to do was pass this value to the menu scripts -m
option.

I already was setting this value as an environmental variable as part of the
login program. I set each menu option as a menu script (see title bar on
previous e-mail)

@echo off
Title View or Enter New Referrals
Rclerk my_referrals -s1 -m %pfvalue%

Simple and gets the job done based on the user. 

For those of you who don't know how I am getting this variable set, my login
script sets the basic filePro environment and then runs the login program.
This program verifies the login name and password, gets the employee # and
then creates a batch file which sets some additional variable to be used by
my programs.  When the login program finishes the batch file is called, then
deleted, and the user menu appears.  Since all of the variables are set from
within the startup batch file, all of the variables are active for that
session.

In addition the user name appears on the menu using the tip from Ken Brody a
few months ago by placing a variable from memory using $variable name.  In
my case it's $hooty.  This personalizes this application as my client
requested.

When they login to terminal server, the login script runs.  When the exit
the menu, they are logged off the system.


Richard Kreiss 
GCC Consulting




More information about the Filepro-list mailing list