How to deep link in ngclient ? .

Forum to discuss the new web client version of Servoy.

How to deep link in ngclient ? .

Postby ashutoslenka426 » Wed Dec 16, 2015 10:06 am

hi All,

Is it possible to deep link in ngclient ? .How can we deep link in ngclient ?.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: How to deep link in ngclient ? .

Postby Ruben79 » Sun Jan 10, 2016 1:01 am

+1

There seems to be no way of getting the query parameters from the url like it is in regular webclient. Or is there?
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Re: How to deep link in ngclient ? .

Postby emera » Mon Jan 11, 2016 2:18 pm

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
emera
 
Posts: 44
Joined: Tue Jun 17, 2014 8:33 am

Re: How to deep link in ngclient ? .

Postby Ruben79 » Mon Jan 11, 2016 5:24 pm

I would think so, but none of those get available as arguments in the onSolutionOpen unfortunately.
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Re: How to deep link in ngclient ? .

Postby emera » Tue Jan 12, 2016 11:13 am

Ruben79 wrote: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.
emera
 
Posts: 44
Joined: Tue Jun 17, 2014 8:33 am

Re: How to deep link in ngclient ? .

Postby Ruben79 » Tue Jan 12, 2016 4:55 pm

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?
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Re: How to deep link in ngclient ? .

Postby emera » Tue Jan 12, 2016 5:44 pm

You just need to open an url of this form in a new tab localhost:8080/solutions/{solutionName}/index.html?m={methodname}&argument={firstArgValue}&param2={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.
emera
 
Posts: 44
Joined: Tue Jun 17, 2014 8:33 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 5 guests