Page 1 of 1

[VUE 3] Don't work Summary [VUE 3]

Posted: Thu Sep 29, 2022 6:35 pm
by web combatant

https://www.loom.com/share/43b13065953642e983abbeac91bbecb3
Plz check the above video.
And let me know the reason.


Re: [VUE 3] Don't work Summary [VUE 3]

Posted: Thu Sep 29, 2022 8:02 pm
by marcio

Hey web combatant,

That's hard to say what could be causing that problem without some code to check the configuration of the Grid. Could you please provide one sample with that behavior?? With that, will be easier for us to assist you. Check our guidelines here viewtopic.php?f=1&t=772


Re: [VUE 3] Don't work Summary [VUE 3]

Posted: Thu Sep 29, 2022 8:29 pm
by web combatant
  _touched = '';
  touched(param) {
    this._touched = param;
  }

  set ta_value_getter(param) {
    this.touched('');
    this.ta_value = param;
  }
  get ta_value_getter() {
    this.ta_value = this._touched == 'qty' ? this.lineScheduledValue * this.ta_qty / 100 : this.ta_value;
    return this.ta_value;
  }

  set ta_qty_getter(param) {
    this.touched('qty');
    this.ta_qty = param;
  }
  get ta_qty_getter() {
    this.ta_qty = this.ta_value ? 100 * this.ta_value / this.lineScheduledValue : 0;
    return this.ta_qty;
  }
              {
                type: 'number', field: 'ta_value_getter', text: 'Value', sum: 'sum',
                dependentFieldsOne: ['lineScheduledValue', 'ta_qty'],
                format: {
                  minimumFractionDigits: 2
                },
              },
              {
                type: 'number', field: 'ta_qty_getter', text: '% / Qty', sum: 'sum', summaryRenderer: ({ sum }) => `${sum}%`,
                dependentFieldsTwo: ['lineScheduledValue', 'ta_value'],
                format: {
                  minimumFractionDigits: 2
                },
              },

Re: [VUE 3] Don't work Summary [VUE 3]

Posted: Thu Sep 29, 2022 9:24 pm
by web combatant

I need to share the full code?


Re: [VUE 3] Don't work Summary [VUE 3]

Posted: Thu Sep 29, 2022 11:13 pm
by web combatant

What's the solution?


Re: [VUE 3] Don't work Summary [VUE 3]

Posted: Fri Sep 30, 2022 2:20 pm
by marcio

Hello,

A working example would be nice to debug, with a sample of code for testing. Could you provide one sample project with that code that you shared??