How to parse deep link submits

How can the data contained in the following link be parsed with a Servoy 6.x method? The first name/value pair is not problem. The remaining name/value pairs appear to come through as an object. We need help with the required syntax to parse out those values.

http://ipaddress/servoy-webclient/ss?s=submits&method=parseSubmits&argument=test&name=John Doe&email=jdoe@xo.com&comments=please help

Dean

the arguments array contains in the first element the value of the ‘argument’ parameter, and in the second element, the name-value pairing for all arguments
so, for your sample:

arguments[0]: ‘test’
arguments[1][‘argument’] = ‘test’
arguments[1][‘name’] = ‘John Doe’
arguments[1][‘email’] = ‘jdoe at xo.com
arguments[1][‘comments’] = ‘please help’

Thank you very much. The following now works every time!

function parseSubmits() {
	forms.leads_data.controller.newRecord();
	forms.leads_data.name     = arguments[0];
	forms.leads_data.name     = arguments[1]['argument'];
	forms.leads_data.name     = arguments[1]['name'];	
	forms.leads_data.email    =	arguments[1]['email'];
	forms.leads_data.comments =	arguments[1]['comments'];
}

I was surprised that leaving out the first two “forms.leads_data.name” lines breaks it.

Dean

nice it works,
but the first two lines should not be needed!
can you specify how it breaks without those ?

I just tested it again. Leaving out the first two “forms.leads_data.name” lines no longer breaks it. It works as long as the table starts out containing at least one record. If the table contains no records, then it creates a new record, but the parsing fails. This is not a problem for us. So we are all set. Thank you.

Dean