Result

28 views
Skip to first unread message

Jean Findy Louis

unread,
Oct 23, 2025, 3:17:30 PM (3 days ago) Oct 23
to mementodatabase
In the Memento Database software, I have several fields.

Among them:
A single-choice list field named "Final Savings"

A JavaScript field named "Total Payments"

A calculated field named "Remaining Balance"

I want the "Remaining Balance" field to display the difference between "Final Savings" and "Total Payments".

In other words, I want code that does:Remaining Balance = Final Savings – Total Payments

Er Mo

unread,
Oct 23, 2025, 3:32:19 PM (3 days ago) Oct 23
to mementodatabase
Hallo
Du kannst das in einen JS Feld oder einen Berechnungsfeld machen . Dazu einfach das Feld aufrufen dann ein Minus Zeichen und das nächste Feld .

Hello
You can do this in a JS field or a calculation field. To do this, simply call the field, then add a minus sign, and then the next field.

Ernst

Jean Findy Louis

unread,
Oct 23, 2025, 6:36:35 PM (2 days ago) Oct 23
to Er Mo, mementodatabase
I am new to programming, I tried the following line of code but it didn't work:

let epargne = Number(field("Épargne finale"));
let totalPaiements = Number(field("Total des paiements"));

let reste = epargne - totalPaiements;
reste;



Give me the correct line of code please

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/50ec050f-e621-4986-a2a7-7c262ed1cce0n%40googlegroups.com.

Mmm

unread,
Oct 24, 2025, 4:10:10 AM (2 days ago) Oct 24
to mementodatabase
>>> A calculated field named "Remaining Balance"

Скрипт для поля JS, а не для вычислимого поля.
Измените тип поля на JS. В настройках поля включите выполнять в реальном времени.

пятница, 24 октября 2025 г. в 01:36:35 UTC+3, jnf...@gmail.com:
Reply all
Reply to author
Forward
0 new messages