Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Product Manuals » Elevate Web Builder 3 Manual » Using Databases » Responding to DataSet Changes |
procedure TMyForm.VendorsStateChange(Sender: TObject); begin case Vendors.State of dsClosed: VendorStateLabel.Caption:='Closed'; dsBrowse: VendorStateLabel.Caption:='Browse'; dsInsert: VendorStateLabel.Caption:='Insert'; dsUpdate: VendorStateLabel.Caption:='Update'; end; end;
procedure TMasterDetailForm.CustomerOrdersRowChanged(Sender: TObject; Column: TDataColumn); begin if (Column=nil) then begin UpdateOrderButtons; UpdateOrderLabels; end; end;
procedure TMasterDetailForm.LoadOrders; begin CustomerOrders.Params.Clear; CustomerOrders.Params.Add('CustomerID='+Customer.Columns['CustomerID'].AsString); Database.LoadRows(CustomerOrders); end; procedure TMasterDetailForm.CustomerRowChanged(Sender: TObject; Column: TDataColumn); begin if (Column=nil) then begin UpdateCustomerButtons; LoadOrders; end; end;
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |