25-10-2013 11:55 AM - edited 25-10-2013 11:59 AM
I would like to extract the value of the property "Identifiant WIndows" (french) of the metaclass "Utilisateur".
with vbs Code, it's possible with oUser.GetProp("Identifiant windows") if oUser is an instance of oMegaRoot.GetCollection("Utilisateur").
with JAVA, I cannot get the value with :
fist code :
app = new MegaApplication();
env = app.getEnvironments().get("myEnvironnement");
I use
env.setCurrentAdministrator("myAdmin");
env.setCurrentPassword("myPass");
env.users().get(i).getProp("Identifiant Windows");
result : "" or nothing ?
or second code :
app = new MegaApplication();
env = app.getEnvironments().get("myEnvironnement");
env.setCurrentAdministrator("myAdmin");
env.setCurrentPassword("myPass");
base = env.databases().get("myRepo");
root = base.open();
root.getCollection("Users").get(32).getProp("Identifiant Windows")
return "" too.
Enjoy your help
Solved! Go to Solution.
14-11-2013 09:48 AM - edited 14-11-2013 09:49 AM
oRoot = env.databases().get("nomdebase").open();
cUser = oRoot.getCollection("Utilisateurs");
for...{
cUser.get(i).getProp("Identifiant Windows");
}
CUser= null;
oRoot.close();
oRoot = null;