 				if (format == DATASTORE_FORMAT)
 				{
 					var datastore:CSVDataSource = new CSVDataSource();
+					datastore.url.value = getFullURL('datastore/dump/' + params[PARAMS_CKAN_ID]);
 					var node:CKANAction = new CKANAction(this);
 					node.action = CKANAction.DATASTORE_SEARCH;
-					node.params = {"resource_id": params[PARAMS_CKAN_ID]};
+					node.params = {"resource_id": params[PARAMS_CKAN_ID], "limit": 1};
 					node.resultHandler = function(result:Object):void {
 						datastore.metadata.setSessionState(
 							result['fields'].map(function(field:Object, i:*, a:*):Object {

		public static const PARAMS_CKAN_FORMAT:String = 'ckan_format';
		public static const PARAMS_CKAN_FIELD:String = 'ckan_field';
		public static const DATASTORE_FORMAT:String = 'ckan_datastore';
		
		/**
		 * @private

								return meta;
							})
						);
					};
					node.result; // will cause resultHandler to be called later
					dataSource = datastore;
