/* ATTENTION: this only works in sheet-js PRO edition, other work needs to be done with other XLSX-javascript libraries! */

let cr, cv;

for (let i=0; i<result.getRowCount(); i++) {

  cr = result.rows[i];

  if (cr[0]=="DQUERY") { /* Query header records in CCRW shall have green background in Excel */ 

    for (let j=0; j<cr.length; j++) {

      cv = result.getCellValue(i,j);

      cr[j] = {t: 's',

               v: cv,

               r: "<t>"+cv+"</t>",

               h: cv,

               z: "General",

               w: cv, 

               s: { patternType: "solid", 

                           fgColor: { theme: 6, tint: 0.5999938962981048, rgb: "D7E4BD" }, 

                           bgColor: { indexed: 64 } }

              };

      logger.debug("dumptabxls.CCRW.DQUERY_AT="+i+"/"+j+": "+aux.objTxt(cr[j]));

    }

  }

}