Favoris dans base de données

59 views
Skip to first unread message

Thierry TRICHON

unread,
Dec 6, 2025, 2:15:48 PM (3 days ago) Dec 6
to mementodatabase
Bonjour à tous,

J'ai créé une base de données "Annuaire" avec mes contacts. Certains de mes contacts sont en "Favoris".
Je voudrais que mes 3Favoris" apparaissent en haut de ma liste.
Je n'ai pas trouvé comment faire.
Merci pour vos réponses. 
Thierry

Hello everyone,

I've created a "Directory" database with my contacts. Some of my contacts are in my "Favorites."

I'd like my "Favorites" to appear at the top of my list.

I haven't been able to figure out how to do this.

Thanks for your help.

Thierry

David Gilmore

unread,
Dec 6, 2025, 3:05:03 PM (3 days ago) Dec 6
to mementodatabase
I assume you are referring to a Memento Library containing your contacts. Have you tried changing the list sort to sort on however you mark your "favorites"?'

Depending on what you are using to mark your favorites, you might need to change that first sort key to descending instead of the default ascending.

Er Mo

unread,
Dec 6, 2025, 4:26:53 PM (3 days ago) Dec 6
to mementodatabase
Hallo
Es gibt bei der Sortierung auch die Möglichkeit dies per " Hand " zumachen . Also belibige Reienfolge . Oder du hast dien Kontakte in den Favoriten hinzugefügt , denn musst du auf die 3 Punkte Menü ,unter Favoriten gehen

Bonjour

Vous pouvez également trier manuellement vos contacts ; vous pouvez donc choisir l’ordre que vous souhaitez. Sinon, si vous les avez ajoutés à vos favoris, accédez au menu à trois points et sélectionnez « Favoris ».

Ernst

Bill Crews

unread,
Dec 6, 2025, 9:45:10 PM (3 days ago) Dec 6
to Er Mo, mementodatabase
Si jamais vous avez besoin d'y accéder en JavaScript, l'objet Entry possède une propriété qui, si elle est vraie, indique qu'il a été marqué comme entrée favorite.

In case you ever need to access it in JavaScript, the Entry object has a property that, if true, indicates that it has been marked as a favorite entry. 


--
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/a8479314-d281-4b4f-b7be-005979d6be88n%40googlegroups.com.

Mmm

unread,
Dec 7, 2025, 12:09:45 AM (3 days ago) Dec 7
to mementodatabase
К сожалению, мне не удалось получить значение свойства записи, как указано в Вики и о чем упомянул Билл:

entry().favorites 

Но триггеры добавление в избранное и удаление из избранного работают.

Поэтому можно добавить поле (например, набор значений) и изменять его значение триггерами.
Выполнить сортировку записей по этому полю, чтобы избранные записи были в начале списка.
При добавлении записи в избранное сработает триггер и запись автоматически переместится в начало списка.

Тестовая библиотека:
воскресенье, 7 декабря 2025 г. в 05:45:10 UTC+3, bill....@gmail.com:
IC__07122025.jpg

Thierry TRICHON

unread,
Dec 7, 2025, 10:15:37 AM (2 days ago) Dec 7
to mementodatabase
Bonjour,
Je regarde et reviens vers vous.

Hello,
I'll take a look and get back to you.
Reply all
Reply to author
Forward
0 new messages