Rclerk to a specific record

Kenneth Brody kenbrody at spamcop.net
Fri Jul 15 13:20:28 PDT 2016


On 7/15/2016 4:06 PM, Jason Garner via Filepro-list wrote:
> Good Afternoon Fileproians,
>
> I would like to setup a key for my users that rclerks them to a specific
> record in a different file.
>
> I was looking in the manual and didnt see an argument for rclerk that would
> allow that.
>
> I did see that you could pass stuff in into "System Maintained" variables
> like @PM. I was thinking I could maybe do my lookup stuff to get the RN I
> wanted and then shove that inside one of these system maintained variables
> and then write something in @once or @menu in the destination file
> processing table and then in my rclerk command, bypass inquire update and
> add and go directly to processing.
>
> But I thought I better ask for the "right way" to do it before I
> accidentally leveled Moscow. :)

There is no single "right way" to do something like that.  However, a very 
common way to do this is basically what you mention -- pass the record 
number via one of the "-Px" command-line flags, and look at the 
corresponding @Px system field in @MENU to do a lookup-dash to that record 
number if specified.  (And protect yourself from getting into an infinite 
loop if the user goes back to the *clerk menu.)

Remember that this will only place the user on that record upon starting 
*clerk.  You'll need to do other things (perhaps in @ENTSEL) to prevent the 
user from going to other records, should you wish to prevent such behavior.

-- 
Kenneth Brody


More information about the Filepro-list mailing list