Hello Nicola
I also tried in my experiments what you suggest and the form is (or at least seems to be) going into find mode. I also attached to the same main form the onSearchCmd method which basically contains the line
forms[current_form].controller.search()
But the onSearchCmd method is NOT triggered on pressing return in a field or pressing F3. I am not able to trigger the onSearchCmd method. Is your onSearchCmd triggered?
The onFindCmd on the same form works, though. Very strange.
Thanks and regards, Robert
PS: The main form contains tabless panels, and they get loaded like shown in the code excerpt below:
…
var menuId = forms.DomMenu.getSelectedMenuId();
initializeJSplitPane();
elements.tabSelection.removeAllTabs();
elements.tabDetail.removeAllTabs();
switch(menuId)
{
case 101:
elements.tabSelection.addTab(forms.StnStations, null, null, null, null,‘#000000’,‘#BBCCEE’);
elements.tabDetail.addTab(forms.StnStationAndMasterData, null, null, null, null,‘#000000’,‘#BBCCEE’);
break;
case 102:
elements.tabSelection.addTab(forms.StnStations, null, null, null, null,‘#000000’,‘#BBCCEE’);
elements.tabDetail.addTab(forms.StnStationAndProperties, null, null, null, null,‘#000000’,‘#BBCCEE’);
break;
case 103:
elements.tabSelection.addTab(forms.StnStations, null, null, null, null,‘#000000’,‘#BBCCEE’);
elements.tabDetail.addTab(forms.StnStationAndTimetable, null, null, null, null,‘#000000’,‘#BBCCEE’);
break;
…
ngervasi:
I’m not sure to understand exactly what you mean but I think that this could get you on the right track:
var current_form = elements.tab_main.getTabFormNameAt(elements.tab_main.tabIndex)
forms[current_form].controller.find()