7.2 Invoking the Customer Subfile Component

You have just created a Component Reference part to monitor for events and to retrieve attribute values from the COMPLIST component. Now you need to invoke the COMPLIST component when needed.

Follow these steps:

  1. Place another push button on the Customer Inquiry window.
  2. Name the push button PB_FIND and change its label to Find using the Notebook settings.
  3. From the push button pop-up menu create an action subroutine for the PRESS Event and add the following logic:
  4. 
    CSRN01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq
    C                   Start     'COMPLIST'                           99
    

    The error indicator on the START operation code is required to prevent a run-time error if the component has already been started.

  5. Remember to save your source in the Editorby clicking File > Save.

Click on to indicate that you've done all the steps.