I have a form that has the following in it.
oeQuoteDSe: TWebClientDataSet;
oeQuoteCC: TWebClientConnection;
oeAgentCC: TWebClientConnection;
oeAgentDSe: TWebClientDataSet;
procedure oeQuoteCCBeforeConnect(Sender: TObject);
procedure oeAgentCCAfterConnect(Sender: TObject);
procedure oeAgentCCBeforeConnect(Sender: TObject);
procedure oeAgentCCDataReceived(Sender: TObject;
ARequest: TJSXMLHttpRequestRecord; var AResponse: string);
...along with other things, but when I do an oeQuoteCC.Active:=True; the BeforeConnect event for it will fire and process and the dataset tied to it will populate as expected. However when I call oeAgentCC.Active:=True; the BeforeConnect and AfterConnecton never fire, but the DataReceived event will fire and the AResponse has the expected data. Due to this the dataset tied to the onAgentCC never get's loaded and it was due to the dataset tied to it not getting loaded that prompted me to setup a AfterConnnect event to activate the dataset, but since it never fires, not sure what to do.
Can I not have more then one TWebClientConnection/dataset per form?