[VUE 3] Don't work Summary [VUE 3]
Posted: Thu Sep 29, 2022 6:35 pm
https://www.loom.com/share/43b13065953642e983abbeac91bbecb3
Plz check the above video.
And let me know the reason.
https://www.loom.com/share/43b13065953642e983abbeac91bbecb3
Plz check the above video.
And let me know the reason.
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
_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
},
},
I need to share the full code?
What's the solution?
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??