hi All,
Is it possible to deep link in ngclient ? .How can we deep link in ngclient ?.
hi All,
Is it possible to deep link in ngclient ? .How can we deep link in ngclient ?.
+1
There seems to be no way of getting the query parameters from the url like it is in regular webclient. Or is there?
Hi,
Deep linking is possible in the NGClient, you just have to use query parameters instead of path, like:
localhost:8080/solutions/solutionName/index.html?m=methodname&a=1&b=2
I would think so, but none of those get available as arguments in the onSolutionOpen unfortunately.
Ruben79:
I would think so, but none of those get available as arguments in the onSolutionOpen unfortunately.
We have indeed an issue if login is needed, only the value of first argument can be obtained in onSolutionOpen. I created a case for that https://support.servoy.com/browse/SVY-9338
But the arguments are available in onSolutionOpen if login is not required.
Yes, indeed I was using a login solution where it didn’t work, so thanks for creating the ticket
Also, do you have an advice how this can be debugged in developer? For example appending query parameters in the url so it always starts with a certain parameter? Like the firstForm currently does?
You just need to open an url of this form in a new tab localhost:8080/solutions/{solutionName}/index.html?m={methodname}&argument={firstArgValue}¶m2={param2Value}
For instance if you have an onSolutionOpen method in your global scope of yourSolution your url would be http://localhost:8080/solutions/yourSol … ment=1&b=2
I hope it helps.
I can’t get this to work
I have a solution wich loads the form home when started (firstForm), but I wan’t to access another form directly with a link.
So i made a function in scopes:
function deeplink() {
application.showForm("super_user")
}
but when I open the link
http://localhost:8183/solution/PQI/index.html?m=deeplink
it redirects me to the home form
Any ideas on what I am doing wrong?
Cheers,
Alexander
Hi,
Since 2024.3 you need the @deeplink annotation for the deeplink function.
https://docs.servoy.com/release-notes/r … 3#breaking