Hi ,please advice as i am still not very sure about
1. the event life cycle the TMS webcore form , as the event is not exactly the same as
the delphi form , which we usually expecting , onCreate and then onShow , but
in TMS Webcore form , as it is async in nature so it is a different ,
consider that if use ,
there is a main form and child form , which the child form is only <div> tag that will
get loaded into main form <div id="my-panel">,
FCurrentChildForm := AFormClass.createNew( aElementID , AOnAfterCreateProc )
the AOnAfterCreateProc and the actual form unit, if i also assign onCreate
at the form using the Object inspector , will the Form onCreate get fired ?
2. Is the application.createForm same as AFormClass.createNew ?
3. is there a way that i can assigned my own "AOnShowProc" to my form ?
i tried ,
FCurrentChildForm.Showmodal(AOnAfterShowModalProc);
it did not load my form into the main form, instead it display the child form's
content only. is this the correct response ?
4. how do i make sure that all my components which some of them will need to
request data from server separately and then update my form , to be able to
run completely , as i find that some times my form i.e. certain KPI counter
which i request count from server does not get updated ,
in shorts , i am having trouble to track as there are many different request
data send over to server and then got the reply after onCreate or onShow of
the form , do i have to do to each of the TwebClientDataset afterOpen event
to handle the form update for each of my form ?
i find that the MOST difficult part of developing TMS webcore apps for me a new
web development is the time spent to track this Async nature and update the
data into my template form. Perhaps there is something i did wrong in terms
of handling the life cycle of form onCreate/onShow ?
where Delphi ,we can initialize our parameter all either at onCreate or onShow .
Please advice , thanks for looking into some of my dump questions.