| How to create a page that contains a form instead of a table? [message #1001776] |
Thu, 17 January 2013 06:00  |
Urs Beeli Messages: 163 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
I wanted a page to show a form instead of a table. After failed attempts at trying this with an AbstractPage I reverted to using a AbstractPageWithTable and then added the following code to execPageActivated:
@Override
protected void execPageActivated() throws ProcessingException {
if (getCompanyNr() != null) {
form = new TabbedForm();
form.setCompanyNr(getCompanyNr());
form.setDisplayViewId(IForm.VIEW_ID_PAGE_TABLE);
form.setEnabledGranted(false);
setDetailForm(form);
form.startDisplay();
}
}
This works nicely in my Swing client, but causes problems in the SWT client (see Bug 398305).
Is this the recommended way of doing it? Or is there a better way to show a form instead of the table?
Another question is how I would show the table again on this page instead of the form?
[Updated on: Thu, 17 January 2013 06:01] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: How to create a page that contains a form instead of a table? [message #1041236 is a reply to message #1018621] |
Sun, 14 April 2013 17:08  |
Andreas Engler Messages: 10 Registered: January 2013 |
Junior Member |
|
|
Hello,
my problem discribed in the thread linked by jeremie, still remains.
I tried to use the nightly build, in hope that way to overcome the issue, but with no success.
Followed the download eclipse-java and add the nightly build way. Created a new project with new rap target. Imported my exisiting Projekt. Am i missing something?
The target definition provided by urs does not work for me, i get errors regarding filechooser as discribed in the linked thread.
Kind regards
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.02018 seconds