#
#		ITSV GmbH
#	CCDB - Command and Control Database
#
#	FILE:			dquermfile_VIEWMFILE.txt
#	DESCRIPTION:	DQUERY definition for CCDB DQUERY "VIEWMFILE"
#
@querytitle			Managed File anzeigen
@querydescription	Das Query VIEWMFILE zeigt ein Managed File entsprechend seiner Type an
@group				DATAFILE
@title				Inhalt des Managed Files {{mfileid}}
@decoration {
	decorate_colcell:	[ { rawhtml:	"<code>@@celldata@@</code>" },
						  { rawhtml:	"<code>@@celldata@@</code>" } ] }


#
# original implementation:
#
#	@querytype			jsexpr
#	@attributenames		mfileid:mfileid
#	@aexpression		mfile.process_mfile(that,that.session,that.query.mfileid,{read_mode: 'line_by_line'},that)
#
						  
~query.tsteps

#
# <<TSTEPNUM:0>>: read the file line by line into a dbresult
#
aexpression
	mfile.process_mfile(this,this.session,this.query.mfileid,{read_mode: 'line_by_line'},this)
result_varname	fres
post_qexpression
	this.result = this.fres;


