Hi Bruno,
Just saw exciting updates on 1.7. One of new features: TJSPromise functions is very interesting. I tested using load() function to create a pop-up form and it works perfectly. Now I got a question, what should we do if we would like to create form using TJSPromise function that is hosted on say a panel? Here simply copy/paste your sample code to show a new form modally:
I guess we should somewhere set form container for the form (newform.FormContainer := WebPanel1.ElementID;), right? here I tried however it did not work properly. Any tip/suggestion would be great, thanks!
newform := TForm2.Create(Self);
newform.Caption := 'Child form';
// load file HTML template + controls
await(TForm2, newform.Load());
// init control after loading
newform.frm2Edit.Text := WebEdit1.Text;