Administrator
Last active 3 years ago
The body parameter of that event contains a Data
object containing the UTF8 representation of the JSON string. You can't decode it to the String
or Map
representation of the JSON value because of a bug, we will fix it in the next release and we will improve the documentation.
Thank you for reporting the issue, it will be fixed in the next version.
@taiheta
the border property of each view defines the size of the border in each side of the view, but you could achieve your desired appearance by adding a RectShape with appropriate border mask or a LineShape inside your custom view
@taiheta,com.creolabs.creo://oauth2Callback
is correct but in your screenshot there is an invalid URL with the https:// schema: https://com.creolabs.creo://oauth2Callback.
URLs with the https schema work with web apps, for iOS apps you need to use callback URLs with a custom schema that open your app.
Hi @Joel_Eisenstat , this is a bug, it will be fixed in the next release of Creo.
Thank you for reporting.
Or you can programmatically re-build your path from the queryParameters Map, for example, with the following code:
request.queryParameters = ["page": 1] // create the new path string from queryParameters var path : String = "?" for (var key in request.queryParameters.keys()) { var value = request.queryParameters[key] // add "key=value&" to the path string for each query parameter path += key + "=" + value + "&" } // remove the last "&" path = path[0...-2] // update the request path request.path = path
Hi @ingurgite,
if you programmatically create an HTTPRequest (or if you programmatically set a custom value for the path property) the queryParameters property is ignored. You should instead set the complete path in the initializer method or in the path property, for example:
var url : String = "https://yourdomain.com/basepath?page=0" var request = HTTPRequest(url) request.responseSerializerType = HTTPResponseSerializer.JSON request.send()
Hi @ingurgite,
the `Journal.open()` invocation tries to open the Journal in the active container, the default window in this case. The default window should open the Journal window as a modal window but it fails if executed in the WillShow
event because a window that is not already added to the window's hierarchy cannot open a modal window.
A safer way to change the default window could be to use the loadContainer()
method of the Application object, for example with the following code:
var screen = "journal" if (screen == "journal") { console.log("HERE: opening journal") App.loadContainer(Journal) }
This command replaces the root window (default window) with the Journal window.
@ingurgite,
the Tap gesture can not be recognized if an internal gesture recognizer of the native TextView control is recognized before (for example, the tap gesture that put the TextView in the editing state).
To change this behavior, you can add the code `return true;` in the `ShouldRecognizeSimultaneously(otherGesture: UIGestureRecognizer)` event of your TapGesture; in this way, your gesture can be recognized simultaneously with other gesture recognizers.
Hi @ingurgite,
the `requireToFail` is not working correctly in our simulator if used for more than one gesture recognized, this bug will be fixed in the next release. It should work fine on a real iOS device.
There could be a delay for the action to be invoked depending on the gesture recognizer added as `requireToFail` because the first gesture recognizer must wait for the other gesture to fail before changing to the recognized state.