Member
Last active 3 years ago
Hi @andrea, but that means that I cannot easily change page from 0 to 1 as it was the case with the queryParameters array. I would have (as I am doing right now which is quite annoying) to use a RegEx to detect and replace in the URL. Right?
Hi,
I am trying to create an HTTPRequest programmatically (without the IDE's help) that takes a query parameter (page = 0...N) to manage pagination. Unfortunately, I can't figure out how to do it. Below is my code>
var request = HTTPRequest(url) request.method = HTTPMethod.Get request.queryParameters = ["page": "0"] request.responseSerializerType = HTTPResponseSerializer.JSON request.send()
The request works but no parameter is passed. I tried adding "?page=0" in the URL. It works but then I cannot manipulate the query parameters through a map. Is it a bug or am I doing something wrong?
Thanks.
Hi, coming back to you on this. An answer would be appreciated. Thanks.
Coming back to you @andrea, it works on a real device, but not in the simulator. In the simulator, it does not select the text either. Is that normal?
Hi @marco, this code is executed when the app launches, through the WillShow() event.
What I want is to replace the current (default) window with a new one before it is displayed.
Currently with the code I showed above, nothing happens. The window is never opened. If I put the code in DidShow() callback, it works however.
Is there a reason?
Hi @marco,
The SQL schema is not really relevant. All I want is, based on a value, to load a window instead of the default one. I cannot manage to do this. So far, what I have tried is to put the following code in the WillShow() event callback of the default window:
var screen = "journal" if (screen == "journal") { console.log("HERE: opening journal") Journal.open() }
Unfortunately, nothing happens.
Thanks.
Thanks @andrea. I had tried that but it seems I had made a mistake.
Thanks a lot.
Hi,
I would like to programmatically change the image of a button when it is pressed. For an image, I can change its value through var.image = image.
For a button, it seems that there is a notion of state. I've tried all the types of states and could not succeed. Also, it seems that there is no method to retrieve the current state of a button?
Thanks.