Finestre dei report della tabella datiCiao a tutti,
Qualcuno potrebbe mostrarmi la strada con JSL per ottenere tutti i rapporti aperti su una tabella di dati? Quello che sto cercando di fare è essere in grado di fare clic su un pulsante di script e ridurre a icona tutti i rapporti aperti per una tabella di dati selezionata.
Grazie per qualsiasi idea!
Steve
Automazione e scriptingPersonalizzazione di massaRi: Finestra dei report della tabella dei datiFunziona perfettamente, grazie!
Ri: Finestra dei report della tabella dei datiNon sono a conoscenza di un modo diretto per farlo, ma lo script seguente sembra funzionare
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
)
);