Page 1 of 1

data-input via TI Java-Extensions

Posted: Fri May 20, 2016 9:03 am
by saltRR
This is my first topic here, and I hope it fits the requirements.

I tried to programm an input possebility with the Java-extensions, getting a possebility to make Ti-processes more interactive.
I tried it with a simple reader and .readline approach.
And I also tried to create a pop-up window with the class JOptionPane.

Both resulted that the TI-Process is getting stuck and i have to restart the TM1-server.
I also tried to wrap it into an
  • try{}catch(){}
, if it is just throwing an exception i dont see.

But because there is no error message and it is just stuck, I don't know what the problem is.

It feels like the window should be shown and it is waiting for me to do the input, but i shows nothing where i could do the input.

Is there a reason TM1 is blocking any windows to pop up or is there an option or workaround for it?

Re: data-input via TI Java-Extensions

Posted: Fri May 20, 2016 9:30 am
by David Usherwood
I don't think this is going to work. TI runs on the server - how will it make a connection to the user who runs it?

Re: data-input via TI Java-Extensions

Posted: Fri May 20, 2016 11:03 am
by tomok
David Usherwood wrote:I don't think this is going to work. TI runs on the server - how will it make a connection to the user who runs it?
Whatever pop-up you might have would be on the server, not the client. Also, since TM1 is likely running as a service there would be no desktop interaction anyway.

Re: data-input via TI Java-Extensions

Posted: Mon May 23, 2016 8:27 pm
by jwilkins
It would be helpful to say exactly what you're trying to accomplish. There may be another tool besides Java extensions that could help you achieve your goal.