method arguments

when launching the client with script execution and arguments, how to recuperate the 2nd argument in the method?
the doc show this:
http://localhost:8080/servoy-client/ser … &rnd=12302
but does not say how to get ‘rnd=12302’, the last member of the URL?

That link does not work, it is from a local host :)
So I do not know the content but normally fetching arguments is the same as reading out an array.
arguments[0] = first, arguments[1] = second etc…

Hope this is what you were looking for, otherwise please paste (part of) the text…

it was just a syntax example, but it is supposed to work with the crm example if your port is also 8080.
the method does not exist in the crm solution, so there is no way to guess how they got the 2nd argument.
I agree it should argument[n], but obviously it’s not, only [0] seems to be passed to the method.
I also checked to form crm 2.2 example, same…

hmm, ok. I don’t have the crm installed right now so I have to pass.

Maybe somebody else can help you…

You can only deeplink with 1 argument. If you want to send in multiple arguments, you have to concatenate them together into 1 string

Paul

so are you saying that argument[0] is the only string you can bring in from a URL?

http://localhost:8080/servoy-client/ser … ents=10444

and if you want to bring in two variables you would have to use a deliminator and then cut up the string, so something like

http://localhost:8080/servoy-client/ser … 4|abds|def

and then split the arguments[0] by splitting at ‘|’

or is there a way to bring in multiple arguments from one URL?

david

so are you saying that argument[0] is the only string you can bring in from a URL?

http://localhost:8080/servoy-client/ser … ents=10444

and if you want to bring in two variables you would have to use a deliminator and then cut up the string, so something like

http://localhost:8080/servoy-client/ser … 4|abds|def

and then split the arguments[0] by splitting at ‘|’

Correct

wow quick response!

i assume this works for webclient as well?

is it one variable or does it always have to be called arguments=blablabla

and then captured as arguments[0] like calling a method from another?

Thanks

yes

OK, I have got it

for webclient it is

http://localhost:8080/servoy-webclient/ … orargument

that does it!