01-18-2020, 10:45 PM
(This post was last modified: 01-18-2020, 10:47 PM by Alexandre Machado.)
In IW 15.1.11 we introduced 2 new properties in IWDBLookupComboBox and IWDBLookupListBox controls.
From the release notes:
Here is an online demo showing how it works:
http://intraweb.net.br/DBLookupCombo/
This is the "gigantic" amount of code required to make this demo work (source in our github repo, link in the demo):
yes, there is no code other than code created by IntraWeb application wizard itself when a new project is created.
Absolutely ZERO lines of code!
Enjoy
From the release notes:
Quote:DBLookupComboBox and DBLookupListBox new feature AutoSetListSourceCursor.
Allows automatic refresh/sync of DBLookupComboBoxes/ListBoxes when lookup DataSets are part of Master/Detail relationship
Here is an online demo showing how it works:
http://intraweb.net.br/DBLookupCombo/
This is the "gigantic" amount of code required to make this demo work (source in our github repo, link in the demo):
Code:
unit Unit61;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Data.DB,
IWCompLabel, Vcl.Controls, IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl,
IWControl, IWCompListbox, IWDBStdCtrls, IWCompGrids, IWDBGrids, IWCompButton,
IWCompText, IWHTMLControls;
type
TIWForm61 = class(TIWAppForm)
cbCountry: TIWDBLookupComboBox;
lblCountry: TIWLabel;
cbState: TIWDBLookupComboBox;
lblState: TIWLabel;
cbCity: TIWDBLookupComboBox;
lblCity: TIWLabel;
IWText1: TIWText;
IWURL1: TIWURL;
private
public
end;
implementation
{$R *.dfm}
uses
UserSessionUnit;
initialization
TIWForm61.SetAsMainForm;
end.
yes, there is no code other than code created by IntraWeb application wizard itself when a new project is created.
Absolutely ZERO lines of code!
Enjoy