Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Form in Page possible?
Form in Page possible? [message #896006] Mon, 16 July 2012 20:47 Go to next message
Stefan Mutschler is currently offline Stefan Mutschler
Messages: 17
Registered: June 2012
Location: Baden-Baden, Germany
Junior Member
Hi all!

When working with the MiniCRM tutorial I was asking me if I can have a page containing a form?

Starting with a "Company Table Page" followed by a "Company Details Node Page" containing "Person Table Page" and when selecting a person here, can I open a child page with a "Person Form" to edit the person's data? Opening a form as a dialog window is easy...

I tried with an AbstractPage disabling the table and setting a detail form but wasn't successful. Is this the right direction to investigate or the completely wrong way?

Thanks in advance...

Stefan
Re: Form in Page possible? [message #896049 is a reply to message #896006] Tue, 17 July 2012 04:23 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 118
Registered: November 2010
Senior Member
Are you looking how to add a form in a view ?
See the screenshot on the form page

If I understood your question correctly, you have an Outline based application.
When the page is selected in the page tree in the main window, you want to open this form.

Is this instead of the TablePage or NodePage content (on the left) ? In this case, having a kind of AbstractPageWithForm is a good idea.
Or do you want to open a second form (like the search form at the bottom of the page content) ? In this case, you can use a "page with node" or "page with table" and use one of the event (exec****()) to display the additional Form as view.
Re: Form in Page possible? [message #896103 is a reply to message #896049] Tue, 17 July 2012 09:30 Go to previous messageGo to next message
Stefan Mutschler is currently offline Stefan Mutschler
Messages: 17
Registered: June 2012
Location: Baden-Baden, Germany
Junior Member
Hi Jeremie,

thanks for your answer. I'm working on a precise wording... Wink

Yes, it is an outline based application (the minicrm tuorial) and AbstractPageWithForm is the pattern I am looking for.

Any hint welcome...

Stefan
Re: Form in Page possible? [message #896971 is a reply to message #896103] Fri, 20 July 2012 15:23 Go to previous messageGo to next message
Andreas Hoegger is currently offline Andreas Hoegger
Messages: 174
Registered: February 2010
Senior Member
Try this:
PersonNodePage:
  @Override
  protected boolean getConfiguredTableVisible() {
    return false;
  }

  @Override
  protected void execPageActivated() throws ProcessingException {
    if (getDetailForm() == null) {
      PersonDetailForm form = new PersonDetailForm();
      form.setPersonNr(getPersonNr());
      setDetailForm(form);
      form.startView();
    }
  }

  @Override
  protected void execPageDeactivated() throws ProcessingException {
    if (getDetailForm() != null) {
      getDetailForm().doClose();
      setDetailForm(null);
    }
  }


This works for Eclipse 3.8 featured with Scout from the Indigo update site.

In order of BUG 385618 in E4 it does not work for Eclipse 4.X.

-andreas
Re: Form in Page possible? [message #897382 is a reply to message #896971] Mon, 23 July 2012 21:33 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 127
Registered: March 2010
Senior Member
Hi there

Since the wiki does not seem to contain any information on this topic I created the following page: http://wiki.eclipse.org/Scout/Concepts/Page_Detail_Form

Feel free to complement it.

Greets
Claudio
Re: Form in Page possible? [message #897530 is a reply to message #897382] Tue, 24 July 2012 12:32 Go to previous message
Stefan Mutschler is currently offline Stefan Mutschler
Messages: 17
Registered: June 2012
Location: Baden-Baden, Germany
Junior Member
Hi!

Thank you both for answering. Got it working easily with this information. Especially thanks to Claudio for the clearifying background information in the wiki.

Stefan
Previous Topic:Deploy a standalone application on a pc
Next Topic:Scout Web App + CSS
Goto Forum:
  


Current Time: Sat Oct 25 07:48:25 GMT 2014

Powered by FUDForum. Page generated in 0.08841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software