Getting a variable passed trough URL

Hello,
In Webclient I am passing a variable trough URL to a test method, using:
http://localhost:8080/servoy-webclient/ … ment/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

Hello Diana,

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

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

DB