# method arguments

**URL:** https://forum.servoy.com/t/method-arguments/8889
**Category:** Classic Servoy
**Created:** [March 19, 2008, 10:09pm UTC](https://forum.servoy.com/t/method-arguments/8889 "2008-03-19T22:09:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![lesouef](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@lesouef](https://forum.servoy.com/u/lesouef)
#### Post date: [March 19, 2008, 10:09pm UTC](https://forum.servoy.com/t/method-arguments/8889/1 "2008-03-19T22:09:17Z")

</div>

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](http://localhost:8080/servoy-client/servoy_client/servoy_sample_crm.jnlp?method=showOrder&argument=10444&rnd=12302)  
but does not say how to get ‘rnd=12302’, the last member of the URL?

---

<div class="post-metadata">

### Author: ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)
#### Post date: [March 20, 2008, 7:00am UTC](https://forum.servoy.com/t/method-arguments/8889/2 "2008-03-20T07:00:52Z")

</div>

That link does not work, it is from a local host ![:)]( "Smile")  
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…

---

<div class="post-metadata">

### Author: ![lesouef](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@lesouef](https://forum.servoy.com/u/lesouef)
#### Post date: [March 20, 2008, 7:40am UTC](https://forum.servoy.com/t/method-arguments/8889/3 "2008-03-20T07:40:01Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)
#### Post date: [March 20, 2008, 7:47am UTC](https://forum.servoy.com/t/method-arguments/8889/4 "2008-03-20T07:47:26Z")

</div>

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

Maybe somebody else can help you…

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [March 20, 2008, 10:52am UTC](https://forum.servoy.com/t/method-arguments/8889/5 "2008-03-20T10:52:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)
#### Post date: [March 21, 2008, 2:13pm UTC](https://forum.servoy.com/t/method-arguments/8889/6 "2008-03-21T14:13:35Z")

</div>

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](http://localhost:8080/servoy-client/servoy_client/servoy_sample_crm.jnlp?method=showOrder&arguments=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](http://localhost:8080/servoy-client/servoy_client/servoy_sample_crm.jnlp?method=showOrder&arguments=10444|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

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [March 21, 2008, 2:15pm UTC](https://forum.servoy.com/t/method-arguments/8889/7 "2008-03-21T14:15:16Z")

</div>

> 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](http://localhost:8080/servoy-client/servoy_client/servoy_sample_crm.jnlp?method=showOrder&arguments=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](http://localhost:8080/servoy-client/servoy_client/servoy_sample_crm.jnlp?method=showOrder&arguments=10444|abds|def)
> 
> and then split the arguments[0] by splitting at ‘|’

Correct

---

<div class="post-metadata">

### Author: ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)
#### Post date: [March 21, 2008, 2:18pm UTC](https://forum.servoy.com/t/method-arguments/8889/8 "2008-03-21T14:18:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)
#### Post date: [March 21, 2008, 2:20pm UTC](https://forum.servoy.com/t/method-arguments/8889/9 "2008-03-21T14:20:37Z")

</div>

yes

---

<div class="post-metadata">

### Author: ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)
#### Post date: [March 21, 2008, 2:31pm UTC](https://forum.servoy.com/t/method-arguments/8889/10 "2008-03-21T14:31:29Z")

</div>

OK, I have got it

for webclient it is

[http://localhost:8080/servoy-webclient/ … orargument](http://localhost:8080/servoy-webclient/solutions/solution/solutionname/method/methodname/argument/dataforargument)

that does it!
