Bonjour,

je cherche en vain une solution pour rafraichir toutes les LOV de tout les univers et permettre un rafraichissement de celle-ci pendant la nuit.
le squelette du code est comme ceci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 public class BORefreshLOVUniverse {
 
	public static void main(String[] args) throws Exception {
		String cms = "bo:6400";
		String user = "xxxx";
		String password = "xxxxx";
		String auth = "secEnterprise";
		ISessionMgr sm = null;
		IEnterpriseSession enterpriseSession = null;
		sm = CrystalEnterprise.getSessionMgr();
		enterpriseSession = sm.logon(user, password, cms, auth);
		IInfoStore infostore = (IInfoStore) enterpriseSession.getService("InfoStore");
 
 
 
		IInfoObjects universes = infostore.query("SELECT top 10000 * "
				+ "FROM CI_APPOBJECTS  WHERE SI_KIND='Universe'");
		System.out.println("Total rapport: " +universes.size());
		for (int i = 0; i < universes.size(); i++) {
			IInfoObject infoObject = (IInfoObject) universes.get(i);
			//Ici le code pour faire le refresh
 
		}
	}
Auriez-vous un idée?

Merci!