Customizable menus

William Randall wrandall at fptech.com
Fri Nov 4 13:58:29 PST 2005


----- Original Message ----- 
From: "Jeff Harrison" <jeffaharrison at yahoo.com>
To: <filepro-list at lists.celestial.com>
Sent: Friday, November 04, 2005 4:42 PM
Subject: Customizable menus


> 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
>

You can add $COMPANY to the heading or version field of any filePro 5.0 menu 
and it resolve the value.

Bill



More information about the Filepro-list mailing list