# Getting a variable passed trough URL

**URL:** https://forum.servoy.com/t/getting-a-variable-passed-trough-url/9892
**Category:** Classic Servoy
**Created:** [November 18, 2008, 10:45am UTC](https://forum.servoy.com/t/getting-a-variable-passed-trough-url/9892 "2008-11-18T10:45:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)
#### Post date: [November 18, 2008, 10:45am UTC](https://forum.servoy.com/t/getting-a-variable-passed-trough-url/9892/1 "2008-11-18T10:45:41Z")

</div>

Hello,  
In Webclient I am passing a variable trough URL to a test method, using:  
[http://localhost:8080/servoy-webclient/ … ment/10444](http://localhost:8080/servoy-webclient/solutions/solution/test/method/onLoad/argument/10444)

Method onLoad is on main form (only form) and it is very simple, it is for testing:

a = arguments[0]  
application.output(‘a=’+a)

And it outputs WebClient: a=undefined  
Do you have any idea of what am I doing wrong? I thank you in advance!

DB

---

<div class="post-metadata">

### Author: ![sanneke](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sanneke](https://forum.servoy.com/u/sanneke)
#### Post date: [November 18, 2008, 10:53am UTC](https://forum.servoy.com/t/getting-a-variable-passed-trough-url/9892/2 "2008-11-18T10:53:01Z")

</div>

Hello Diana,

In the url you can only use global methods.  
Could you try the same with a global method?

---

<div class="post-metadata">

### Author: ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)
#### Post date: [November 18, 2008, 10:57am UTC](https://forum.servoy.com/t/getting-a-variable-passed-trough-url/9892/3 "2008-11-18T10:57:50Z")

</div>

Hello Sanneke,  
It works if the method is global,thank you very much!

DB
