I'm trying to get familiar with the java api but I got some starting problems. Here is the code I wrote:
Code: Select all
...
final String TM1SERVERNAME = "DevSystem";
TM1Bean bean = new TM1Bean();
bean.setAdminHost(".....");
System.out.println("Nr. of Servers: " + bean.getNumberOfServers());
TM1Server server = bean.openConnection(TM1SERVERNAME, "myusername", "mypassword");
System.out.println("Clientname: " + server.getClientName());
TM1Dimension tm1d = server.getDimension("Kat4");
System.out.println("number of El: " + tm1d.getElementCount());
TM1Dimension tm1d2 = server.getDimension(5);
System.out.println("number of El:" + tm1d2.getElementCount());
bean.closeConnection(server);
Output of the printlns is:
Code: Select all
Nr. of Servers: 2
Clientname: com.applix.tm1.TM1Val@1a93a0d8
number of El: com.applix.tm1.TM1Val@5224d289
number of El: com.applix.tm1.TM1Val@6f7a4a80
But when I'm trying to access the objects and use the methods I'm getting the output u see above. "com.applix.tm1...."
What did I forget to do? Any ideas?