Count of Related Records

74 views
Skip to first unread message

Randy Flinn

unread,
Aug 13, 2025, 10:37:15 PMAug 13
to Vasily from Memento, mementodatabase
I am using the iOS version and have (3) libraries.  The first contains areas of my property.  The second contains specific locations.  The third contains jobs (per location).  In my case, Lib2 is linked to Lib1.  Lib3 is linked to Lib2.

Is there a way to capture the count of Lib3 items and display on the Lib2 field?


Mmm

unread,
Aug 14, 2025, 4:33:45 AMAug 14
to mementodatabase
Добавить в библиотеку "lib2" поле JS с кодом:

entry().linksFrom('lib3','lib2').length;

//"lib3" - имя связанной библиотеки,
//"lib2" - имя поля в библиотеке "lib3", через которое осуществлена связь с "lib2".

четверг, 14 августа 2025 г. в 05:37:15 UTC+3, rfli...@gmail.com:

Randy Flinn

unread,
Aug 14, 2025, 12:52:02 PMAug 14
to Mmm, mementodatabase
Mmm,

Thank you for the response.  When I enter as you suggested, I receive the following error...

TypeError: entry().linksFrom is not a function.
(In 'entry().linksFrom('zHSrv','ServDtl')',
'entry().linksFrom' is undefined)

Randy


--
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/bd9b9aa6-0671-4e37-88f1-ad4715924902n%40googlegroups.com.

Mmm

unread,
Aug 14, 2025, 2:31:11 PMAug 14
to mementodatabase
Не смог воссоздать ошибки (Андроид).

Тестовые библиотеки:
https://mementodb.com/s/iXEkeaCNc
https://mementodb.com/s/755VoxqYa

четверг, 14 августа 2025 г. в 19:52:02 UTC+3, rfli...@gmail.com:
Reply all
Reply to author
Forward
0 new messages