Fenster mit DatentabellenberichtenHallo alle miteinander,
Könnte mir jemand zeigen, wie ich mit JSL alle geöffneten Berichte für eine Datentabelle erhalten kann? Was ich versuche, ist in der Lage zu sein, auf eine Skriptschaltfläche zu klicken und alle Berichte zu minimieren, die für eine ausgewählte Datentabelle geöffnet sind.
Vielen Dank für alle Ideen!
Steve
Automatisierung und SkripterstellungMassenanpassungBetreff: Fenster mit DatentabellenberichtenFunktioniert perfekt, danke!
Betreff: Fenster mit DatentabellenberichtenMir ist kein direkter Weg bekannt, dies zu tun, aber das folgende Skript scheint zu funktionieren
Names Default To Here( 1 );
dt = Current Data Table();
windowNumbersToMinList = {};
theName = Current Data Table() << get name;
// Loop across all windows and find report windos attached to data table name
// Definition of a report window, is one that starts with the data table name and
// is followed by a "-"
i = 1;
While( Window( i ) << get window title != {},
theWName = Window( i ) << get window title;
If( Contains( theWName, theName ) == 1 & Substr( theWName, Length( theName ) + 2, 1 ) == "-",
Insert Into( windowNumbersToMinList, i )
);
i++;
);
// Loop across found windows and minimize them
If( N Items( windowNumbersToMinList ) > 0,
For( i = N Items( windowNumbersToMinList ), i >= 1, i--,
Window( windowNumbersToMinList[i] ) << minimize window
)
);