Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » TablePage - programaticaly show or hide DetailForm
TablePage - programaticaly show or hide DetailForm [message #1744306] Sat, 24 September 2016 16:35 Go to next message
René  Eigenheer is currently offline René EigenheerFriend
Messages: 103
Registered: July 2009
Senior Member
I try to define a TablePage with an SearchForm and a DetailForm.

The behaviour I would like to achieve is:
a) when selecting the Page in the Outline, the SearchForm opens
b) using the Search button, the Table is filled with the filtered rows
-> so far no problem

c) when double clicking on a row or using "Navigation-Up" button, the Detail form is displayed (within the same window as the table was shown)

I tried several things, but I do not find a solution which works more than one time with the double click (detail) event.

actually I try
@Override
protected boolean getConfiguredDetailFormVisible() {
return false; // is set to true, DetailForm would be shown on page activation
}

@Override
protected void execRowAction(ITableRow row) {
setDetailFormVisible(true); // works on only first double click
}
using this approach the double click / detail works only once, and the navigation up button changes it's behaviour on the table: before the first double click before it navigates to the Outline, after the first double click it navigates to the Detail Form.

Is the any model method I can use, to actively define, whether I want to show the table rows or the detail form?

-Rene
Re: TablePage - programaticaly show or hide DetailForm [message #1744308 is a reply to message #1744306] Sat, 24 September 2016 16:55 Go to previous message
René  Eigenheer is currently offline René EigenheerFriend
Messages: 103
Registered: July 2009
Senior Member
additional question: is there any model event triggered when pressing the navigation up and down buttons or is this totally handled in java script?
Previous Topic:run scout with eclipse che
Next Topic:Empty row in smartfield
Goto Forum:
  


Current Time: Sat Dec 16 05:37:43 GMT 2017

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

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