Set individual record colour in opening list view to a colour from a field value in the library using iOS verison

48 views
Skip to first unread message

Geoff Newnham

unread,
Nov 12, 2025, 7:58:43 AM (6 days ago) Nov 12
to mementodatabase
IMG_0076.pngIMG_0078.pngHi,

Using the iOS version of Memento and have a library with a field called status in it. When I open the library I want to set the colours of the indivdual records in the libary record view to a certain colour based on the value of the status field in each record in the library. But when the script runs on opening the library I get an error of Change Color of list view entries [1]: ReferenceError: Can’t find variable:field. Screenshots of the script and setting for running it above. The script has permission to run against the library. Can anyone point out what I’m doing wrong?

Thanks

Geoff


Er Mo

unread,
Nov 12, 2025, 2:18:18 PM (6 days ago) Nov 12
to mementodatabase
Hallo
Du hast " entry() " vergessen . Versuchen
if(entry().field("Status")== ...........
Für Skripte muss man das Objet mit aufrufen . Es ist ein Unterschied von Skripten und JS Feldern .

Hello

You forgot the `entry()` function. Try this:

`if(entry().field("Status")== ...........`

For scripts, you have to call the object with `entry()`. There's a difference between scripts and JS fields.

Ernst

Geoff Newnham

unread,
Nov 13, 2025, 9:53:54 AM (5 days ago) Nov 13
to Er Mo, mementodatabase
Ernst,

Thanks for the reply. I’m now getting an error which says 

Change Colour of list view entries [1]: Reference:Can’t find variable:entry

Best Regards

Geoff

--
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/70d811f7-97fd-4d5f-8288-a3826b599589n%40googlegroups.com.

David Gilmore

unread,
Nov 13, 2025, 10:05:29 AM (5 days ago) Nov 13
to mementodatabase
Did you forget the "()" in "entry()"?

Geoff Newnham

unread,
Nov 13, 2025, 10:09:10 AM (5 days ago) Nov 13
to David Gilmore, mementodatabase
David,

Thanks for your reply. 

I have the below in the script now:


Thanks

Best Regards

Geoff

Reply all
Reply to author
Forward
0 new messages