# # ITSV GmbH # CCDB - Command and Control Database # # FILE: dquermfile_queryinfo.txt # DESCRIPTION: DQUERY definition for CCDB DQUERY "queryinfo" # @querytitle Informationen zu einer Abfrage @querydescription @group QUERIES @paramnames queryname:queryname @formpagetitle Informationen zu einer Abfrage @formitems.paramformextension
@querytype dbselect @sql select qr.RWNAME as "ID", qr.RWVALUE as "AbfrageName", qr.RWDESC as "Beschreibung", qa.RWNAME as "Eigenschaft", (CASE WHEN qa.RWVALUE is null THEN '' ELSE qa.RWVALUE END) as "Wert", CONCAT( '{"action": "',(CASE WHEN qa.RWVALUE is null THEN '' ELSE 'DELETE' END), '", "attribute": "',qa.RWNAME,'", "key": "',qr.RWNAME,'"}') as "DeleteAction" from CCRW qr left outer join CCRW qa on qa.RWTYP='DQUERYPARAM' and qa.RWPARENT=qr.RWNAME where qr.RWTYP='DQUERY' and qr.RWPARENT='QUERIES' and qr.RWNAME=::queryname:: @title Abfrage-Informationen über {{queryname}} @post_query if (that.result.getRowCount()<1) { that.result.setResultAttribute('queryid','Fehler:'); that.result.setResultAttribute('querytitle', 'keine Informationen zu Abfrage "'+that.result.getResultAttribute('queryname')+'"'); } else { that.result.setResultAttribute("title","Abfrage-Informationen zu "+that.result.getCellValue(0,0)+" - "+that.result.getCellValue(0,1)); that.desc = that.result.getCellValue(0,2); if (that.desc) { that.result.setResultAttribute("toptext","Beschreibung: