Customizable menus

Jeff Harrison jeffaharrison at yahoo.com
Fri Nov 4 13:42:11 PST 2005


filepro dmakemenu 5.0.13.D4  SCO Unix

I have the need to show the company name on all of a
client's menus.  The problem is that this client is
running multiple companies by using qualifiers.

With Menu Master/Maestro this was pretty trivial, but
I am struggling to do this with filepro menus.

I figured that I could copy all of the menus to a
holding area called $PFDIR/filepro/menuorig,  Then
just before calling a given menu I would copy/edit it
on the fly and substitute my string into the menu
file.

This actually works great up to a point.  The problem
comes in when the first user goes two menus deep, and
then a second user goes into another company.  When
the first user backs out of the menu that they are in
they unfortunately see the 2nd user's menu.  I had
mistakenly assumed that the menu would be in memory,
and so would remain unchanged for them.

I would hate to have to create a unique menu for each
user.   Is that what I am going to have to do, or does
someone have a better idea?

Here is the menu script, more or less, that I am
running to do this currently:

umask 000
COMPANY="SEA_LLC.."; export COMPANY

PFQUAL=bem; export PFQUAL
sed "s/%.......%/${COMPANY}/"
<$PFDIR/filepro/menuorig/menuname >$PFMENU/menuname

/appl/fp/runmenu menuname

Thanks in advance.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The easiest and
fastest ways to generate code for filePro exports and imports.


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


More information about the Filepro-list mailing list