DEFINE PRIVATE VARIABLE oServiceAdapter AS openedge.tutorial.services.serviceAdapter.
|
/* openQuery */
METHOD PRIVATE VOID openQuery(): bindingSource1:handle = oServiceAdapter:getDatasetHandle(). END METHOD. /* closeQuery*/ METHOD PRIVATE VOID closeQuery(): oServiceAdapter:closeQuery(). END METHOD. |
CONSTRUCTOR PUBLIC departmentForm ( ):
SUPER(). oServiceAdapter = NEW ServiceAdapter("Department"). InitializeComponent ( ). openQuery(). CATCH e AS Progress.Lang.Error: UNDO, THROW e. END CATCH. END CONSTRUCTOR. |
DESTRUCTOR PUBLIC departmentForm ( ):
closeQuery(). IF VALID-OBJECT(components) THEN DO: CAST(components, System.IDisposable):Dispose(). END. END DESTRUCTOR. |