6 19 5 Communication is always Between an Owner Form and a Member Form

Visual LANSA

6.19.5 Communication is always Between an Owner Form and a Member Form

For two forms to exchange information, one form must be the owner form and the other one must be an instance of another form included in it, in other words a member form. Therefore:

  • You could execute FRMDETAIL separately but in this case it could not communicate with WRKEMP. For the forms to be able to exchange information, you must execute the owner form and then invoke the member forms from it.
  • If you included another form in WRKEMP, the FRMDETAILS form could not communicate with it directly. It could, of course, communicate with it through WRKEMP.
  • A form you include in an owner form of the application can in turn be the owner of other forms. For example FRMDETAIL could be the owner of a Print Details form. FRMDETAILS could communicate with the Print Details form, but WRKEMP could not.
  • Note that before showing the member form it is good practice to always expressly set its owner form using the run-time FORMOWNER property:

SET COM(#frmdetail) formowner(#com_owner) 

 

Ý 6.19 Multi-Form Applications