Deep linking question 2

Hi

Further to the earlier post on deep linking there appears to be a bug in the deep linking of webclient, specifically the facility to pass arguments.

The following string should as far as I can see call a method and pass arguments to that method

http://localhost:8080/servoy-webclient/ … ment/1234/

This link correctly starts the solution “testsolution”, however the method startup is not called. IF you place a button on the screen and call the method manually it also works correctly.

I am using Servoy 4.1.2, the solution has not other functionality other than this simple test and the expected result should write the arguments into a form variable.

…any ideas I would be very interested to hear as I have an urgent need for this feature to work !!

Cheers
Gordon

do you use, login required?
the method and arguments are only fired after you have succesfully logged in!.
otherwise, did you test it in a real smart client? (not the Eclipse client)

Hi Harjo

It works in the smart client without issue, it also works manually ie by clicking a button on the screen. I have also tried calling the offending script from within the web client and passing the arguments there which again works, it simply seems to be the URL pass that fails. I have attached a sample solution which thus far has failed and I sincerely hope does not contain and obvious error as I have spent a long time looking at it !!

Cheers
Gordon

testsolution.servoy (4.94 KB)

Hi Gordon,

The startup method should be a global method, not a form method.

Laurian

lvostinar:
Hi Gordon,

The startup method should be a global method, not a form method.

Laurian

Hi

Thanks for the reply, Paul Bakker provided the same response earlier which on reflection should have been obvious. The servoy manual does not this clear and implies that you can call any script:

servoy developer manual:
To launch Servoy Web Client by deeplinking to run a script in a solution:
! Open a web browser.
! Specify the solution to load and the script (method) to run in the browser address box.

Example:
To start the Servoy Sample CRM and execute the method showOrder (with arguments) from
a local computer, enter:

http://localhost:8080/servoy-webclient/ … ment/10444

Perhaps the first line could have global added :

To launch Servoy Web Client by deeplinking to run a global script in a solution: