Blocking activation of the F24=More keys function key in a new 2E program
search cancel

Blocking activation of the F24=More keys function key in a new 2E program

book

Article ID: 433628

calendar_today

Updated On:

Products

CA 2E

Issue/Introduction

How do I add an F24=More keys function to a new 2E program of type EDTRCD? I am unable to modify the footer of the Device screen “EDIT SCREEN FORMAT DETAILS.”
With F5=Select header/footer, you can select a header/footer template, but the text displayed on the command keys remains static (via the screen) and cannot be modified via the program (in the Process command keys section).    

Environment

CA 2E v8.7.x

Resolution

The following procedure can be followed to customize the F24 menu.  We can not directly modify the CMDTXT1 and CMDTXT2 of the footer in the action diagram. Those are defined as constants in the display file source.

  1. To achieve our requirement, we need to create two fields of length 78 and add them as fields in the “*Standard header/footer  “ like below:

    Here, Command Text1 and Command Text2 are the text fields of length 78.

  2. Also, we created one number field Toggle_Footer_No of NBR type to toggle between different footers.

  3. Now, create one footer template “*STD SCREEN HEADINGS(CU2) Define screen format” and then go to the design of that footer, hide the original *cmdtxt1 and *cmdtxt2, and enabled our newly created two fields.




  4. Now attach this header and footer to our EDTRCD function in function options.

  5. For this example, we create 4 RTV-type messages in a *message file, like below:


    like this for Command Text2_RTV  configure “F7=Test F9=Sub     F24=More Keys “
    for Command Text3_RTV  configure “F7=Test F9=Sub F11=Mul   “
    for Command Text4_RTV  configure “F8=Test F6=Sub     F24=More Keys  “..

  6. Now, go into the action diagram of EDTRCD, and in the “Initialize program      “ user point, add the logic below:

    RTVMSG logic will automatically come if we take IMF on the created RTV messages. As messages created are RTV types this RTVMSG functions will come.

  7. This is the user source(EXCUSRSRC):

    ZZAJTX and AAZKTX are the command text fields we created in the footer, and I can see these variables in the DDS of the generated display file. WUAJTX and WUAKTX are the work fields.

  8. Add the logic below in the “USER: Process command keys   “ user point:

Additional Information

Here also is a thread from the 2E Community website that discusses the same question:

Re: Command key line on a 132 character screen