Next we add the controller, in this case a dataController
component, to PersonPage.cls
. The controller mediates between the view and the model.
Note the following about the code:
attribute represents the object ID of a Caché database object. The dataController
passes this value to the model's %OnOpenSource
. Our application sets this value dynamically, so here we can specify the empty string as its value.
© 1997-2019 InterSystems Corporation, Cambridge, MA