What is the syntax to pass a key to a template using the Catalyst Command within a program. I am running the following Command:
Catalyst("w","Order_Entry"). I would like to pass the key and open the template with the key. Currently, I am using @Recur1 to pass the key. Also, is it possible to pass a key when calling a window through a Softkey.
Thanks Bruce.
@data=OrderKey : \0D\
catalyst("W","ORDER_ETY")
Bruce,
There are two ways that I use all of the time to do this. The first is to execute a select statment on the table in questions, generating a one key select list, and then call the window. This will automatically bring that record up in the window.
The other is to call the window, and then execute a catalyst command for a keyboard (code=K") that consists of the @ID followed by a CR. This would 'type' the @ID in the key prompt, and then execute a carriage return, effectively bringing up the record.
Matt Sorrell
Well if it is always a single key with no spaces, the simplest way is to do this:
Catalyst("W", "ORDER_ENTRY ":Key_ID)
If the key can have spaces, or if you want to bring up a browse list, Andrew McAuley reminded me you can use Make.List very effectively as such:
Call Make.List(0, Key_list, "", "") ; * Key_list is @FM delimited
Catalyst("W", "ORDER_ENTRY")
Or even
@Sentence=. MYWINDOW MYKEY"Call Windowalthough this doesn't actually include catalyst as requested
![]()
World Leaders in all things RevSoft