AW: $selected only total a field
Rudolf Bargholz
rudolf at bargholz.ch
Sun Jul 24 05:23:05 UTC 2022
Ji Das,
List.$cols.MyColName.$total(kTrue)
The kTrue will only take into account the selected lines.
Use this as a calculation in a normal entry field ($enabled = kFalse). Background objects are generally not redrawn in Omnis Studio to prevent a performance hit (there are workarounds of course). When you issue a redraw on the entry field or the window the value will be redrawn.
Regards
Rudolf
-----Ursprüngliche Nachricht-----
Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag von Das Goravani
Gesendet: Samstag, 23. Juli 2022 19:06
An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Betreff: $selected only total a field
Hello,
I am using remote forms
How do you display a total for a column from a list where you only want to total the selected lines?
The situation is I have a list of potential checks to print, I allow them to select lines in this list, I want to display underneath the list the total for the lines they have selected for one particular column, the amount column
Furthermore you can't have calculated display fields on remote forms as far as I know.. though I have tried putting square bracket notation into label fields
So am I forced to have a button which says "Calc. Totals" and then it gets updated
What is the notation for totaling one column only for selected lines?
Das
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list