TablePage - programaticaly show or hide DetailForm [message #1744306] |
Sat, 24 September 2016 16:35 |
Rene Eigenheer Messages: 109 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03423 seconds