How can I pass a dataset as argument to a global procedure ?

Hello Servoy users ?

I would like to pass a dataset as arguments[0] to a global procedure ?

I think I mis something because it’s not working ??

I try :

arguments[0] = databaseManager.getDataSetByQuery(serverName, query, null, -1);

or 

var ds = databaseManager.getDataSetByQuery(serverName, query, null, -1);
arguments[0] = ds;

but on the global procedure

/********************************************************************************

object:		globals.scCore_getDatasetAsHTMLColumns();

reference:	http://www.servoycode.com/forum/index.php/board,55.0.html

credit: 	Scott Butler, http://www.dnacenter.com

parameters:	[0] dataset required

returns:	Returns HTML from a dataset with datasetColumnNames as first Column,
			and an additional column for each row.  Basically, a pivot of 
			getDatasetAsHTML.

********************************************************************************/

var dataset = arguments[0];

I don’t receive the dataset :?:

Thanks for your help.

DomTom

I don’t understand what it is you are doing but this is it:

call method:
globals.methodName(datasetToThrowIn)

in method
var datasetThrownIn = arguments[0];

Thank you Marcel.

:)