@fluxhub/fluxhub-lib 1.0.336 → 1.0.337

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7325,11 +7325,14 @@
7325
7325
  var cmds = [];
7326
7326
  /** @type {?} */
7327
7327
  var str_fields = "";
7328
- for (var i = 0; i < this.columnDefs.length; i++) {
7329
- if (str_fields != '')
7330
- str_fields += ',';
7331
- str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7332
- }
7328
+ for (var i = 0; i < this.columnDefs.length; i++)
7329
+ if (this.columnDefs[i] != null)
7330
+ if (this.columnDefs[i].field != null)
7331
+ if (this.columnDefs[i].headerName != null) {
7332
+ if (str_fields != '')
7333
+ str_fields += ',';
7334
+ str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7335
+ }
7333
7336
  cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7334
7337
  cmds.push(this.officeService.operation("EXCEL_CREA_TABELLA_FROM_DB_EXP_GRID_NEW", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "", this.xxopx++));
7335
7338
  cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));