I have a list named 'Cart'.
I have a Computed Column named 'SUBTOTALS' which multiplies the field 'Qty' * 'Retail' to get Subtotals.
I also have this in the afterServerSideSummaryCompute of the list
which makes the field 'RETAIL' appear in a text box named 'SubTotal' off to the right of the list that shows that SUBTOTALS data. However, this doesn't work well since I added the Qty field and am now multiplying Qty * Retail to get the Computed Column. You can't specify Compute Summary Values for a computed column (or virtual field) or this would be easy.
What I WANT to do is take the Computed Column SUBTOTALS and have it appear OUTSIDE the list in the SUBTOTAL field. Basically, make a Computed Column have 'Compute Summary Values' so I can use it in the afterServerSideSummaryCompute area. Or a way to sidestep that.
You would think this would work...
But it doesn't since you can't specify Compute Summary Values on a virtual computed column.
I found a roundabout way to do a summary of a computed column in the footer of a list, which totals that field. That's easy to do. It's not so easy to do the multiplication of Qty * Retail and then having that computed column appear OUTSIDE the list. Or at least not for me.
Thanks in advance!
I have a Computed Column named 'SUBTOTALS' which multiplies the field 'Qty' * 'Retail' to get Subtotals.
Code:
data.SUBTOTALS = ($u.s.toNum(data.Qty) * $u.s.toNum(data.Retail)).toFixed(2);
Code:
var dispTotal = summary['RETAIL'].total; {dialog.Object}.setValue( 'SUBTOTAL', dispTotal );
which makes the field 'RETAIL' appear in a text box named 'SubTotal' off to the right of the list that shows that SUBTOTALS data. However, this doesn't work well since I added the Qty field and am now multiplying Qty * Retail to get the Computed Column. You can't specify Compute Summary Values for a computed column (or virtual field) or this would be easy.
What I WANT to do is take the Computed Column SUBTOTALS and have it appear OUTSIDE the list in the SUBTOTAL field. Basically, make a Computed Column have 'Compute Summary Values' so I can use it in the afterServerSideSummaryCompute area. Or a way to sidestep that.
You would think this would work...
Code:
var dispTotal = summary['SUBTOTALS'].total; {dialog.Object}.setValue( 'NEWSUBTOTAL', dispTotal );
I found a roundabout way to do a summary of a computed column in the footer of a list, which totals that field. That's easy to do. It's not so easy to do the multiplication of Qty * Retail and then having that computed column appear OUTSIDE the list. Or at least not for me.
Thanks in advance!
Comment