@fluxhub/fluxhub-lib 19.0.163 → 19.0.165

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.
@@ -9781,59 +9781,32 @@ class FHGridComponent {
9781
9781
  ctrlV: this._trs.instant('ctrl & V'),
9782
9782
  },
9783
9783
  getRowId: (itemg) => {
9784
- if (itemg == null) {
9785
- console.warn('🆔 getRowId: itemg NULL - generando GUID!');
9784
+ if (itemg == null)
9786
9785
  return this.uti_s.newGuid();
9787
- }
9788
- if (itemg.data == null) {
9789
- console.warn('🆔 getRowId: data NULL - generando GUID!');
9786
+ if (itemg.data == null)
9790
9787
  return this.uti_s.newGuid();
9791
- }
9792
9788
  let item = itemg.data;
9793
9789
  let rowId;
9794
- let source;
9795
- if (item.customKeyField != null) {
9790
+ if (item.customKeyField != null)
9796
9791
  rowId = [item.customKeyField];
9797
- source = 'customKeyField';
9798
- }
9799
- else if (item.ID != null) {
9792
+ else if (item.ID != null)
9800
9793
  rowId = String(item.ID);
9801
- source = 'ID';
9802
- }
9803
- else if (item.id != null) {
9794
+ else if (item.id != null)
9804
9795
  rowId = String(item.id);
9805
- source = 'id';
9806
- }
9807
- else if (item.uiid != null) {
9796
+ else if (item.uiid != null)
9808
9797
  rowId = item.uiid;
9809
- source = 'uiid';
9810
- }
9811
- else if (item.codice != null) {
9798
+ else if (item.codice != null)
9812
9799
  rowId = item.codice;
9813
- source = 'codice';
9814
- }
9815
- else if (item.id_gruppo != null) {
9800
+ else if (item.id_gruppo != null)
9816
9801
  rowId = item.id_gruppo;
9817
- source = 'id_gruppo';
9818
- }
9819
- else if (item.id_doc != null) {
9802
+ else if (item.id_doc != null)
9820
9803
  rowId = item.id_doc;
9821
- source = 'id_doc';
9822
- }
9823
- else if (item.notesid != null) {
9804
+ else if (item.notesid != null)
9824
9805
  rowId = item.notesid;
9825
- source = 'notesid';
9826
- }
9827
- else if (item.ord != null) {
9806
+ else if (item.ord != null)
9828
9807
  rowId = item.ord;
9829
- source = 'ord';
9830
- }
9831
- else {
9832
- console.warn('🆔 getRowId: NESSUN CAMPO ID TROVATO - generando GUID! Campi disponibili:', Object.keys(item));
9808
+ else
9833
9809
  rowId = this.uti_s.newGuid();
9834
- source = 'GUID_GENERATO';
9835
- }
9836
- console.log('🆔 getRowId:', rowId, '(source:', source + ')');
9837
9810
  return rowId;
9838
9811
  }
9839
9812
  };