I need help to perform some tests. It turns out that in Eclipse I have two calls to REST services that return data of type String. What I intend to do is have a screen with a button and a TextArea, and at the moment click on the button, said TextArea is filled with the data it collects from the call.
Everything works perfectly in Eclipse, but I do not know how to take it inside CUBA Studio, can someone help me?
Thank you very much for the example, I am already investigating and seeing how it works. The thing is that I copied the code you have in the controller, and I paste it in my controller, inside CUBA, with the aim of seeing what it does, modifying and learning. However, when I click on apply, it tells me that the code has been saved, but when I close and open the controller again I see that the code has been completely deleted, it is not saved in CUBA Studio, you know what it is ?
I have already managed to see the code in both Eclipse and Cuba and change instantly. I have copied your code and changed to a Token class that I have created, where are the parameters “access_token” and other that the call returns. However, when I execute in CUBA I get an error and just in that class and in the package. “error: package x.xx.xxx.modelo does not exist”, and the other errors are of the Token class created by me. How can I import it? If it is assumed that in Eclipse everything works perfectly and I receive the necessary token.
Thank you very much, that was my fault, I had everything in the CORE module, and it turns out that it had to be put in the WEB module. Is there any difference between putting it in the WEB module or the GLOBAL module?