Page and form lifecycles [message #987260] |
Sun, 25 November 2012 09:53 |
|
Hello,
I have created a Scout project using the outline template and i added several pages.
Some of the pages are not following the paradigm of detailForm and searchForm. Instead of it i have created my own forms and adding them to the page as follows
protected void execPageActivated() throws ProcessingException {
itemForm = new RecomsItemTableForm();
itemForm.startModify();
drForm = new RecomsDoctorTableForm();
drForm.startModify();
hintForm = new RecomsHintTableForm();
hintForm.startModify();
Obviously this is very simplistic, because it does not maintain a life cycle for the forms, and subsequently when the user navigates from one page to other those forms remaining open and the interface cluttering.
I would really appreciate if someone could give me a hint about the lifecycle of page and if it is possible a best practice to show and hide the forms.
Best regards
|
|
|
|
Re: Page and form lifecycles [message #987337 is a reply to message #987270] |
Mon, 26 November 2012 08:36 |
|
Hello Bertin,
Thanks for your time, but the interface as it is, it fits perfectly for the user needs.
Ofcourse i could implement it with one form and plenty splitboxes, but then i would miss all of the RCP functionality.
So, i followed the howto Open a Form in a View and implemented exactly what the user needs. Unfortunatelly this howto deals only with RCP details for form placement. It does not deal with the reaction with different pages.
My main problem is that i dont know what are the events produced when a page is displayed and hiding and what is the subsequent proposed management for forms.
I tried to investigate the sources of AbstractPageWithTable and how is managing the m_detailForm and m_searchForm, but my knowledge for the event system of Scout is far by perfect.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06263 seconds