![]() | Products |
| Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
| Messages 1 to 3 of 3 total |
| Thu, Nov 10 2016 2:08 AM | Permanent Link |
Richard Mace | Hi,
I am using EDB with EWB and I have a main form and a database form that was created by EWB. On my database form I have dataset. I understand that EWB and JavaScript are async and that I need to write code in the AfterLoad event of the dataset. My question is, how do I code an event so that my main form is notified when the dataset has loaded? Thanks Richard |
| Thu, Nov 10 2016 6:34 AM | Permanent Link |
Walter Matte Tactical Business Corporation | Richard:
I call back to Main form, In Main Form public procedure CallBackFromChild(Sender : TObject); TfrmMain.CallBackFromChild(Sender : TObject); begin ShowMessage('I am called by child form - Dataset Loaded!!'); end; TfrmMain.ButtonClick(Sender : TObject); begin // Tell Child Form where to Callback frmChild.MainCallBack := CallBackFromChild; frmChild.ShowModal; end; // -- CHILD FORM -- // private { Private declarations } FMainCallBack : TNotifyEvent; public { Public declarations } property MainCallBack : TNotifyEvent read FMainCallBack write FMainCallBack; end; // Somewhere in Child do: If assigned(FMainCallBack) then FMainCallBack(Sender); Walter |
| Thu, Nov 10 2016 3:29 PM | Permanent Link |
Richard Mace | Walter Matte wrote:
<< Richard: <<I call back to Main form, Thanks Walter, that looks like it works. Richard |
This web page was last updated on Monday, November 9, 2026 at 05:14 AM | Privacy Policy © 2026 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

