METHOD PRIVATE VOID openQuery():
bindingSource1:handle = fServiceAdapter:getDatasetHandle(). btnFirst:Enabled = FALSE. btnPrev:Enabled = FALSE. btnNext:Enabled = TRUE. btnLast:Enabled = TRUE. btnSave:Enabled = FALSE. btnCancel:Enabled = FALSE. END METHOD. METHOD PRIVATE VOID closeQuery(): fServiceAdapter:closeQuery(). END METHOD. |
CONSTRUCTOR PUBLIC purchaseOrderForm ( ):
SUPER(). fServiceAdapter = NEW openedge.tutorial.services.ServiceAdapter("PurchOrder"). InitializeComponent ( ). OpenQuery(). CATCH e AS Progress.Lang.Error: UNDO, THROW e. END CATCH. END CONSTRUCTOR. DESTRUCTOR PUBLIC purchaseOrderForm ( ): closeQuery(). IF VALID-OBJECT(components) THEN DO: CAST(components, System.IDisposable):Dispose(). END. END DESTRUCTOR. |